瀏覽代碼

Prepare extension for packaging

Mads Møller Jensen 11 月之前
父節點
當前提交
fa7839e775

+ 10 - 47
vscode-extension/README.md

@@ -1,65 +1,28 @@
 # numbat README
 
-This is the README for your extension "numbat". After writing up a brief description, we recommend including the following sections.
+Language support for the [Numbat](https://github.com/sharkdp/numbat) language.
 
 ## Features
 
-Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
-
-For example if there is an image subfolder under your extension project workspace:
-
-\!\[feature X\]\(images/feature-x.png\)
-
-> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
+- Syntax highlighting
+- Code block folding
+- comment toggling
+- autosurounding brackets
 
 ## Requirements
 
-If you have any requirements or dependencies, add a section describing those and how to install and configure them.
+_None_  
 
 ## Extension Settings
 
-Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
-
-For example:
-
-This extension contributes the following settings:
-
-* `myExtension.enable`: enable/disable this extension
-* `myExtension.thing`: set to `blah` to do something
+_None_  
 
 ## Known Issues
 
-Calling out known issues can help limit users opening duplicate issues against your extension.
+_None so far_  
 
 ## Release Notes
 
-Users appreciate release notes as you update your extension.
-
-### 1.0.0
-
-Initial release of ...
-
-### 1.0.1
-
-Fixed issue #.
-
-### 1.1.0
-
-Added features X, Y, and Z.
-
------------------------------------------------------------------------------------------------------------
-
-## Working with Markdown
-
-**Note:** You can author your README using Visual Studio Code.  Here are some useful editor keyboard shortcuts:
-
-* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
-* Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
-* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets
-
-### For more information
-
-* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
-* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
+### 0.1.0
 
-**Enjoy!**
+Initial release of the Numbat extension!

二進制
vscode-extension/assets/numbat-256x256.png


二進制
vscode-extension/assets/numbat-64x64.png


+ 2 - 0
vscode-extension/language-configuration.json

@@ -15,10 +15,12 @@
         ["(", ")"],
         ["<", ">"],
         ["[", "]"],
+        ["\"", "\""],
     ],
     // symbols that can be used to surround a selection
     "surroundingPairs": [
         ["(", ")"],
+        ["\"", "\""],
     ],
     "folding": {
         "offSide": true // This is not strictly true, but we encourage a coding style where blocks are somewhat based on indentation

+ 20 - 3
vscode-extension/package.json

@@ -2,24 +2,41 @@
     "name": "numbat",
     "displayName": "Numbat",
     "description": "Syntax highlighting for the Numbat programming language",
-    "version": "0.0.1",
+    "version": "0.1.0",
+    "license": "(MIT OR Apache-2.0)",
+    "icon": "./assets/numbat-256x256.png",
     "engines": {
         "vscode": "^1.71.0"
     },
     "categories": [
         "Programming Languages"
     ],
+    "keywords": [
+        "language",
+        "physics",
+        "units",
+        "calculation"
+    ],
     "contributes": {
         "languages": [{
             "id": "numbat",
             "aliases": ["Numbat", "numbat"],
             "extensions": [".nbt"],
-            "configuration": "./language-configuration.json"
+            "configuration": "./language-configuration.json",
+            "icon": {
+                "light": "./assets/numbat-64x64.png",
+                "dark": "./assets/numbat-64x64.png"
+            }
         }],
         "grammars": [{
             "language": "numbat",
             "scopeName": "source.numbat",
             "path": "./syntaxes/numbat.tmLanguage.json"
         }]
-    }
+    },
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/sharkdp/numbat.git"
+    },
+    "homepage": "https://github.com/sharkdp/numbat/blob/master/vscode-extension/README.md"
 }