@codingame/monaco-vscode-model-service-override 20.1.0 → 20.2.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-model-service-override",
3
- "version": "20.1.0",
3
+ "version": "20.2.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - model service-override",
6
6
  "keywords": [],
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "20.1.0",
19
- "@codingame/monaco-vscode-api": "20.1.0",
20
- "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.1.0"
18
+ "@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "20.2.0",
19
+ "@codingame/monaco-vscode-api": "20.2.0",
20
+ "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.2.0"
21
21
  },
22
22
  "main": "index.js",
23
23
  "module": "index.js",
@@ -4,18 +4,42 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
4
  import { ITextModel, ITextSnapshot } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model";
5
5
  import { IResolvableEditorModel } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
6
6
  export interface ITextModelContentProvider {
7
+ /**
8
+ * Given a resource, return the content of the resource as `ITextModel`.
9
+ */
7
10
  provideTextContent(resource: URI): Promise<ITextModel | null> | null;
8
11
  }
9
12
  export interface ITextEditorModel extends IResolvableEditorModel {
13
+ /**
14
+ * Emitted when the text model is about to be disposed.
15
+ */
10
16
  readonly onWillDispose: Event<void>;
17
+ /**
18
+ * Provides access to the underlying `ITextModel`.
19
+ */
11
20
  readonly textEditorModel: ITextModel | null;
21
+ /**
22
+ * Creates a snapshot of the model's contents.
23
+ */
12
24
  createSnapshot(this: IResolvedTextEditorModel): ITextSnapshot;
13
25
  createSnapshot(this: ITextEditorModel): ITextSnapshot | null;
26
+ /**
27
+ * Signals if this model is readonly or not.
28
+ */
14
29
  isReadonly(): boolean | IMarkdownString;
30
+ /**
31
+ * The language id of the text model if known.
32
+ */
15
33
  getLanguageId(): string | undefined;
34
+ /**
35
+ * Find out if this text model has been disposed.
36
+ */
16
37
  isDisposed(): boolean;
17
38
  }
18
39
  export interface IResolvedTextEditorModel extends ITextEditorModel {
40
+ /**
41
+ * Same as ITextEditorModel#textEditorModel, but never null.
42
+ */
19
43
  readonly textEditorModel: ITextModel;
20
44
  }
21
45
  export declare function isResolvedTextEditorModel(model: ITextEditorModel): model is IResolvedTextEditorModel;