Skip to content

Commit

Permalink
初始化 VSCode 插件项目 #658
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Apr 26, 2024
1 parent bfe0384 commit 5f48e52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _vscode_plugin/Sillot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"name": "sillot",
"displayName": "汐洛 Sillot",
"description": "汐洛官方插件",
"version": "0.1.1020",
"version": "0.1.1100",
"repository": "/~https://github.com/Hi-Windom/Sillot",
"publisher": "Hi-Windom",
"engines": {
"vscode": "^1.88.0"
},
Expand Down Expand Up @@ -95,6 +96,7 @@
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"vsce:package": "pnpm vsce package",
"vsce:login": "pnpm vsce login Hi-Windom",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
Expand Down
5 changes: 4 additions & 1 deletion _vscode_plugin/Sillot/vsc-extension-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

### language-configuration.json里的定义如何理解


`language-configuration.json` 文件是用于定义一种编程语言的特定行为的配置文件。它告诉VSCode如何处理这种语言的各种特性,例如注释、括号匹配、自动闭合字符对等。这个文件通常与 `package.json` 中的 `languages` 部分一起使用,以提供完整的语言支持。

Check notice on line 5 in _vscode_plugin/Sillot/vsc-extension-quickstart.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

_vscode_plugin/Sillot/vsc-extension-quickstart.md#L5

Expected: 80; Actual: 152
下面是 `language-configuration.json` 文件中的一些常见配置项的解释:

Expand All @@ -19,3 +18,7 @@
- `semanticTokenScopes`: 定义了语义标记的范围,用于为不同的语言元素提供不同的颜色。
- `semanticTokenModifiers`: 定义了可以应用于语义标记的修饰符,以进一步区分不同的语言元素。
这些配置项使得VSCode能够更好地理解和处理特定语言的文件,提供更加丰富和准确的语言支持。在为sy文件创建语言配置时,您可以根据sy文件的实际语法特性来调整这些配置项。如果sy文件与JSON非常相似,您可以简单地使用JSON的语言配置,或者根据需要添加或修改特定的配置项。



在 [Manage Extensions | Visual Studio Marketplace](https://marketplace.visualstudio.com/manage/publishers/hi-windom) 直接上传打包好的 vsix 文件即可发布/更新,一般来说不需要通过 cli 发布(vsce login 我试了不成功报错还是乱码我晕)

Check notice on line 24 in _vscode_plugin/Sillot/vsc-extension-quickstart.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

_vscode_plugin/Sillot/vsc-extension-quickstart.md#L24

Expected: 80; Actual: 183

0 comments on commit 5f48e52

Please sign in to comment.