Forráskód Böngészése

Update the vscode extension for publishing. (#4660)

A few initial fixes just so that publishing works.


https://marketplace.visualstudio.com/items?itemName=carbon-lang.carbon-vscode
Jon Ross-Perkins 1 éve
szülő
commit
e98995c936
3 módosított fájl, 9 hozzáadás és 3 törlés
  1. 1 0
      utils/vscode/images/icon.png
  2. 5 3
      utils/vscode/package.json
  3. 3 0
      website/prebuild.py

+ 1 - 0
utils/vscode/images/icon.png

@@ -0,0 +1 @@
+../../../website/favicon.png

+ 5 - 3
utils/vscode/package.json

@@ -1,8 +1,9 @@
 {
-  "name": "carbon-lang",
-  "displayName": "carbon-lang",
-  "description": "Carbon Language support",
+  "name": "carbon-vscode",
+  "displayName": "Carbon Language",
   "version": "0.0.2",
+  "publisher": "carbon-lang",
+  "description": "Carbon language support for Visual Studio Code.",
   "repository": {
     "url": "https://github.com/carbon-language/carbon-lang"
   },
@@ -12,6 +13,7 @@
   "categories": [
     "Programming Languages"
   ],
+  "icon": "images/icon.png",
   "activationEvents": [],
   "main": "./src/extension.js",
   "contributes": {

+ 3 - 0
website/prebuild.py

@@ -148,6 +148,9 @@ def main() -> None:
 
     # bazel-execroot interferes with jekyll because it's a broken symlink.
     Path("bazel-execroot").unlink()
+    # This is a symlink to website/favicon.png, which is moved below.
+    # TODO: Consider moving the icon to a location which won't break.
+    Path("utils/vscode/images/icon.png").unlink()
 
     # The external symlink is created by scripts/create_compdb.py, and can
     # interfere with local execution.