@codingame/monaco-vscode-api 1.68.1 → 1.68.4

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/README.md CHANGED
@@ -42,3 +42,26 @@ import * as vscode from 'vscode'
42
42
  const range = new new vscode.Range(...)
43
43
  vscode.languages.registerCompletionItemProvider(...)
44
44
  ```
45
+
46
+ ### History
47
+
48
+ This project was mainly created to make the implementation of [monaco-languageclient](https://github.com/TypeFox/monaco-languageclient) more robust and maintainable.
49
+
50
+ monaco-languageclient uses [vscode-languageclient](https://www.npmjs.com/package/vscode-languageclient) which was built to run inside a VSCode extension. VSCode extensions communicate with the editor via an [API](https://www.npmjs.com/package/@types/vscode) they can import into their code.
51
+
52
+ [The VSCode api](https://code.visualstudio.com/api/references/vscode-api) exports:
53
+ - Some functions to interact with the IDE ([language feature registrations](https://code.visualstudio.com/api/references/vscode-api#languages), [command execution](https://code.visualstudio.com/api/references/vscode-api#commands)...)
54
+ - A lot of utility classes (Range, Position...)
55
+
56
+ The first implementations of [monaco-languageclient](https://github.com/TypeFox/monaco-languageclient) were using a fake VSCode api implementation. The vscode-languageclient was hacked so the VSCode<->protocol object converters were mainly bypassed, so the fake VSCode api was receiving [Language Server Protocol](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/) objects. Then the objects were transformed using custom transformers into [Monaco](https://www.npmjs.com/package/monaco-editor) objects to communicate with the monaco api.
57
+
58
+ This approach has some disadvantages:
59
+ - There is a lot of code to transform LSP objects into Monaco objects
60
+ - It's hard to follow the updates of VSCode and the language server protocol
61
+ - It doesn't behave exactly the same as in VSCode
62
+
63
+ With this library, it would be possible to plug vscode-languageclient directly on top of monaco, monaco-languageclient still helps to do so by:
64
+ - Adding some tweaks to the VSCode LanguageClient (Removing unsupported features...)
65
+ - Providing a default implementations of the required fallback services (`vscode/services`)
66
+ - Providing some examples on how to build an app using it
67
+ - Adding some tools (DisposableCollection)
package/dist/api.amd.js CHANGED
@@ -2166,11 +2166,11 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
2166
2166
  }
2167
2167
  };
2168
2168
  EvaluatableExpression$2 = EvaluatableExpression$2;
2169
- var InlineCompletionTriggerKind;
2169
+ var InlineCompletionTriggerKind$1;
2170
2170
  (function(InlineCompletionTriggerKind) {
2171
2171
  InlineCompletionTriggerKind[InlineCompletionTriggerKind["Invoke"] = 0] = "Invoke";
2172
2172
  InlineCompletionTriggerKind[InlineCompletionTriggerKind["Automatic"] = 1] = "Automatic";
2173
- })(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));
2173
+ })(InlineCompletionTriggerKind$1 || (InlineCompletionTriggerKind$1 = {}));
2174
2174
  let InlineValueText$1 = class InlineValueText {
2175
2175
  constructor(range, text) {
2176
2176
  this.range = range;
@@ -2480,12 +2480,12 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
2480
2480
  QuickPickItemKind[QuickPickItemKind["Separator"] = -1] = "Separator";
2481
2481
  QuickPickItemKind[QuickPickItemKind["Default"] = 0] = "Default";
2482
2482
  })(QuickPickItemKind$1 || (QuickPickItemKind$1 = {}));
2483
- var InputBoxValidationSeverity;
2483
+ var InputBoxValidationSeverity$1;
2484
2484
  (function(InputBoxValidationSeverity) {
2485
2485
  InputBoxValidationSeverity[InputBoxValidationSeverity["Info"] = 1] = "Info";
2486
2486
  InputBoxValidationSeverity[InputBoxValidationSeverity["Warning"] = 2] = "Warning";
2487
2487
  InputBoxValidationSeverity[InputBoxValidationSeverity["Error"] = 3] = "Error";
2488
- })(InputBoxValidationSeverity || (InputBoxValidationSeverity = {}));
2488
+ })(InputBoxValidationSeverity$1 || (InputBoxValidationSeverity$1 = {}));
2489
2489
  var ExtensionKind$1;
2490
2490
  (function(ExtensionKind) {
2491
2491
  ExtensionKind[ExtensionKind["UI"] = 1] = "UI";
@@ -2711,13 +2711,13 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
2711
2711
  NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Left"] = 1] = "Left";
2712
2712
  NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Right"] = 2] = "Right";
2713
2713
  })(NotebookCellStatusBarAlignment$1 || (NotebookCellStatusBarAlignment$1 = {}));
2714
- var NotebookEditorRevealType;
2714
+ var NotebookEditorRevealType$1;
2715
2715
  (function(NotebookEditorRevealType) {
2716
2716
  NotebookEditorRevealType[NotebookEditorRevealType["Default"] = 0] = "Default";
2717
2717
  NotebookEditorRevealType[NotebookEditorRevealType["InCenter"] = 1] = "InCenter";
2718
2718
  NotebookEditorRevealType[NotebookEditorRevealType["InCenterIfOutsideViewport"] = 2] = "InCenterIfOutsideViewport";
2719
2719
  NotebookEditorRevealType[NotebookEditorRevealType["AtTop"] = 3] = "AtTop";
2720
- })(NotebookEditorRevealType || (NotebookEditorRevealType = {}));
2720
+ })(NotebookEditorRevealType$1 || (NotebookEditorRevealType$1 = {}));
2721
2721
  class NotebookCellStatusBarItem$1 {
2722
2722
  constructor(text, alignment) {
2723
2723
  this.text = text;
@@ -5174,8 +5174,8 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
5174
5174
  this._references = new ReferenceMap();
5175
5175
  this._isAdditionsProposedApiEnabled = isProposedApiEnabled(this._extension, 'inlineCompletionsAdditions');
5176
5176
  this.languageTriggerKindToVSCodeTriggerKind = {
5177
- [languages_js.InlineCompletionTriggerKind.Automatic]: InlineCompletionTriggerKind.Automatic,
5178
- [languages_js.InlineCompletionTriggerKind.Explicit]: InlineCompletionTriggerKind.Invoke,
5177
+ [languages_js.InlineCompletionTriggerKind.Automatic]: InlineCompletionTriggerKind$1.Automatic,
5178
+ [languages_js.InlineCompletionTriggerKind.Explicit]: InlineCompletionTriggerKind$1.Invoke,
5179
5179
  };
5180
5180
  }
5181
5181
  get supportsHandleDidShowCompletionItem() {
@@ -8767,7 +8767,9 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
8767
8767
  },
8768
8768
  registerCodeLensProvider(documentSelector, provider) {
8769
8769
  const adapter = new CodeLensAdapter(extHostDocuments, extHostCommands.converter, provider);
8770
- return monaco__namespace.languages.registerCodeLensProvider(documentSelector, {
8770
+ const onDidChangeCodeLenses = provider.onDidChangeCodeLenses;
8771
+ const monacoProvider = {
8772
+ onDidChange: onDidChangeCodeLenses != null ? listener => onDidChangeCodeLenses(() => listener(monacoProvider)) : undefined,
8771
8773
  provideCodeLenses: async (model, token) => {
8772
8774
  const listDto = await adapter.provideCodeLenses(model.uri, token);
8773
8775
  if (listDto == null) {
@@ -8781,7 +8783,8 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
8781
8783
  resolveCodeLens: (_model, codeLens, token) => {
8782
8784
  return adapter.resolveCodeLens(codeLens, token);
8783
8785
  }
8784
- });
8786
+ };
8787
+ return monaco__namespace.languages.registerCodeLensProvider(documentSelector, monacoProvider);
8785
8788
  },
8786
8789
  registerDefinitionProvider(documentSelector, provider) {
8787
8790
  const adapter = new DefinitionAdapter(extHostDocuments, provider);
@@ -8996,6 +8999,7 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
8996
8999
  const adapter = new DocumentSemanticTokensAdapter(extHostDocuments, provider);
8997
9000
  return monaco__namespace.languages.registerDocumentSemanticTokensProvider(documentSelector, {
8998
9001
  getLegend: () => legend,
9002
+ onDidChange: provider.onDidChangeSemanticTokens,
8999
9003
  provideDocumentSemanticTokens: async (model, lastResultId, token) => {
9000
9004
  const nLastResultId = lastResultId != null ? parseInt(lastResultId, 10) : 0;
9001
9005
  const encodedDto = await adapter.provideDocumentSemanticTokens(model.uri, nLastResultId, token);
@@ -9051,6 +9055,7 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
9051
9055
  const adapter = new InlayHintsAdapter(extHostDocuments, extHostCommands.converter, provider, extHostLogService, extensionDescription);
9052
9056
  return monaco__namespace.languages.registerInlayHintsProvider(documentSelector, {
9053
9057
  displayName: ExtHostLanguageFeatures._extLabel(extensionDescription),
9058
+ onDidChangeInlayHints: provider.onDidChangeInlayHints,
9054
9059
  provideInlayHints: async (model, range, token) => {
9055
9060
  const result = await adapter.provideInlayHints(model.uri, range, token);
9056
9061
  if (result == null) {
@@ -9893,14 +9898,13 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
9893
9898
  TabInputNotebookDiff: NotebookDiffEditorTabInput,
9894
9899
  TabInputWebview: WebviewEditorTabInput,
9895
9900
  TabInputTerminal: TerminalEditorTabInput,
9896
- InputBoxValidationSeverity: InputBoxValidationSeverity,
9901
+ InputBoxValidationSeverity: InputBoxValidationSeverity$1,
9897
9902
  InlineCompletionList: InlineSuggestionList,
9898
- InlineCompletionTriggerKind: InlineCompletionTriggerKind,
9903
+ InlineCompletionTriggerKind: InlineCompletionTriggerKind$1,
9899
9904
  InlineCompletionItem: InlineSuggestion,
9900
- NotebookEditorRevealType: NotebookEditorRevealType
9905
+ NotebookEditorRevealType: NotebookEditorRevealType$1
9901
9906
  };
9902
- const { version, tasks, notebooks, scm, debug, extensions, comments, authentication, tests, env, commands, window: window$1, workspace, languages, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag,
9903
- CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, InlayHint, InlayHintLabelPart, InlayHintKind, NotebookRange, NotebookCellKind, NotebookCellData, NotebookData, NotebookCellStatusBarAlignment, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, LinkedEditingRanges, TestRunRequest, TestMessage, TestTag, TestRunProfileKind, DataTransfer, DataTransferItem, LanguageStatusSeverity, QuickPickItemKind, TabInputText, TabInputTextDiff, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputWebview, TabInputTerminal } = api;
9907
+ const { version, tasks, notebooks, scm, debug, extensions, comments, authentication, tests, env, commands, window: window$1, workspace, languages, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, InlayHint, InlayHintLabelPart, InlayHintKind, NotebookRange, NotebookCellKind, NotebookCellData, NotebookData, NotebookCellStatusBarAlignment, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, LinkedEditingRanges, TestRunRequest, TestMessage, TestTag, TestRunProfileKind, DataTransfer, DataTransferItem, LanguageStatusSeverity, QuickPickItemKind, TabInputText, TabInputTextDiff, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputWebview, TabInputTerminal, InputBoxValidationSeverity, InlineCompletionList, InlineCompletionTriggerKind, InlineCompletionItem, NotebookEditorRevealType } = api;
9904
9908
  exports.Breakpoint = Breakpoint;
9905
9909
  exports.CallHierarchyIncomingCall = CallHierarchyIncomingCall;
9906
9910
  exports.CallHierarchyItem = CallHierarchyItem;
@@ -9961,9 +9965,13 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
9961
9965
  exports.InlayHint = InlayHint;
9962
9966
  exports.InlayHintKind = InlayHintKind;
9963
9967
  exports.InlayHintLabelPart = InlayHintLabelPart;
9968
+ exports.InlineCompletionItem = InlineCompletionItem;
9969
+ exports.InlineCompletionList = InlineCompletionList;
9970
+ exports.InlineCompletionTriggerKind = InlineCompletionTriggerKind;
9964
9971
  exports.InlineValueEvaluatableExpression = InlineValueEvaluatableExpression;
9965
9972
  exports.InlineValueText = InlineValueText;
9966
9973
  exports.InlineValueVariableLookup = InlineValueVariableLookup;
9974
+ exports.InputBoxValidationSeverity = InputBoxValidationSeverity;
9967
9975
  exports.LanguageStatusSeverity = LanguageStatusSeverity;
9968
9976
  exports.LinkedEditingRanges = LinkedEditingRanges;
9969
9977
  exports.Location = Location;
@@ -9976,6 +9984,7 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
9976
9984
  exports.NotebookCellStatusBarItem = NotebookCellStatusBarItem;
9977
9985
  exports.NotebookControllerAffinity = NotebookControllerAffinity;
9978
9986
  exports.NotebookData = NotebookData;
9987
+ exports.NotebookEditorRevealType = NotebookEditorRevealType;
9979
9988
  exports.NotebookRange = NotebookRange;
9980
9989
  exports.OverviewRulerLane = OverviewRulerLane;
9981
9990
  exports.ParameterInformation = ParameterInformation;
package/dist/api.cjs CHANGED
@@ -2209,11 +2209,11 @@ let EvaluatableExpression$2 = class EvaluatableExpression {
2209
2209
  }
2210
2210
  };
2211
2211
  EvaluatableExpression$2 = EvaluatableExpression$2;
2212
- var InlineCompletionTriggerKind;
2212
+ var InlineCompletionTriggerKind$1;
2213
2213
  (function(InlineCompletionTriggerKind) {
2214
2214
  InlineCompletionTriggerKind[InlineCompletionTriggerKind["Invoke"] = 0] = "Invoke";
2215
2215
  InlineCompletionTriggerKind[InlineCompletionTriggerKind["Automatic"] = 1] = "Automatic";
2216
- })(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));
2216
+ })(InlineCompletionTriggerKind$1 || (InlineCompletionTriggerKind$1 = {}));
2217
2217
  let InlineValueText$1 = class InlineValueText {
2218
2218
  constructor(range, text) {
2219
2219
  this.range = range;
@@ -2523,12 +2523,12 @@ var QuickPickItemKind$1;
2523
2523
  QuickPickItemKind[QuickPickItemKind["Separator"] = -1] = "Separator";
2524
2524
  QuickPickItemKind[QuickPickItemKind["Default"] = 0] = "Default";
2525
2525
  })(QuickPickItemKind$1 || (QuickPickItemKind$1 = {}));
2526
- var InputBoxValidationSeverity;
2526
+ var InputBoxValidationSeverity$1;
2527
2527
  (function(InputBoxValidationSeverity) {
2528
2528
  InputBoxValidationSeverity[InputBoxValidationSeverity["Info"] = 1] = "Info";
2529
2529
  InputBoxValidationSeverity[InputBoxValidationSeverity["Warning"] = 2] = "Warning";
2530
2530
  InputBoxValidationSeverity[InputBoxValidationSeverity["Error"] = 3] = "Error";
2531
- })(InputBoxValidationSeverity || (InputBoxValidationSeverity = {}));
2531
+ })(InputBoxValidationSeverity$1 || (InputBoxValidationSeverity$1 = {}));
2532
2532
  var ExtensionKind$1;
2533
2533
  (function(ExtensionKind) {
2534
2534
  ExtensionKind[ExtensionKind["UI"] = 1] = "UI";
@@ -2754,13 +2754,13 @@ var NotebookCellStatusBarAlignment$1;
2754
2754
  NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Left"] = 1] = "Left";
2755
2755
  NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Right"] = 2] = "Right";
2756
2756
  })(NotebookCellStatusBarAlignment$1 || (NotebookCellStatusBarAlignment$1 = {}));
2757
- var NotebookEditorRevealType;
2757
+ var NotebookEditorRevealType$1;
2758
2758
  (function(NotebookEditorRevealType) {
2759
2759
  NotebookEditorRevealType[NotebookEditorRevealType["Default"] = 0] = "Default";
2760
2760
  NotebookEditorRevealType[NotebookEditorRevealType["InCenter"] = 1] = "InCenter";
2761
2761
  NotebookEditorRevealType[NotebookEditorRevealType["InCenterIfOutsideViewport"] = 2] = "InCenterIfOutsideViewport";
2762
2762
  NotebookEditorRevealType[NotebookEditorRevealType["AtTop"] = 3] = "AtTop";
2763
- })(NotebookEditorRevealType || (NotebookEditorRevealType = {}));
2763
+ })(NotebookEditorRevealType$1 || (NotebookEditorRevealType$1 = {}));
2764
2764
  class NotebookCellStatusBarItem$1 {
2765
2765
  constructor(text, alignment) {
2766
2766
  this.text = text;
@@ -5217,8 +5217,8 @@ class DocumentRangeSemanticTokensAdapter {
5217
5217
  this._references = new ReferenceMap();
5218
5218
  this._isAdditionsProposedApiEnabled = isProposedApiEnabled(this._extension, 'inlineCompletionsAdditions');
5219
5219
  this.languageTriggerKindToVSCodeTriggerKind = {
5220
- [languages_js.InlineCompletionTriggerKind.Automatic]: InlineCompletionTriggerKind.Automatic,
5221
- [languages_js.InlineCompletionTriggerKind.Explicit]: InlineCompletionTriggerKind.Invoke,
5220
+ [languages_js.InlineCompletionTriggerKind.Automatic]: InlineCompletionTriggerKind$1.Automatic,
5221
+ [languages_js.InlineCompletionTriggerKind.Explicit]: InlineCompletionTriggerKind$1.Invoke,
5222
5222
  };
5223
5223
  }
5224
5224
  get supportsHandleDidShowCompletionItem() {
@@ -8810,7 +8810,9 @@ const workspace$2 = {
8810
8810
  },
8811
8811
  registerCodeLensProvider(documentSelector, provider) {
8812
8812
  const adapter = new CodeLensAdapter(extHostDocuments, extHostCommands.converter, provider);
8813
- return monaco__namespace.languages.registerCodeLensProvider(documentSelector, {
8813
+ const onDidChangeCodeLenses = provider.onDidChangeCodeLenses;
8814
+ const monacoProvider = {
8815
+ onDidChange: onDidChangeCodeLenses != null ? listener => onDidChangeCodeLenses(() => listener(monacoProvider)) : undefined,
8814
8816
  provideCodeLenses: async (model, token) => {
8815
8817
  const listDto = await adapter.provideCodeLenses(model.uri, token);
8816
8818
  if (listDto == null) {
@@ -8824,7 +8826,8 @@ const workspace$2 = {
8824
8826
  resolveCodeLens: (_model, codeLens, token) => {
8825
8827
  return adapter.resolveCodeLens(codeLens, token);
8826
8828
  }
8827
- });
8829
+ };
8830
+ return monaco__namespace.languages.registerCodeLensProvider(documentSelector, monacoProvider);
8828
8831
  },
8829
8832
  registerDefinitionProvider(documentSelector, provider) {
8830
8833
  const adapter = new DefinitionAdapter(extHostDocuments, provider);
@@ -9039,6 +9042,7 @@ const workspace$2 = {
9039
9042
  const adapter = new DocumentSemanticTokensAdapter(extHostDocuments, provider);
9040
9043
  return monaco__namespace.languages.registerDocumentSemanticTokensProvider(documentSelector, {
9041
9044
  getLegend: () => legend,
9045
+ onDidChange: provider.onDidChangeSemanticTokens,
9042
9046
  provideDocumentSemanticTokens: async (model, lastResultId, token) => {
9043
9047
  const nLastResultId = lastResultId != null ? parseInt(lastResultId, 10) : 0;
9044
9048
  const encodedDto = await adapter.provideDocumentSemanticTokens(model.uri, nLastResultId, token);
@@ -9094,6 +9098,7 @@ const workspace$2 = {
9094
9098
  const adapter = new InlayHintsAdapter(extHostDocuments, extHostCommands.converter, provider, extHostLogService, extensionDescription);
9095
9099
  return monaco__namespace.languages.registerInlayHintsProvider(documentSelector, {
9096
9100
  displayName: ExtHostLanguageFeatures._extLabel(extensionDescription),
9101
+ onDidChangeInlayHints: provider.onDidChangeInlayHints,
9097
9102
  provideInlayHints: async (model, range, token) => {
9098
9103
  const result = await adapter.provideInlayHints(model.uri, range, token);
9099
9104
  if (result == null) {
@@ -9936,14 +9941,13 @@ const api = {
9936
9941
  TabInputNotebookDiff: NotebookDiffEditorTabInput,
9937
9942
  TabInputWebview: WebviewEditorTabInput,
9938
9943
  TabInputTerminal: TerminalEditorTabInput,
9939
- InputBoxValidationSeverity: InputBoxValidationSeverity,
9944
+ InputBoxValidationSeverity: InputBoxValidationSeverity$1,
9940
9945
  InlineCompletionList: InlineSuggestionList,
9941
- InlineCompletionTriggerKind: InlineCompletionTriggerKind,
9946
+ InlineCompletionTriggerKind: InlineCompletionTriggerKind$1,
9942
9947
  InlineCompletionItem: InlineSuggestion,
9943
- NotebookEditorRevealType: NotebookEditorRevealType
9948
+ NotebookEditorRevealType: NotebookEditorRevealType$1
9944
9949
  };
9945
- const { version, tasks, notebooks, scm, debug, extensions, comments, authentication, tests, env, commands, window: window$1, workspace, languages, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag,
9946
- CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, InlayHint, InlayHintLabelPart, InlayHintKind, NotebookRange, NotebookCellKind, NotebookCellData, NotebookData, NotebookCellStatusBarAlignment, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, LinkedEditingRanges, TestRunRequest, TestMessage, TestTag, TestRunProfileKind, DataTransfer, DataTransferItem, LanguageStatusSeverity, QuickPickItemKind, TabInputText, TabInputTextDiff, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputWebview, TabInputTerminal } = api;
9950
+ const { version, tasks, notebooks, scm, debug, extensions, comments, authentication, tests, env, commands, window: window$1, workspace, languages, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, InlayHint, InlayHintLabelPart, InlayHintKind, NotebookRange, NotebookCellKind, NotebookCellData, NotebookData, NotebookCellStatusBarAlignment, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, LinkedEditingRanges, TestRunRequest, TestMessage, TestTag, TestRunProfileKind, DataTransfer, DataTransferItem, LanguageStatusSeverity, QuickPickItemKind, TabInputText, TabInputTextDiff, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputWebview, TabInputTerminal, InputBoxValidationSeverity, InlineCompletionList, InlineCompletionTriggerKind, InlineCompletionItem, NotebookEditorRevealType } = api;
9947
9951
  exports.Breakpoint = Breakpoint;
9948
9952
  exports.CallHierarchyIncomingCall = CallHierarchyIncomingCall;
9949
9953
  exports.CallHierarchyItem = CallHierarchyItem;
@@ -10004,9 +10008,13 @@ exports.IndentAction = IndentAction;
10004
10008
  exports.InlayHint = InlayHint;
10005
10009
  exports.InlayHintKind = InlayHintKind;
10006
10010
  exports.InlayHintLabelPart = InlayHintLabelPart;
10011
+ exports.InlineCompletionItem = InlineCompletionItem;
10012
+ exports.InlineCompletionList = InlineCompletionList;
10013
+ exports.InlineCompletionTriggerKind = InlineCompletionTriggerKind;
10007
10014
  exports.InlineValueEvaluatableExpression = InlineValueEvaluatableExpression;
10008
10015
  exports.InlineValueText = InlineValueText;
10009
10016
  exports.InlineValueVariableLookup = InlineValueVariableLookup;
10017
+ exports.InputBoxValidationSeverity = InputBoxValidationSeverity;
10010
10018
  exports.LanguageStatusSeverity = LanguageStatusSeverity;
10011
10019
  exports.LinkedEditingRanges = LinkedEditingRanges;
10012
10020
  exports.Location = Location;
@@ -10019,6 +10027,7 @@ exports.NotebookCellStatusBarAlignment = NotebookCellStatusBarAlignment;
10019
10027
  exports.NotebookCellStatusBarItem = NotebookCellStatusBarItem;
10020
10028
  exports.NotebookControllerAffinity = NotebookControllerAffinity;
10021
10029
  exports.NotebookData = NotebookData;
10030
+ exports.NotebookEditorRevealType = NotebookEditorRevealType;
10022
10031
  exports.NotebookRange = NotebookRange;
10023
10032
  exports.OverviewRulerLane = OverviewRulerLane;
10024
10033
  exports.ParameterInformation = ParameterInformation;
package/dist/api.js CHANGED
@@ -14,7 +14,7 @@ import { parse, revive } from 'monaco-editor/esm/vs/base/common/marshalling.js';
14
14
  import { cloneAndChange, mixin } from 'monaco-editor/esm/vs/base/common/objects.js';
15
15
  import { ExtensionIdentifier } from 'monaco-editor/esm/vs/platform/extensions/common/extensions.js';
16
16
  import { encodeSemanticTokensDto } from 'monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js';
17
- import { InlineCompletionTriggerKind as InlineCompletionTriggerKind$1 } from 'monaco-editor/esm/vs/editor/common/languages.js';
17
+ import { InlineCompletionTriggerKind as InlineCompletionTriggerKind$2 } from 'monaco-editor/esm/vs/editor/common/languages.js';
18
18
  import { DisposableStore, Disposable as Disposable$2, toDisposable, dispose, combinedDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
19
19
  import { IdGenerator } from 'monaco-editor/esm/vs/base/common/idGenerator.js';
20
20
  import { StopWatch } from 'monaco-editor/esm/vs/base/common/stopwatch.js';
@@ -2187,11 +2187,11 @@ let EvaluatableExpression$2 = class EvaluatableExpression {
2187
2187
  }
2188
2188
  };
2189
2189
  EvaluatableExpression$2 = EvaluatableExpression$2;
2190
- var InlineCompletionTriggerKind;
2190
+ var InlineCompletionTriggerKind$1;
2191
2191
  (function(InlineCompletionTriggerKind) {
2192
2192
  InlineCompletionTriggerKind[InlineCompletionTriggerKind["Invoke"] = 0] = "Invoke";
2193
2193
  InlineCompletionTriggerKind[InlineCompletionTriggerKind["Automatic"] = 1] = "Automatic";
2194
- })(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));
2194
+ })(InlineCompletionTriggerKind$1 || (InlineCompletionTriggerKind$1 = {}));
2195
2195
  let InlineValueText$1 = class InlineValueText {
2196
2196
  constructor(range, text) {
2197
2197
  this.range = range;
@@ -2501,12 +2501,12 @@ var QuickPickItemKind$1;
2501
2501
  QuickPickItemKind[QuickPickItemKind["Separator"] = -1] = "Separator";
2502
2502
  QuickPickItemKind[QuickPickItemKind["Default"] = 0] = "Default";
2503
2503
  })(QuickPickItemKind$1 || (QuickPickItemKind$1 = {}));
2504
- var InputBoxValidationSeverity;
2504
+ var InputBoxValidationSeverity$1;
2505
2505
  (function(InputBoxValidationSeverity) {
2506
2506
  InputBoxValidationSeverity[InputBoxValidationSeverity["Info"] = 1] = "Info";
2507
2507
  InputBoxValidationSeverity[InputBoxValidationSeverity["Warning"] = 2] = "Warning";
2508
2508
  InputBoxValidationSeverity[InputBoxValidationSeverity["Error"] = 3] = "Error";
2509
- })(InputBoxValidationSeverity || (InputBoxValidationSeverity = {}));
2509
+ })(InputBoxValidationSeverity$1 || (InputBoxValidationSeverity$1 = {}));
2510
2510
  var ExtensionKind$1;
2511
2511
  (function(ExtensionKind) {
2512
2512
  ExtensionKind[ExtensionKind["UI"] = 1] = "UI";
@@ -2732,13 +2732,13 @@ var NotebookCellStatusBarAlignment$1;
2732
2732
  NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Left"] = 1] = "Left";
2733
2733
  NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Right"] = 2] = "Right";
2734
2734
  })(NotebookCellStatusBarAlignment$1 || (NotebookCellStatusBarAlignment$1 = {}));
2735
- var NotebookEditorRevealType;
2735
+ var NotebookEditorRevealType$1;
2736
2736
  (function(NotebookEditorRevealType) {
2737
2737
  NotebookEditorRevealType[NotebookEditorRevealType["Default"] = 0] = "Default";
2738
2738
  NotebookEditorRevealType[NotebookEditorRevealType["InCenter"] = 1] = "InCenter";
2739
2739
  NotebookEditorRevealType[NotebookEditorRevealType["InCenterIfOutsideViewport"] = 2] = "InCenterIfOutsideViewport";
2740
2740
  NotebookEditorRevealType[NotebookEditorRevealType["AtTop"] = 3] = "AtTop";
2741
- })(NotebookEditorRevealType || (NotebookEditorRevealType = {}));
2741
+ })(NotebookEditorRevealType$1 || (NotebookEditorRevealType$1 = {}));
2742
2742
  class NotebookCellStatusBarItem$1 {
2743
2743
  constructor(text, alignment) {
2744
2744
  this.text = text;
@@ -5195,8 +5195,8 @@ class DocumentRangeSemanticTokensAdapter {
5195
5195
  this._references = new ReferenceMap();
5196
5196
  this._isAdditionsProposedApiEnabled = isProposedApiEnabled(this._extension, 'inlineCompletionsAdditions');
5197
5197
  this.languageTriggerKindToVSCodeTriggerKind = {
5198
- [InlineCompletionTriggerKind$1.Automatic]: InlineCompletionTriggerKind.Automatic,
5199
- [InlineCompletionTriggerKind$1.Explicit]: InlineCompletionTriggerKind.Invoke,
5198
+ [InlineCompletionTriggerKind$2.Automatic]: InlineCompletionTriggerKind$1.Automatic,
5199
+ [InlineCompletionTriggerKind$2.Explicit]: InlineCompletionTriggerKind$1.Invoke,
5200
5200
  };
5201
5201
  }
5202
5202
  get supportsHandleDidShowCompletionItem() {
@@ -8788,7 +8788,9 @@ const workspace$2 = {
8788
8788
  },
8789
8789
  registerCodeLensProvider(documentSelector, provider) {
8790
8790
  const adapter = new CodeLensAdapter(extHostDocuments, extHostCommands.converter, provider);
8791
- return monaco.languages.registerCodeLensProvider(documentSelector, {
8791
+ const onDidChangeCodeLenses = provider.onDidChangeCodeLenses;
8792
+ const monacoProvider = {
8793
+ onDidChange: onDidChangeCodeLenses != null ? listener => onDidChangeCodeLenses(() => listener(monacoProvider)) : undefined,
8792
8794
  provideCodeLenses: async (model, token) => {
8793
8795
  const listDto = await adapter.provideCodeLenses(model.uri, token);
8794
8796
  if (listDto == null) {
@@ -8802,7 +8804,8 @@ const workspace$2 = {
8802
8804
  resolveCodeLens: (_model, codeLens, token) => {
8803
8805
  return adapter.resolveCodeLens(codeLens, token);
8804
8806
  }
8805
- });
8807
+ };
8808
+ return monaco.languages.registerCodeLensProvider(documentSelector, monacoProvider);
8806
8809
  },
8807
8810
  registerDefinitionProvider(documentSelector, provider) {
8808
8811
  const adapter = new DefinitionAdapter(extHostDocuments, provider);
@@ -9017,6 +9020,7 @@ const workspace$2 = {
9017
9020
  const adapter = new DocumentSemanticTokensAdapter(extHostDocuments, provider);
9018
9021
  return monaco.languages.registerDocumentSemanticTokensProvider(documentSelector, {
9019
9022
  getLegend: () => legend,
9023
+ onDidChange: provider.onDidChangeSemanticTokens,
9020
9024
  provideDocumentSemanticTokens: async (model, lastResultId, token) => {
9021
9025
  const nLastResultId = lastResultId != null ? parseInt(lastResultId, 10) : 0;
9022
9026
  const encodedDto = await adapter.provideDocumentSemanticTokens(model.uri, nLastResultId, token);
@@ -9072,6 +9076,7 @@ const workspace$2 = {
9072
9076
  const adapter = new InlayHintsAdapter(extHostDocuments, extHostCommands.converter, provider, extHostLogService, extensionDescription);
9073
9077
  return monaco.languages.registerInlayHintsProvider(documentSelector, {
9074
9078
  displayName: ExtHostLanguageFeatures._extLabel(extensionDescription),
9079
+ onDidChangeInlayHints: provider.onDidChangeInlayHints,
9075
9080
  provideInlayHints: async (model, range, token) => {
9076
9081
  const result = await adapter.provideInlayHints(model.uri, range, token);
9077
9082
  if (result == null) {
@@ -9914,12 +9919,11 @@ const api = {
9914
9919
  TabInputNotebookDiff: NotebookDiffEditorTabInput,
9915
9920
  TabInputWebview: WebviewEditorTabInput,
9916
9921
  TabInputTerminal: TerminalEditorTabInput,
9917
- InputBoxValidationSeverity: InputBoxValidationSeverity,
9922
+ InputBoxValidationSeverity: InputBoxValidationSeverity$1,
9918
9923
  InlineCompletionList: InlineSuggestionList,
9919
- InlineCompletionTriggerKind: InlineCompletionTriggerKind,
9924
+ InlineCompletionTriggerKind: InlineCompletionTriggerKind$1,
9920
9925
  InlineCompletionItem: InlineSuggestion,
9921
- NotebookEditorRevealType: NotebookEditorRevealType
9926
+ NotebookEditorRevealType: NotebookEditorRevealType$1
9922
9927
  };
9923
- const { version, tasks, notebooks, scm, debug, extensions, comments, authentication, tests, env, commands, window: window$1, workspace, languages, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag,
9924
- CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, InlayHint, InlayHintLabelPart, InlayHintKind, NotebookRange, NotebookCellKind, NotebookCellData, NotebookData, NotebookCellStatusBarAlignment, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, LinkedEditingRanges, TestRunRequest, TestMessage, TestTag, TestRunProfileKind, DataTransfer, DataTransferItem, LanguageStatusSeverity, QuickPickItemKind, TabInputText, TabInputTextDiff, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputWebview, TabInputTerminal } = api;
9925
- export { Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DataTransfer, DataTransferItem, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FilePermission, FileSystemError, FileType, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, InlayHint, InlayHintKind, InlayHintLabelPart, InlineValueEvaluatableExpression, InlineValueText, InlineValueVariableLookup, LanguageStatusSeverity, LinkedEditingRanges, Location, MarkdownString, NotebookCellData, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarAlignment, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookData, NotebookRange, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, QuickPickItemKind, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputTerminal, TabInputText, TabInputTextDiff, TabInputWebview, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TestMessage, TestRunProfileKind, TestRunRequest, TestTag, TextDocumentChangeReason, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, authentication, commands, comments, debug, env, extensions, languages, notebooks, scm, tasks, tests, version, window$1 as window, workspace };
9928
+ const { version, tasks, notebooks, scm, debug, extensions, comments, authentication, tests, env, commands, window: window$1, workspace, languages, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, InlayHint, InlayHintLabelPart, InlayHintKind, NotebookRange, NotebookCellKind, NotebookCellData, NotebookData, NotebookCellStatusBarAlignment, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, LinkedEditingRanges, TestRunRequest, TestMessage, TestTag, TestRunProfileKind, DataTransfer, DataTransferItem, LanguageStatusSeverity, QuickPickItemKind, TabInputText, TabInputTextDiff, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputWebview, TabInputTerminal, InputBoxValidationSeverity, InlineCompletionList, InlineCompletionTriggerKind, InlineCompletionItem, NotebookEditorRevealType } = api;
9929
+ export { Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DataTransfer, DataTransferItem, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FilePermission, FileSystemError, FileType, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionItem, InlineCompletionList, InlineCompletionTriggerKind, InlineValueEvaluatableExpression, InlineValueText, InlineValueVariableLookup, InputBoxValidationSeverity, LanguageStatusSeverity, LinkedEditingRanges, Location, MarkdownString, NotebookCellData, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarAlignment, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookData, NotebookEditorRevealType, NotebookRange, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, QuickPickItemKind, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputTerminal, TabInputText, TabInputTextDiff, TabInputWebview, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TestMessage, TestRunProfileKind, TestRunRequest, TestTag, TextDocumentChangeReason, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, authentication, commands, comments, debug, env, extensions, languages, notebooks, scm, tasks, tests, version, window$1 as window, workspace };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "1.68.1",
3
+ "version": "1.68.4",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],
@@ -86,10 +86,6 @@
86
86
  "dependencies": {
87
87
  "monaco-editor": "^0.33.0"
88
88
  },
89
- "engines": {
90
- "node": ">=16.0.0",
91
- "npm": ">=7.10.0"
92
- },
93
89
  "volta": {
94
90
  "node": "16.15.0",
95
91
  "npm": "8.11.0"