@codingame/monaco-vscode-textmate-service-override 1.82.6 → 1.83.0-next.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-textmate-service-override",
3
- "version": "1.82.6",
3
+ "version": "1.83.0-next.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,10 +18,10 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@1.82.6",
22
- "monaco-editor": "0.43.0",
23
- "vscode-oniguruma": "^2.0.0",
24
- "vscode-textmate": "^9.0.0"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@1.83.0-next.0",
22
+ "monaco-editor": "0.44.0",
23
+ "vscode-oniguruma": "1.7.0",
24
+ "vscode-textmate": "9.0.0"
25
25
  },
26
26
  "exports": {
27
27
  ".": {
@@ -1,5 +1,5 @@
1
1
  import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
2
- import { keepAlive, autorun, observableFromEvent } from 'monaco-editor/esm/vs/base/common/observable.js';
2
+ import { keepObserved, autorun, observableFromEvent } from 'monaco-editor/esm/vs/base/common/observable.js';
3
3
  import { countEOL } from 'monaco-editor/esm/vs/editor/common/core/eolCounter.js';
4
4
  import { LineRange } from 'monaco-editor/esm/vs/editor/common/core/lineRange.js';
5
5
  import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
@@ -22,7 +22,7 @@ class TextMateWorkerTokenizerController extends Disposable {
22
22
  this._pendingChanges = [];
23
23
  this._states = ( new TokenizationStateStore());
24
24
  this._loggingEnabled = observableConfigValue('editor.experimental.asyncTokenizationLogging', false, this._configurationService);
25
- this._register(keepAlive(this._loggingEnabled));
25
+ this._register(keepObserved(this._loggingEnabled));
26
26
  this._register(this._model.onDidChangeContent((e) => {
27
27
  if (this._shouldLog) {
28
28
  console.log('model change', {
@@ -18,7 +18,7 @@ class TextMateWorkerTokenizer extends MirrorTextModel {
18
18
  this._encodedLanguageId = _encodedLanguageId;
19
19
  this._tokenizerWithStateStore = null;
20
20
  this._isDisposed = false;
21
- this._maxTokenizationLineLength = observableValue('_maxTokenizationLineLength', -1);
21
+ this._maxTokenizationLineLength = observableValue(this, -1);
22
22
  this._tokenizeDebouncer = ( new RunOnceScheduler(() => this._tokenize(), 10));
23
23
  this._maxTokenizationLineLength.set(maxTokenizationLineLength, undefined);
24
24
  this._resetTokenization();
@@ -1,6 +1,6 @@
1
1
  import { nullTokenizeEncoded } from 'monaco-editor/esm/vs/editor/common/languages/nullTokenize.js';
2
2
  import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
- import { keepAlive } from 'monaco-editor/esm/vs/base/common/observable.js';
3
+ import { keepObserved } from 'monaco-editor/esm/vs/base/common/observable.js';
4
4
 
5
5
  class TokenizationSupportWithLineLimit extends Disposable {
6
6
  get backgroundTokenizerShouldOnlyVerifyTokens() {
@@ -11,7 +11,7 @@ class TokenizationSupportWithLineLimit extends Disposable {
11
11
  this._encodedLanguageId = _encodedLanguageId;
12
12
  this._actual = _actual;
13
13
  this._maxTokenizationLineLength = _maxTokenizationLineLength;
14
- this._register(keepAlive(this._maxTokenizationLineLength));
14
+ this._register(keepObserved(this._maxTokenizationLineLength));
15
15
  }
16
16
  getInitialState() {
17
17
  return this._actual.getInitialState();