feat: 增加了analyzer, compiler不再分析并且报错, 只生产 bytecode, analyzer作为前端结束最后一道防线检查代码,同时引入一个简单的LSP

This commit is contained in:
2026-02-23 19:57:28 +08:00
parent 852dd27836
commit b7bb889676
28 changed files with 26665 additions and 3153 deletions

View File

@@ -1,19 +1,21 @@
{
"name": "fig-vscode",
"displayName": "Fig Language",
"description": "VSCode extension for Fig language with syntax highlighting",
"description": "VSCode extension for Fig language with syntax highlighting and lsp support",
"version": "0.5.0",
"publisher": "PuqiAR",
"engines": {
"vscode": "^1.90.0"
"vscode": "^1.108.0"
},
"categories": [
"Programming Languages"
],
"repository": {
"url":"https://github.com/PuqiAR/Fig"
"url": "https://github.com/PuqiAR/Fig"
},
"activationEvents": [],
"activationEvents": [
"onLanguage:fig"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
@@ -33,14 +35,6 @@
}
}
],
"semanticTokenModifiers": [
{
"fig": {
"variable": "variable.other.fig",
"function": "entity.name.function.fig"
}
}
],
"grammars": [
{
"language": "fig",
@@ -56,9 +50,13 @@
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"typescript": "^5.2.2",
"vscode": "^1.90.0",
"@types/node": "^20.6.0"
"@types/mocha": "^10.0.10",
"@types/node": "^20.6.0",
"@types/vscode": "^1.108.0",
"typescript": "^5.9.3"
}
}
}