diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index d078f7472..3aa90cd66 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -29,8 +29,10 @@ | |||
29 | "package": "vsce package -o rust-analyzer.vsix", | 29 | "package": "vsce package -o rust-analyzer.vsix", |
30 | "build": "tsc", | 30 | "build": "tsc", |
31 | "watch": "tsc --watch", | 31 | "watch": "tsc --watch", |
32 | "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src", | 32 | "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests", |
33 | "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix" | 33 | "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src ./tests --fix", |
34 | "pretest": "npm run build", | ||
35 | "test": "node ./out/tests/runTests.js" | ||
34 | }, | 36 | }, |
35 | "dependencies": { | 37 | "dependencies": { |
36 | "node-fetch": "^2.6.0", | 38 | "node-fetch": "^2.6.0", |
@@ -39,17 +41,22 @@ | |||
39 | "devDependencies": { | 41 | "devDependencies": { |
40 | "@rollup/plugin-commonjs": "^11.1.0", | 42 | "@rollup/plugin-commonjs": "^11.1.0", |
41 | "@rollup/plugin-node-resolve": "^7.1.3", | 43 | "@rollup/plugin-node-resolve": "^7.1.3", |
44 | "@types/glob": "^7.1.1", | ||
45 | "@types/mocha": "^7.0.2", | ||
42 | "@types/node": "^12.12.39", | 46 | "@types/node": "^12.12.39", |
43 | "@types/node-fetch": "^2.5.7", | 47 | "@types/node-fetch": "^2.5.7", |
44 | "@types/vscode": "^1.44.0", | 48 | "@types/vscode": "^1.44.0", |
45 | "@typescript-eslint/eslint-plugin": "^2.33.0", | 49 | "@typescript-eslint/eslint-plugin": "^2.33.0", |
46 | "@typescript-eslint/parser": "^2.33.0", | 50 | "@typescript-eslint/parser": "^2.33.0", |
47 | "eslint": "^6.8.0", | 51 | "eslint": "^6.8.0", |
52 | "glob": "^7.1.6", | ||
53 | "mocha": "^7.1.2", | ||
48 | "rollup": "^2.10.0", | 54 | "rollup": "^2.10.0", |
49 | "tslib": "^1.12.0", | 55 | "tslib": "^1.12.0", |
50 | "typescript": "^3.9.2", | 56 | "typescript": "^3.9.2", |
51 | "typescript-formatter": "^7.2.2", | 57 | "typescript-formatter": "^7.2.2", |
52 | "vsce": "^1.75.0" | 58 | "vsce": "^1.75.0", |
59 | "vscode-test": "^1.3.0" | ||
53 | }, | 60 | }, |
54 | "activationEvents": [ | 61 | "activationEvents": [ |
55 | "onLanguage:rust", | 62 | "onLanguage:rust", |
@@ -57,7 +64,7 @@ | |||
57 | "onCommand:rust-analyzer.collectGarbage", | 64 | "onCommand:rust-analyzer.collectGarbage", |
58 | "workspaceContains:**/Cargo.toml" | 65 | "workspaceContains:**/Cargo.toml" |
59 | ], | 66 | ], |
60 | "main": "./out/main", | 67 | "main": "./out/src/main", |
61 | "contributes": { | 68 | "contributes": { |
62 | "taskDefinitions": [ | 69 | "taskDefinitions": [ |
63 | { | 70 | { |
@@ -313,22 +320,22 @@ | |||
313 | "rust-analyzer.inlayHints.enable": { | 320 | "rust-analyzer.inlayHints.enable": { |
314 | "type": "boolean", | 321 | "type": "boolean", |
315 | "default": true, | 322 | "default": true, |
316 | "description": "Disable all inlay hints" | 323 | "description": "Whether to show inlay hints" |
317 | }, | 324 | }, |
318 | "rust-analyzer.inlayHints.typeHints": { | 325 | "rust-analyzer.inlayHints.typeHints": { |
319 | "type": "boolean", | 326 | "type": "boolean", |
320 | "default": true, | 327 | "default": true, |
321 | "description": "Whether to show inlay type hints" | 328 | "description": "Whether to show inlay type hints for variables." |
322 | }, | 329 | }, |
323 | "rust-analyzer.inlayHints.chainingHints": { | 330 | "rust-analyzer.inlayHints.chainingHints": { |
324 | "type": "boolean", | 331 | "type": "boolean", |
325 | "default": true, | 332 | "default": true, |
326 | "description": "Whether to show inlay type hints for method chains" | 333 | "description": "Whether to show inlay type hints for method chains." |
327 | }, | 334 | }, |
328 | "rust-analyzer.inlayHints.parameterHints": { | 335 | "rust-analyzer.inlayHints.parameterHints": { |
329 | "type": "boolean", | 336 | "type": "boolean", |
330 | "default": true, | 337 | "default": true, |
331 | "description": "Whether to show function parameter name inlay hints at the call site" | 338 | "description": "Whether to show function parameter name inlay hints at the call site." |
332 | }, | 339 | }, |
333 | "rust-analyzer.inlayHints.maxLength": { | 340 | "rust-analyzer.inlayHints.maxLength": { |
334 | "type": [ | 341 | "type": [ |