Просмотр исходного кода

Fix default for Carbon Path (#4705)

The extension.ts tries to provide a default, but it's not working the
way I expect. So in addition, provide it in properties, which seems to
work better.
Jon Ross-Perkins 1 год назад
Родитель
Сommit
a651ce1961
2 измененных файлов с 5 добавлено и 4 удалено
  1. 2 2
      utils/vscode/package-lock.json
  2. 3 2
      utils/vscode/package.json

+ 2 - 2
utils/vscode/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "carbon-vscode",
-  "version": "0.0.3",
+  "version": "0.0.4",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "carbon-vscode",
-      "version": "0.0.3",
+      "version": "0.0.4",
       "dependencies": {
         "vscode-languageclient": "^9.0.1"
       },

+ 3 - 2
utils/vscode/package.json

@@ -1,7 +1,7 @@
 {
   "name": "carbon-vscode",
   "displayName": "Carbon Language",
-  "version": "0.0.3",
+  "version": "0.0.4",
   "publisher": "carbon-lang",
   "description": "Carbon language support for Visual Studio Code.",
   "repository": {
@@ -42,7 +42,8 @@
       "properties": {
         "carbon.carbonPath": {
           "type": "string",
-          "description": "The path to the 'carbon' binary."
+          "description": "The path to the 'carbon' binary.",
+          "default": "./bazel-bin/toolchain/install/run_carbon"
         }
       }
     }