fix(vscode): repair WRN language diagnostics and activation

This commit is contained in:
2026-07-19 14:02:17 +05:30
parent df4c1d3e7d
commit 646d16f83d
16 changed files with 425 additions and 171 deletions
+10 -3
View File
@@ -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",