Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

Commit 0b0789b

Browse files
bors[bot]renovate-botLevertion
committed
Merge #127
127: Update all r=Levertion a=renovate[bot] This PR contains the following updates: | Package | Type | Update | Change | References | |---|---|---|---|---| | tslint | devDependencies | minor | `5.12.1` -> `5.13.0` | [homepage](https://palantir.github.io/tslint), [source](https://togithub.com/palantir/tslint) | | typescript | devDependencies | patch | `3.3.3` -> `3.3.3333` | [homepage](https://www.typescriptlang.org/), [source](https://togithub.com/Microsoft/TypeScript) | --- ### Release Notes <details> <summary>palantir/tslint</summary> ### [`v5.13.0`](https://togithub.com/palantir/tslint/blob/master/CHANGELOG.md#v5130) [Compare Source](https://togithub.com/palantir/tslint/compare/5.12.1...5.13.0) - [deprecation] Mark `RuleWalker` and `ProgramAwareRuleWalker` as deprecated ([#&#8203;4413](https://togithub.com/palantir/tslint/issues/4413)) - [bugfix] Create output directory when the output path (specified by `--out` CLI flag) does not exist. ([#&#8203;4507](https://togithub.com/palantir/tslint/issues/4507)) - [bugfix] Explicit disabling of rules is now copied over to jsRules when using `jsRules: true` ([#&#8203;4517](https://togithub.com/palantir/tslint/issues/4517)) - [bugfix] `unknown` is recognized as simple type in [`array-type`](https://palantir.github.io/tslint/rules/array-type/) ([#&#8203;4433](https://togithub.com/palantir/tslint/issues/4433)) - [bugfix][`ban`](<https://palantir.github.io/tslint/rules/ban/>): Fix a false positive which would occur when banning method calls nested inside objects. Previously, banning `["a", "b", "c"]` would trigger lint failures on the syntax `b.c()`, which was not the intent of this rule. ([#&#8203;4383](https://togithub.com/palantir/tslint/issues/4383)) - [bugfix] Fixed single-line comment parsing for completed-docs ([#&#8203;3557](https://togithub.com/palantir/tslint/issues/3557)) - [bugfix][`trailing-comma`](<https://palantir.github.io/tslint/rules/trailing-comma/>) no longer crashes if it cannot find the closing parenthesis of a function declaration ([#&#8203;4457](https://togithub.com/palantir/tslint/issues/4457)) - [bugfix][`no-unsafe-any`](<https://palantir.github.io/tslint/rules/no-unsafe-any/>): allow implicitly downcasting `any` to `unknown` ([#&#8203;4442](https://togithub.com/palantir/tslint/issues/4442)) - [bugfix] Add `grouped-imports` to `tslint:all` ([#&#8203;4420](https://togithub.com/palantir/tslint/issues/4420)) - [docs] Fix docs typo ([#&#8203;4395](https://togithub.com/palantir/tslint/issues/4395)) - [enhancement] Add "formatting" rule category ([#&#8203;2832](https://togithub.com/palantir/tslint/issues/2832)) - [enhancement][`ordered-imports`](<https://palantir.github.io/tslint/rules/ordered-imports/>) now supports a groups option to provide custom grouping rules. ([#&#8203;4134](https://togithub.com/palantir/tslint/issues/4134)) - [enhancement] Convert `completed-docs` to an untyped rule ([#&#8203;3557](https://togithub.com/palantir/tslint/issues/3557)) - [enhancement] Checkstyle formatter includes every file linted regardless of lint errors. ([#&#8203;3838](https://togithub.com/palantir/tslint/issues/3838)) - [enhancement] Formatters now receive the full list of of linted file paths as a third argument. ([#&#8203;3838](https://togithub.com/palantir/tslint/issues/3838)) - [enhancement][`array-type`](<https://palantir.github.io/tslint/rules/array-type/>) rule handles Typescript 3.0's unknown type properly ([#&#8203;4219](https://togithub.com/palantir/tslint/issues/4219)) - [enhancement][`import-blacklist`](<https://palantir.github.io/tslint/rules/import-blacklist/>) now supports regular expression patterns for blacklisting ([#&#8203;3504](https://togithub.com/palantir/tslint/issues/3504)) - [new-rule] `no-restricted-globals` ([#&#8203;3824](https://togithub.com/palantir/tslint/issues/3824)) - [new-fixer] added fixer for `newline-before-return` rule ([#&#8203;4482](https://togithub.com/palantir/tslint/issues/4482)) - [new-fixer][`number-literal-format`](<https://palantir.github.io/tslint/rules/number-literal-format/>) now includes auto fix ([#&#8203;4496](https://togithub.com/palantir/tslint/issues/4496)) - [new-rule-option] Added `whitelist` option to [`no-unbound-method`](https://palantir.github.io/tslint/rules/no-unbound-method/) ([#&#8203;4472](https://togithub.com/palantir/tslint/issues/4472)) - [new-rule-option] added `jsx-ignore` option to [`no-magic-numbers`](https://palantir.github.io/tslint/rules/no-magic-numbers/) rule ([#&#8203;4460](https://togithub.com/palantir/tslint/issues/4460)) - [new-rule-option]&#x3A; [`object-literal-sort-keys`](https://palantir.github.io/tslint/rules/object-literal-sort-keys/): Add `match-declaration-order-only` option ([#&#8203;3748](https://togithub.com/palantir/tslint/issues/3748)) - [new-rule-option][`strict-boolean-expressions`](<https://palantir.github.io/tslint/rules/strict-boolean-expressions/>) accepts `ignore-rhs` option to disable checking the right-hand side of the `&&` and `||` operators as strictly boolean. ([#&#8203;4159](https://togithub.com/palantir/tslint/issues/4159)) Thanks to our contributors! - Enes SOYLU - jbsingh - Sven Efftinge - James C. Davis - Norio Suzuki - Thomas den Hollander - Retsam - Dobes Vandermeer - Young Min Kim - Grant Wu - Felix Schindler - Lydia - Adrian Leonhard - James Jensen - Athene Noctua - Allen - Vincent Langlet - Paul Medynski - Liz - Piotr Gajowniczek - Max Sysoev - Jakub Beneš - Ian Mobley - 周昊宇 - Nazanin Delam - Matt R. Wilson - Andy Hanson - Zen - Josh Goldberg - Jeff Lau </details> <details> <summary>Microsoft/TypeScript</summary> ### [`v3.3.3333`](https://togithub.com/Microsoft/TypeScript/releases/v3.3.3333) [Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v3.3.3...v3.3.3333) For release notes, check out the [release announcement](https://blogs.msdn.microsoft.com/typescript/2019/01/31/announcing-typescript-3-3/) For new features, check out the [What's new in TypeScript 3.3](https://togithub.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#typescript-33). For the complete list of fixed issues, check out the - [fixed issues query for Typescript 3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3%22+is%3Aclosed+). - [fixed issues query for Typescript 3.3.1](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.1%22+is%3Aclosed+). - [fixed issues query for Typescript 3.3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.3%22+is%3Aclosed+). - [fixed issues query for Typescript 3.3.3333](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.3333%22+is%3Aclosed+). Downloads are available on: - [npm](https://www.npmjs.com/package/typescript) - [Visual Studio 2017](https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.typescript-331-vs2017) ([Select new version in project options](https://togithub.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017)) - [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild/3.3.1) Special thanks to all our contributors in this release: - Alessandro Vergani - Alexander Tarasyuk - Anders Hejlsberg - Andrew Casey - Andy Hanson - Aziz Khambati - Basarat Ali Syed - Benjamin Lichtman - Brandon Banks - Caleb Sander - [@&#8203;csigs](https://togithub.com/csigs) - Daiki Nishikawa - Daniel Rosenwasser - David Sherret - Dhruv Rajvanshi - Eddie Jaoude - [@&#8203;EECOLOR](https://togithub.com/EECOLOR) - [@&#8203;falsandtru](https://togithub.com/falsandtru) - Igor Oleinikov - iliashkolyar - IllusionMH - Jack Williams - Jordi Oliveras Rovira - Kagami Sascha Rosylight - Klaus Meinhardt - Leon Aves - Limon Monte - Marcus Noble - Markus Wolf - Martin Probst - Matt McCutchen - Michael Tang - Mine Starks - Nathan Shively-Sanders - Noel Yoo - Patrick McCartney - Philip Pesca - Prateek Goel - Prateek Nayak - Roger Spratley - Ron Buckton - Ryan Cavanaugh - Ryan Clarke - Sam Drugan - Sergio Baidon - Sheetal Nandi - [@&#8203;surlymrz](https://togithub.com/surlymrz) - Valera Rozuvan - Wenlu Wang - Wesley Wigham </details> --- ### Renovate configuration :date: **Schedule**: "before 3am on Monday" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or if you modify the PR title to begin with "`rebase!`". :ghost: **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/config-help/issues) if that's undesired. --- - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#Levertion/mcfunction-langserver). Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Levertion <[email protected]>
2 parents e743de0 + e90ff0a commit 0b0789b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+175
-110
lines changed

.travis.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ branches:
88
- master
99
sudo: false
1010
node_js:
11-
- stable
12-
# Needs to support node 7 for vscode
13-
# Possibly irrelevant as of ~1.27
14-
- "7"
11+
# - stable
12+
# For vscode - same as stable
13+
- "10"
1514
before_install:
1615
- npm install -g npm@6
1716
install:

.vscode/settings.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"editor.formatOnSave": true,
77
// Allow use of prettier extension solely
88
"typescript.format.enable": false,
9-
"tslint.autoFixOnSave": true,
109
// Consistent finalNewLine
1110
"files.insertFinalNewline": true,
1211
// Use of node_modules folder typescript version
@@ -15,5 +14,8 @@
1514
"**/node_modules": true,
1615
"**/bower_components": true,
1716
"**/dist": true
17+
},
18+
"editor.codeActionsOnSave": {
19+
"source.fixAll.tslint": true
1820
}
1921
}

dist/index.js

+4-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+31-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"sprintf-js": "^1.1.2",
4545
"synchronous-promise": "^2.0.6",
4646
"tslib": "^1.9.3",
47-
"util.promisify": "^1.0.0",
4847
"vscode-json-languageservice": "^3.2.0",
4948
"vscode-languageserver": "^5.2.1",
5049
"vscode-uri": "^1.0.6"
@@ -64,9 +63,9 @@
6463
"pretty-quick": "1.10.0",
6564
"rimraf": "2.6.3",
6665
"ts-mocha": "6.0.0",
67-
"tslint": "5.12.1",
66+
"tslint": "5.13.0",
6867
"tslint-config-prettier": "1.18.0",
69-
"typescript": "3.3.3",
68+
"typescript": "3.3.3333",
7069
"vscode-languageserver-types": "3.14.0"
7170
}
7271
}

src/actions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
SymbolInformation,
1010
SymbolKind
1111
} from "vscode-languageserver";
12-
1312
import URI from "vscode-uri";
13+
1414
import { getAllNodes } from "./completions";
1515
import { COMMENT_START } from "./consts";
1616
import { DataManager } from "./data/manager";

src/brigadier/errors.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { DiagnosticSeverity } from "vscode-languageserver/lib/main";
2+
23
import { MCFormat } from "../misc-functions";
34
import { LineRange } from "../types";
45

src/brigadier/string-reader.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { CompletionItemKind } from "vscode-languageserver/lib/main";
2+
23
import { getReturned, ReturnHelper } from "../misc-functions";
34
import { typed_keys } from "../misc-functions/third_party/typed-keys";
45
import { CE, ReturnedInfo, Suggestion } from "../types";
6+
57
import { CommandErrorBuilder } from "./errors";
68

79
const EXCEPTIONS = {

src/data/cache.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
} from "../misc-functions/promisified-fs";
99
import { typed_keys } from "../misc-functions/third_party/typed-keys";
1010
import { WorkspaceSecurity } from "../types";
11+
1112
import { Cacheable, RegistriesData } from "./types";
1213

1314
if (!process.env.MCFUNCTION_CACHE_DIR) {

src/data/datapack-resources.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
} from "../misc-functions/promisified-fs";
1212
import { typed_keys } from "../misc-functions/third_party/typed-keys";
1313
import { ReturnSuccess } from "../types";
14+
1415
import { mapPacksInfo } from "./extractor/mapfunctions";
1516
import { loadNBT } from "./nbt/nbt-cache";
1617
import {

src/data/extractor/collect-data.ts

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
RegistriesData,
1515
RegistryNames
1616
} from "../types";
17+
1718
import { runMapFunctions } from "./mapfunctions";
1819
const readFileAsync = promisify(fs.readFile);
1920

src/data/extractor/extract-data.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { execFile } from "child_process";
22
import * as path from "path";
33
import { promisify } from "util";
4+
45
import { cacheFolder } from "../cache";
56
const execFileAsync = promisify(execFile);
67

src/data/extractor/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ReturnHelper } from "../../misc-functions";
77
import { ReturnSuccess } from "../../types";
88
import { cacheData } from "../cache";
99
import { Cacheable } from "../types";
10+
1011
import { collectData } from "./collect-data";
1112
import { getPathToJar } from "./download";
1213
import { checkJavaPath, runGenerator } from "./extract-data";

src/data/extractor/mapfunctions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { join } from "path";
2+
13
import { resourceTypes, ReturnHelper } from "../../misc-functions";
24
import { typed_keys } from "../../misc-functions/third_party/typed-keys";
3-
4-
import { join } from "path";
55
import { ReturnSuccess } from "../../types";
66
import { GlobalData, Resources, WorldInfo } from "../types";
77

src/data/manager.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { ok } from "assert";
2+
import { extname, join } from "path";
13
import {
24
DidChangeWatchedFilesParams,
35
FileChangeType
46
} from "vscode-languageserver";
57

6-
import { ok } from "assert";
7-
import { extname, join } from "path";
88
import { MCMETAFILE } from "../consts";
99
import {
1010
getKindAndNamespace,
@@ -17,6 +17,7 @@ import {
1717
import { createExtensionFileError } from "../misc-functions/file-errors";
1818
import { readJSON } from "../misc-functions/promisified-fs";
1919
import { ReturnedInfo, ReturnSuccess } from "../types";
20+
2021
import { readCache } from "./cache";
2122
import { getPacksInfo } from "./datapack-resources";
2223
import { collectGlobalData } from "./extractor";

src/data/nbt/nbt-cache.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import * as path from "path";
2+
23
import { readFileAsync } from "../../misc-functions";
34
import { WorldNBT } from "../types";
5+
46
import { Level, Scoreboard } from "./nbt-types";
57
import { parse } from "./parser";
68

src/data/nbt/parser.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { promisify } from "util";
22
import * as zlib from "zlib";
3+
34
import { BufferStream } from "./buffer-stream";
45

56
const unzipAsync = promisify<zlib.InputType, Buffer>(zlib.unzip);

src/data/noncached.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
getLanguageService,
55
SchemaRequestService
66
} from "vscode-json-languageservice";
7+
78
import { NBTDocs, NonCacheable } from "./types";
89

910
export function loadNBTDocs(): NBTDocs {

0 commit comments

Comments
 (0)