@coldsmirk/inkstone-monaco 0.38.0 → 0.38.1

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1370,7 +1370,7 @@ var WorkerTokenizerController = class {
1370
1370
  if (first === void 0) return;
1371
1371
  const line = first;
1372
1372
  queueMicrotask(() => {
1373
- if (this.session?.id === session) this.internals.tokenizeIfCheap(this.model, line);
1373
+ if (this.session?.id === session && line <= this.model.getLineCount()) this.internals.tokenizeIfCheap(this.model, line);
1374
1374
  });
1375
1375
  }
1376
1376
  disconnect() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coldsmirk/inkstone-monaco",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
4
4
  "description": "Framework-agnostic Monaco assembly: lazy offline host (all language workers bundled, no CDN), opt-in Simplified-Chinese UI via monaco's official NLS catalog, a streaming editor controller for AI-typed content, and the shared Shiki highlighting bridge.",
5
5
  "keywords": [
6
6
  "monaco",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@shikijs/vscode-textmate": "^10.0.2",
43
43
  "shiki": "^4.5.0",
44
- "@coldsmirk/inkstone-core": "^0.38.0"
44
+ "@coldsmirk/inkstone-core": "^0.38.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "monaco-editor": "^0.57.0",