about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorKirill Bulatov <mail4score@gmail.com>2022-02-12 01:03:32 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2022-03-04 07:45:51 +0200
commit9c0c199e962ef90fe3bf152bc87ff96d5c2a9093 (patch)
tree02b40df0d06692018347e4eb8828356657b54015 /editors/code
parent0b69717ab6e5d1bd57faccbe741d947da9edbff3 (diff)
downloadrust-9c0c199e962ef90fe3bf152bc87ff96d5c2a9093.tar.gz
rust-9c0c199e962ef90fe3bf152bc87ff96d5c2a9093.zip
Clean up the redundant hints code and config
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json87
-rw-r--r--editors/code/tsconfig.json3
2 files changed, 4 insertions, 86 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index ac6492f4633..19a62f65144 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -23,9 +23,7 @@
     "engines": {
         "vscode": "^1.64.0"
     },
-    "enabledApiProposals": [
-        "inlayHints"
-    ],
+    "enabledApiProposals": [],
     "scripts": {
         "vscode:prepublish": "npm run build-base -- --minify",
         "package": "vsce package -o rust-analyzer.vsix",
@@ -35,8 +33,7 @@
         "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
         "fix": " tsfmt -r       && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
         "pretest": "tsc && npm run build",
-        "test": "node ./out/tests/runTests.js",
-        "postinstall": "vscode-dts dev"
+        "test": "node ./out/tests/runTests.js"
     },
     "dependencies": {
         "vscode-languageclient": "8.0.0-next.12",
@@ -54,8 +51,7 @@
         "tslib": "^2.3.0",
         "typescript": "^4.5.5",
         "typescript-formatter": "^7.2.2",
-        "vsce": "^2.6.7",
-        "vscode-dts": "^0.3.3"
+        "vsce": "^2.6.7"
     },
     "activationEvents": [
         "onLanguage:rust",
@@ -302,11 +298,6 @@
                     "default": true,
                     "description": "Whether to show inlay hints."
                 },
-                "rust-analyzer.inlayHints.smallerHints": {
-                    "type": "boolean",
-                    "default": true,
-                    "description": "Whether inlay hints font size should be smaller than editor's font size."
-                },
                 "rust-analyzer.server.path": {
                     "type": [
                         "null",
@@ -1088,78 +1079,6 @@
         ],
         "colors": [
             {
-                "id": "rust_analyzer.inlayHints.foreground",
-                "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
-                "defaults": {
-                    "dark": "#A0A0A0F0",
-                    "light": "#747474",
-                    "highContrast": "#BEBEBE"
-                }
-            },
-            {
-                "id": "rust_analyzer.inlayHints.background",
-                "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
-                "defaults": {
-                    "dark": "#11223300",
-                    "light": "#11223300",
-                    "highContrast": "#11223300"
-                }
-            },
-            {
-                "id": "rust_analyzer.inlayHints.foreground.typeHints",
-                "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
-                "defaults": {
-                    "dark": "rust_analyzer.inlayHints.foreground",
-                    "light": "rust_analyzer.inlayHints.foreground",
-                    "highContrast": "rust_analyzer.inlayHints.foreground"
-                }
-            },
-            {
-                "id": "rust_analyzer.inlayHints.foreground.chainingHints",
-                "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
-                "defaults": {
-                    "dark": "rust_analyzer.inlayHints.foreground",
-                    "light": "rust_analyzer.inlayHints.foreground",
-                    "highContrast": "rust_analyzer.inlayHints.foreground"
-                }
-            },
-            {
-                "id": "rust_analyzer.inlayHints.foreground.parameterHints",
-                "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
-                "defaults": {
-                    "dark": "rust_analyzer.inlayHints.foreground",
-                    "light": "rust_analyzer.inlayHints.foreground",
-                    "highContrast": "rust_analyzer.inlayHints.foreground"
-                }
-            },
-            {
-                "id": "rust_analyzer.inlayHints.background.typeHints",
-                "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
-                "defaults": {
-                    "dark": "rust_analyzer.inlayHints.background",
-                    "light": "rust_analyzer.inlayHints.background",
-                    "highContrast": "rust_analyzer.inlayHints.background"
-                }
-            },
-            {
-                "id": "rust_analyzer.inlayHints.background.chainingHints",
-                "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
-                "defaults": {
-                    "dark": "rust_analyzer.inlayHints.background",
-                    "light": "rust_analyzer.inlayHints.background",
-                    "highContrast": "rust_analyzer.inlayHints.background"
-                }
-            },
-            {
-                "id": "rust_analyzer.inlayHints.background.parameterHints",
-                "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
-                "defaults": {
-                    "dark": "rust_analyzer.inlayHints.background",
-                    "light": "rust_analyzer.inlayHints.background",
-                    "highContrast": "rust_analyzer.inlayHints.background"
-                }
-            },
-            {
                 "id": "rust_analyzer.syntaxTreeBorder",
                 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
                 "defaults": {
diff --git a/editors/code/tsconfig.json b/editors/code/tsconfig.json
index 6bf206153a3..7c4fbd21ebe 100644
--- a/editors/code/tsconfig.json
+++ b/editors/code/tsconfig.json
@@ -22,7 +22,6 @@
     ],
     "include": [
         "src",
-        "tests",
-        "vscode.proposed.inlayHints.d.ts"
+        "tests"
     ]
 }