fix(vscode): repair WRN language diagnostics and activation
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "wrnexus",
|
||||
"displayName": "WRNexus Language Support",
|
||||
"description": "Complete language support for WRNexus .wrn files, including highlighting, formatting, diagnostics, snippets, lifecycle hooks, state watchers, component functions, completions, and definition navigation.",
|
||||
"version": "0.2.10",
|
||||
"version": "0.2.11",
|
||||
"publisher": "wrnexus",
|
||||
"private": true,
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
@@ -52,7 +52,9 @@
|
||||
],
|
||||
"main": "./src/extension.js",
|
||||
"activationEvents": [
|
||||
"onLanguage:wrn"
|
||||
"onLanguage:wrn",
|
||||
"workspaceContains:**/*.wrn",
|
||||
"onStartupFinished"
|
||||
],
|
||||
"contributes": {
|
||||
"languages": [
|
||||
@@ -66,6 +68,7 @@
|
||||
"extensions": [
|
||||
".wrn"
|
||||
],
|
||||
"firstLine": "^\\s*(?:page|component|layout)\\s+[A-Za-z_$][A-Za-z0-9_$]*\\s*\\{",
|
||||
"configuration": "./language-configuration.json",
|
||||
"icon": {
|
||||
"light": "./icons/wrn.png",
|
||||
@@ -125,6 +128,9 @@
|
||||
}
|
||||
},
|
||||
"configurationDefaults": {
|
||||
"files.associations": {
|
||||
"*.wrn": "wrn"
|
||||
},
|
||||
"[wrn]": {
|
||||
"editor.defaultFormatter": "wrnexus.wrnexus",
|
||||
"editor.formatOnSave": false,
|
||||
@@ -253,8 +259,9 @@
|
||||
"scripts": {
|
||||
"build:compiler": "bun build ../../packages/compiler/src/index.ts --target=node --format=cjs --outfile=src/compiler.cjs",
|
||||
"build": "bun run build:compiler",
|
||||
"test": "node --test test/*.test.js",
|
||||
"validate": "node test/validate.mjs",
|
||||
"check": "bun run build && bun run validate",
|
||||
"check": "bun run build && bun run test && bun run validate",
|
||||
"vscode:prepublish": "bun run check",
|
||||
"package": "vsce package --no-dependencies",
|
||||
"publish": "vsce publish --no-dependencies",
|
||||
|
||||
Reference in New Issue
Block a user