sysml-v2-lsp 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -20,4 +20,11 @@ const workerPath = path.join(__dirname, 'dist', 'server', 'parseWorker.js');
20
20
  /** Absolute path to the bundled MCP server entry point (stdio transport). */
21
21
  const mcpServerPath = path.join(__dirname, 'dist', 'server', 'mcpServer.js');
22
22
 
23
- module.exports = { serverPath, workerPath, mcpServerPath };
23
+ /**
24
+ * Absolute path to the browser (Web Worker) language server bundle.
25
+ * Load this with `vscode-languageclient/browser` in a web extension host
26
+ * (e.g. vscode.dev), where there is no Node.js runtime.
27
+ */
28
+ const browserServerPath = path.join(__dirname, 'dist', 'server', 'browserServerMain.js');
29
+
30
+ module.exports = { serverPath, workerPath, mcpServerPath, browserServerPath };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sysml-v2-lsp",
3
3
  "displayName": "SysML v2 Language Server",
4
4
  "description": "Language Server Protocol implementation for SysML v2, powered by ANTLR4",
5
- "version": "0.20.0",
5
+ "version": "0.21.0",
6
6
  "publisher": "JamieD",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -100,8 +100,9 @@
100
100
  "generate": "antlr-ng -D language=TypeScript -o server/src/generated --generate-visitor true --generate-listener true grammar/SysMLv2Lexer.g4 grammar/SysMLv2Parser.g4",
101
101
  "compile": "tsc -b",
102
102
  "watch": "tsc -b -w",
103
- "build": "npm run generate && npm run compile && node esbuild.mjs",
104
- "build:production": "npm run clean && npm run generate && npm run compile && node esbuild.mjs --production",
103
+ "bundle-library": "node scripts/bundle-library.mjs",
104
+ "build": "npm run generate && npm run bundle-library && npm run compile && node esbuild.mjs",
105
+ "build:production": "npm run clean && npm run generate && npm run bundle-library && npm run compile && node esbuild.mjs --production",
105
106
  "lint": "eslint ./clients/vscode/src ./server/src",
106
107
  "test": "vitest run",
107
108
  "test:watch": "vitest",