aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-27 09:47:43 +0000
committerGitHub <[email protected]>2020-02-27 09:47:43 +0000
commit9a8329a3a7b0a1e68336a0a1b9e5235eba05efb8 (patch)
treeea72f67380a86bf68778594fa64362bfac7c573e /editors
parentebeca1990e6eaf3555ccb4074154b1518fe383fa (diff)
parentcfa5afa02d415c32e43498dcd0e8b8fa756b9093 (diff)
Merge pull request #3340 from matklad/fix-lint
Actually gate CI on eslint
Diffstat (limited to 'editors')
-rw-r--r--editors/code/package.json3
-rw-r--r--editors/code/src/client.ts2
2 files changed, 3 insertions, 2 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 8e58d6b77..8892f56ee 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -23,7 +23,8 @@
23 "vscode:prepublish": "tsc && rollup -c", 23 "vscode:prepublish": "tsc && rollup -c",
24 "package": "vsce package -o rust-analyzer.vsix", 24 "package": "vsce package -o rust-analyzer.vsix",
25 "watch": "tsc --watch", 25 "watch": "tsc --watch",
26 "fmt": "tsfmt -r && eslint -c .eslintrc.js --ext ts ./src/ --fix" 26 "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src",
27 "fix": "tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix"
27 }, 28 },
28 "dependencies": { 29 "dependencies": {
29 "jsonc-parser": "^2.1.0", 30 "jsonc-parser": "^2.1.0",
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts
index 1f90af898..540f7c9ea 100644
--- a/editors/code/src/client.ts
+++ b/editors/code/src/client.ts
@@ -45,7 +45,7 @@ export async function createClient(config: Config, serverPath: string): Promise<
45 middleware: { 45 middleware: {
46 // Workaround for https://github.com/microsoft/vscode-languageserver-node/issues/576 46 // Workaround for https://github.com/microsoft/vscode-languageserver-node/issues/576
47 async provideDocumentSemanticTokens(document: vscode.TextDocument, token: vscode.CancellationToken, next: DocumentSemanticsTokensSignature) { 47 async provideDocumentSemanticTokens(document: vscode.TextDocument, token: vscode.CancellationToken, next: DocumentSemanticsTokensSignature) {
48 let res = await next(document, token); 48 const res = await next(document, token);
49 if (res === undefined) throw new Error('busy'); 49 if (res === undefined) throw new Error('busy');
50 return res; 50 return res;
51 } 51 }