monaco-languageclient 1.0.1 → 2.0.0-dev.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 (146) hide show
  1. package/dist/amd/console-window.d.ts +5 -4
  2. package/dist/amd/console-window.d.ts.map +1 -1
  3. package/dist/amd/console-window.js +17 -7
  4. package/dist/amd/console-window.js.map +1 -1
  5. package/dist/amd/disposable.d.ts +1 -1
  6. package/dist/amd/disposable.d.ts.map +1 -1
  7. package/dist/amd/disposable.js +6 -2
  8. package/dist/amd/disposable.js.map +1 -1
  9. package/dist/amd/index.d.ts +2 -4
  10. package/dist/amd/index.d.ts.map +1 -1
  11. package/dist/amd/index.js +7 -5
  12. package/dist/amd/index.js.map +1 -1
  13. package/dist/amd/monaco-converter.d.ts +14 -5
  14. package/dist/amd/monaco-converter.d.ts.map +1 -1
  15. package/dist/amd/monaco-converter.js +150 -122
  16. package/dist/amd/monaco-converter.js.map +1 -1
  17. package/dist/amd/monaco-language-client.d.ts +10 -3
  18. package/dist/amd/monaco-language-client.d.ts.map +1 -1
  19. package/dist/amd/monaco-language-client.js +69 -8
  20. package/dist/amd/monaco-language-client.js.map +1 -1
  21. package/dist/amd/monaco-services.d.ts +6 -10
  22. package/dist/amd/monaco-services.d.ts.map +1 -1
  23. package/dist/amd/monaco-services.js +6 -13
  24. package/dist/amd/monaco-services.js.map +1 -1
  25. package/dist/amd/monaco-workspace.d.ts +6 -28
  26. package/dist/amd/monaco-workspace.d.ts.map +1 -1
  27. package/dist/amd/monaco-workspace.js +4 -121
  28. package/dist/amd/monaco-workspace.js.map +1 -1
  29. package/lib/console-window.d.ts +5 -4
  30. package/lib/console-window.d.ts.map +1 -1
  31. package/lib/console-window.js +18 -12
  32. package/lib/console-window.js.map +1 -1
  33. package/lib/disposable.d.ts +1 -1
  34. package/lib/disposable.d.ts.map +1 -1
  35. package/lib/disposable.js +3 -7
  36. package/lib/disposable.js.map +1 -1
  37. package/lib/index.d.ts +2 -4
  38. package/lib/index.d.ts.map +1 -1
  39. package/lib/index.js +8 -13
  40. package/lib/index.js.map +1 -1
  41. package/lib/monaco-converter.d.ts +14 -5
  42. package/lib/monaco-converter.d.ts.map +1 -1
  43. package/lib/monaco-converter.js +164 -142
  44. package/lib/monaco-converter.js.map +1 -1
  45. package/lib/monaco-language-client.d.ts +10 -3
  46. package/lib/monaco-language-client.d.ts.map +1 -1
  47. package/lib/monaco-language-client.js +94 -13
  48. package/lib/monaco-language-client.js.map +1 -1
  49. package/lib/monaco-services.d.ts +6 -10
  50. package/lib/monaco-services.d.ts.map +1 -1
  51. package/lib/monaco-services.js +16 -26
  52. package/lib/monaco-services.js.map +1 -1
  53. package/lib/monaco-workspace.d.ts +6 -28
  54. package/lib/monaco-workspace.d.ts.map +1 -1
  55. package/lib/monaco-workspace.js +4 -128
  56. package/lib/monaco-workspace.js.map +1 -1
  57. package/package.json +25 -14
  58. package/src/console-window.ts +21 -10
  59. package/src/disposable.ts +2 -1
  60. package/src/index.ts +5 -4
  61. package/src/monaco-converter.ts +60 -29
  62. package/src/monaco-language-client.ts +102 -13
  63. package/src/monaco-services.ts +9 -23
  64. package/src/monaco-workspace.ts +6 -154
  65. package/dist/amd/connection.d.ts +0 -53
  66. package/dist/amd/connection.d.ts.map +0 -1
  67. package/dist/amd/connection.js +0 -41
  68. package/dist/amd/connection.js.map +0 -1
  69. package/dist/amd/converters.d.ts +0 -144
  70. package/dist/amd/converters.d.ts.map +0 -1
  71. package/dist/amd/converters.js +0 -154
  72. package/dist/amd/converters.js.map +0 -1
  73. package/dist/amd/monaco-commands.d.ts +0 -8
  74. package/dist/amd/monaco-commands.d.ts.map +0 -1
  75. package/dist/amd/monaco-commands.js +0 -15
  76. package/dist/amd/monaco-commands.js.map +0 -1
  77. package/dist/amd/monaco-diagnostic-collection.d.ts +0 -32
  78. package/dist/amd/monaco-diagnostic-collection.d.ts.map +0 -1
  79. package/dist/amd/monaco-diagnostic-collection.js +0 -76
  80. package/dist/amd/monaco-diagnostic-collection.js.map +0 -1
  81. package/dist/amd/monaco-languages.d.ts +0 -70
  82. package/dist/amd/monaco-languages.d.ts.map +0 -1
  83. package/dist/amd/monaco-languages.js +0 -503
  84. package/dist/amd/monaco-languages.js.map +0 -1
  85. package/dist/amd/register-vscode.d.ts +0 -2
  86. package/dist/amd/register-vscode.d.ts.map +0 -1
  87. package/dist/amd/register-vscode.js +0 -16
  88. package/dist/amd/register-vscode.js.map +0 -1
  89. package/dist/amd/services.d.ts +0 -234
  90. package/dist/amd/services.d.ts.map +0 -1
  91. package/dist/amd/services.js +0 -69
  92. package/dist/amd/services.js.map +0 -1
  93. package/dist/amd/vscode-api.d.ts +0 -4
  94. package/dist/amd/vscode-api.d.ts.map +0 -1
  95. package/dist/amd/vscode-api.js +0 -1018
  96. package/dist/amd/vscode-api.js.map +0 -1
  97. package/dist/amd/vscode-compatibility.d.ts +0 -4
  98. package/dist/amd/vscode-compatibility.d.ts.map +0 -1
  99. package/dist/amd/vscode-compatibility.js +0 -5
  100. package/dist/amd/vscode-compatibility.js.map +0 -1
  101. package/lib/connection.d.ts +0 -53
  102. package/lib/connection.d.ts.map +0 -1
  103. package/lib/connection.js +0 -41
  104. package/lib/connection.js.map +0 -1
  105. package/lib/converters.d.ts +0 -144
  106. package/lib/converters.d.ts.map +0 -1
  107. package/lib/converters.js +0 -152
  108. package/lib/converters.js.map +0 -1
  109. package/lib/monaco-commands.d.ts +0 -8
  110. package/lib/monaco-commands.d.ts.map +0 -1
  111. package/lib/monaco-commands.js +0 -13
  112. package/lib/monaco-commands.js.map +0 -1
  113. package/lib/monaco-diagnostic-collection.d.ts +0 -32
  114. package/lib/monaco-diagnostic-collection.d.ts.map +0 -1
  115. package/lib/monaco-diagnostic-collection.js +0 -75
  116. package/lib/monaco-diagnostic-collection.js.map +0 -1
  117. package/lib/monaco-languages.d.ts +0 -70
  118. package/lib/monaco-languages.d.ts.map +0 -1
  119. package/lib/monaco-languages.js +0 -504
  120. package/lib/monaco-languages.js.map +0 -1
  121. package/lib/register-vscode.d.ts +0 -2
  122. package/lib/register-vscode.d.ts.map +0 -1
  123. package/lib/register-vscode.js +0 -15
  124. package/lib/register-vscode.js.map +0 -1
  125. package/lib/services.d.ts +0 -234
  126. package/lib/services.d.ts.map +0 -1
  127. package/lib/services.js +0 -70
  128. package/lib/services.js.map +0 -1
  129. package/lib/vscode-api.d.ts +0 -4
  130. package/lib/vscode-api.d.ts.map +0 -1
  131. package/lib/vscode-api.js +0 -1021
  132. package/lib/vscode-api.js.map +0 -1
  133. package/lib/vscode-compatibility.d.ts +0 -4
  134. package/lib/vscode-compatibility.d.ts.map +0 -1
  135. package/lib/vscode-compatibility.js +0 -9
  136. package/lib/vscode-compatibility.js.map +0 -1
  137. package/src/connection.ts +0 -134
  138. package/src/converters.ts +0 -155
  139. package/src/monaco-commands.ts +0 -15
  140. package/src/monaco-diagnostic-collection.ts +0 -94
  141. package/src/monaco-languages.ts +0 -571
  142. package/src/register-vscode.ts +0 -13
  143. package/src/services.ts +0 -326
  144. package/src/typings/monaco/index.d.ts +0 -21
  145. package/src/vscode-api.ts +0 -1047
  146. package/src/vscode-compatibility.ts +0 -8
package/src/services.ts DELETED
@@ -1,326 +0,0 @@
1
- /* --------------------------------------------------------------------------------------------
2
- * Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- * ------------------------------------------------------------------------------------------ */
5
- 'use strict';
6
-
7
- import {
8
- DocumentSelector, MessageActionItem, MessageType,
9
- TextDocumentPositionParams, ReferenceParams, CodeActionParams, CodeLensParams, DocumentFormattingParams,
10
- DocumentRangeFormattingParams, DocumentOnTypeFormattingParams, RenameParams, DocumentLinkParams,
11
- WorkspaceClientCapabilities, Diagnostic, CompletionItem, CompletionList,
12
- Hover, SignatureHelp, Definition, Location, DocumentHighlight,
13
- SymbolInformation, Command, CodeLens, TextEdit, WorkspaceEdit,
14
- DocumentLink, TextDocumentSaveReason, DocumentSymbolParams,
15
- WorkspaceSymbolParams, TextDocumentContentChangeEvent, CompletionParams,
16
- ColorInformation, ColorPresentation, DocumentColorParams, ColorPresentationParams,
17
- FoldingRange, FoldingRangeParams, DocumentSymbol, CodeAction,
18
- Declaration, SelectionRangeParams, SelectionRange, SemanticTokensParams,
19
- SemanticTokens, SemanticTokensEdit, SemanticTokensLegend, SemanticTokensRangeParams,
20
- SemanticTokensDeltaParams, InlayHint, InlayHintParams
21
- } from 'vscode-languageserver-protocol';
22
-
23
- import { TextDocument } from 'vscode-languageserver-textdocument';
24
-
25
- import {
26
- Disposable, CancellationToken, Event, Emitter
27
- } from 'vscode-jsonrpc';
28
-
29
- import { URI as Uri } from 'vscode-uri';
30
- import { TextDocumentShowOptions } from 'vscode';
31
-
32
- export {
33
- Disposable, CancellationToken, Event, Emitter
34
- }
35
- export * from 'vscode-languageserver-protocol/lib/common/api';
36
-
37
- export {
38
- TextDocument
39
- }
40
-
41
- export interface Services {
42
- languages: Languages;
43
- workspace: Workspace;
44
- commands?: Commands;
45
- window?: Window;
46
- env?: Env
47
- }
48
- export namespace Services {
49
- const global = window as any;
50
- const symbol = Symbol('Services');
51
- export type Provider = () => Services;
52
- export const get: Provider = () => {
53
- const services = global[symbol];
54
- if (!services) {
55
- throw new Error('Language Client services has not been installed');
56
- }
57
- return services;
58
- }
59
- export function install(services: Services): Disposable {
60
- if (global[symbol]) {
61
- console.warn('Language Client services have been overridden');
62
- }
63
- global[symbol] = services;
64
-
65
- return Disposable.create(() => global[symbol] = undefined)
66
- }
67
- }
68
-
69
- export interface DiagnosticCollection extends Disposable {
70
- set(uri: string, diagnostics: Diagnostic[]): void;
71
- get(uri: string): Diagnostic[];
72
- }
73
-
74
- export type ProviderResult<T> = T | undefined | null | PromiseLike<T | undefined | null>;
75
-
76
- export interface CompletionItemProvider {
77
- provideCompletionItems(params: CompletionParams, token: CancellationToken): ProviderResult<CompletionItem[] | CompletionList>;
78
- resolveCompletionItem?(item: CompletionItem, token: CancellationToken): ProviderResult<CompletionItem>;
79
- }
80
-
81
- export interface HoverProvider {
82
- provideHover(params: TextDocumentPositionParams, token: CancellationToken): ProviderResult<Hover>;
83
- }
84
-
85
- export enum SignatureHelpTriggerKind {
86
- Invoke = 1,
87
- TriggerCharacter = 2,
88
- ContentChange = 3
89
- }
90
-
91
- // runtime support
92
- export enum VsCodeDiagnosticSeverity {
93
- Error = 0,
94
- Warning = 1,
95
- Information = 2,
96
- Hint = 3
97
- }
98
-
99
- export enum ProgressLocation {
100
- SourceControl = 1,
101
- Window = 10,
102
- Notification = 15
103
- }
104
-
105
- export interface SignatureHelpContext {
106
- readonly triggerKind: SignatureHelpTriggerKind;
107
- readonly triggerCharacter?: string;
108
- readonly isRetrigger: boolean;
109
- readonly activeSignatureHelp?: SignatureHelp;
110
- }
111
-
112
- export interface SignatureHelpProvider {
113
- readonly triggerCharacters?: ReadonlyArray<string>;
114
- readonly retriggerCharacters?: ReadonlyArray<string>;
115
- provideSignatureHelp(params: TextDocumentPositionParams, token: CancellationToken, context: SignatureHelpContext): ProviderResult<SignatureHelp>;
116
- }
117
-
118
- export interface DefinitionProvider {
119
- provideDefinition(params: TextDocumentPositionParams, token: CancellationToken): ProviderResult<Definition>;
120
- }
121
-
122
- export interface ReferenceProvider {
123
- provideReferences(params: ReferenceParams, token: CancellationToken): ProviderResult<Location[]>;
124
- }
125
-
126
- export interface DocumentHighlightProvider {
127
- provideDocumentHighlights(params: TextDocumentPositionParams, token: CancellationToken): ProviderResult<DocumentHighlight[]>;
128
- }
129
-
130
- export interface DocumentSymbolProvider {
131
- provideDocumentSymbols(params: DocumentSymbolParams, token: CancellationToken): ProviderResult<SymbolInformation[] | DocumentSymbol[]>;
132
- }
133
-
134
- export interface WorkspaceSymbolProvider {
135
- provideWorkspaceSymbols(params: WorkspaceSymbolParams, token: CancellationToken): ProviderResult<SymbolInformation[]>;
136
- }
137
-
138
- export interface CodeActionProvider<T extends CodeAction = CodeAction> {
139
- provideCodeActions(params: CodeActionParams, token: CancellationToken): ProviderResult<(Command | CodeAction)[]>;
140
- resolveCodeAction?(codeAction: T, token: CancellationToken): ProviderResult<T>;
141
- }
142
-
143
- export interface CodeLensProvider {
144
- provideCodeLenses(params: CodeLensParams, token: CancellationToken): ProviderResult<CodeLens[]>;
145
- resolveCodeLens?(codeLens: CodeLens, token: CancellationToken): ProviderResult<CodeLens>;
146
- }
147
-
148
- export interface DocumentFormattingEditProvider {
149
- provideDocumentFormattingEdits(params: DocumentFormattingParams, token: CancellationToken): ProviderResult<TextEdit[]>;
150
- }
151
-
152
- export interface DocumentRangeFormattingEditProvider {
153
- provideDocumentRangeFormattingEdits(params: DocumentRangeFormattingParams, token: CancellationToken): ProviderResult<TextEdit[]>;
154
- }
155
-
156
- export interface OnTypeFormattingEditProvider {
157
- provideOnTypeFormattingEdits(params: DocumentOnTypeFormattingParams, token: CancellationToken): ProviderResult<TextEdit[]>;
158
- }
159
-
160
- export interface RenameProvider {
161
- provideRenameEdits(params: RenameParams, token: CancellationToken): ProviderResult<WorkspaceEdit>;
162
- }
163
-
164
- export interface DocumentLinkProvider {
165
- provideDocumentLinks(params: DocumentLinkParams, token: CancellationToken): ProviderResult<DocumentLink[]>;
166
- resolveDocumentLink?(link: DocumentLink, token: CancellationToken): ProviderResult<DocumentLink>;
167
- }
168
-
169
- export interface DocumentIdentifier {
170
- uri: string;
171
- languageId: string;
172
- }
173
- export namespace DocumentIdentifier {
174
- export function is(arg: any): arg is DocumentIdentifier {
175
- return !!arg && ('uri' in arg) && ('languageId' in arg);
176
- }
177
- }
178
-
179
- export interface ImplementationProvider {
180
- provideImplementation(params: TextDocumentPositionParams, token: CancellationToken): ProviderResult<Definition>;
181
- }
182
-
183
- export interface TypeDefinitionProvider {
184
- provideTypeDefinition(params: TextDocumentPositionParams, token: CancellationToken): ProviderResult<Definition>;
185
- }
186
-
187
- export interface DeclarationProvider {
188
- provideDeclaration(params: TextDocumentPositionParams, token: CancellationToken): ProviderResult<Declaration>;
189
- }
190
-
191
- export interface DocumentColorProvider {
192
- provideDocumentColors(params: DocumentColorParams, token: CancellationToken): ProviderResult<ColorInformation[]>;
193
- provideColorPresentations(params: ColorPresentationParams, token: CancellationToken): ProviderResult<ColorPresentation[]>;
194
- }
195
-
196
- export interface FoldingRangeProvider {
197
- provideFoldingRanges(params: FoldingRangeParams, token: CancellationToken): ProviderResult<FoldingRange[]>;
198
- }
199
-
200
- export interface SelectionRangeProvider {
201
- provideSelectionRanges(params: SelectionRangeParams, token: CancellationToken): ProviderResult<SelectionRange[]>;
202
- }
203
-
204
- export interface DocumentSemanticTokensProvider {
205
- onDidChange?: Event<void>;
206
- provideDocumentSemanticTokens(params: SemanticTokensParams, token: CancellationToken): ProviderResult<SemanticTokens>;
207
- provideDocumentSemanticTokensEdits?(params: SemanticTokensDeltaParams, token: CancellationToken): ProviderResult<SemanticTokens | SemanticTokensEdit>;
208
- }
209
-
210
- export interface DocumentRangeSemanticTokensProvider {
211
- provideDocumentRangeSemanticTokens(params: SemanticTokensRangeParams, token: CancellationToken): ProviderResult<SemanticTokens>;
212
- }
213
-
214
- export interface InlayHintsProvider<T extends InlayHint = InlayHint> {
215
- onDidChangeInlayHints?: Event<void>;
216
- provideInlayHints(params: InlayHintParams, token: CancellationToken): ProviderResult<T[]>;
217
- resolveInlayHint?(hint: T, token: CancellationToken): ProviderResult<T>;
218
- }
219
-
220
- export interface Languages {
221
- match(selector: DocumentSelector, document: DocumentIdentifier): boolean;
222
- createDiagnosticCollection?(name?: string): DiagnosticCollection;
223
- registerCompletionItemProvider?(selector: DocumentSelector, provider: CompletionItemProvider, ...triggerCharacters: string[]): Disposable;
224
- registerHoverProvider?(selector: DocumentSelector, provider: HoverProvider): Disposable;
225
- registerSignatureHelpProvider?(selector: DocumentSelector, provider: SignatureHelpProvider): Disposable;
226
- registerDefinitionProvider?(selector: DocumentSelector, provider: DefinitionProvider): Disposable;
227
- registerReferenceProvider?(selector: DocumentSelector, provider: ReferenceProvider): Disposable;
228
- registerDocumentHighlightProvider?(selector: DocumentSelector, provider: DocumentHighlightProvider): Disposable;
229
- registerDocumentSymbolProvider?(selector: DocumentSelector, provider: DocumentSymbolProvider): Disposable;
230
- registerWorkspaceSymbolProvider?(provider: WorkspaceSymbolProvider): Disposable;
231
- registerCodeActionsProvider?(selector: DocumentSelector, provider: CodeActionProvider): Disposable;
232
- registerCodeLensProvider?(selector: DocumentSelector, provider: CodeLensProvider): Disposable;
233
- registerDocumentFormattingEditProvider?(selector: DocumentSelector, provider: DocumentFormattingEditProvider): Disposable;
234
- registerDocumentRangeFormattingEditProvider?(selector: DocumentSelector, provider: DocumentRangeFormattingEditProvider): Disposable;
235
- registerOnTypeFormattingEditProvider?(selector: DocumentSelector, provider: OnTypeFormattingEditProvider, firstTriggerCharacter: string, ...moreTriggerCharacter: string[]): Disposable;
236
- registerRenameProvider?(selector: DocumentSelector, provider: RenameProvider): Disposable;
237
- registerDocumentLinkProvider?(selector: DocumentSelector, provider: DocumentLinkProvider): Disposable;
238
- registerImplementationProvider?(selector: DocumentSelector, provider: ImplementationProvider): Disposable;
239
- registerTypeDefinitionProvider?(selector: DocumentSelector, provider: TypeDefinitionProvider): Disposable;
240
- registerDeclarationProvider?(selector: DocumentSelector, provider: DeclarationProvider): Disposable;
241
- registerColorProvider?(selector: DocumentSelector, provider: DocumentColorProvider): Disposable;
242
- registerFoldingRangeProvider?(selector: DocumentSelector, provider: FoldingRangeProvider): Disposable;
243
- registerSelectionRangeProvider?(selector: DocumentSelector, provider: SelectionRangeProvider): Disposable;
244
- registerDocumentSemanticTokensProvider?(selector: DocumentSelector, provider: DocumentSemanticTokensProvider, legend: SemanticTokensLegend): Disposable;
245
- registerDocumentRangeSemanticTokensProvider?(selector: DocumentSelector, provider: DocumentRangeSemanticTokensProvider, legend: SemanticTokensLegend): Disposable;
246
- registerInlayHintsProvider(selector: DocumentSelector, provider: InlayHintsProvider): Disposable;
247
- }
248
-
249
- export interface TextDocumentDidChangeEvent {
250
- readonly textDocument: TextDocument;
251
- readonly contentChanges: TextDocumentContentChangeEvent[];
252
- readonly isUndoing: boolean;
253
- readonly isRedoing: boolean;
254
- }
255
-
256
- export interface TextDocumentWillSaveEvent {
257
- readonly textDocument: TextDocument;
258
- readonly reason: TextDocumentSaveReason;
259
- waitUntil?(PromiseLike: PromiseLike<TextEdit[]>): void;
260
- }
261
-
262
- export enum ConfigurationTarget {
263
- Global = 1,
264
- Workspace = 2,
265
- WorkspaceFolder = 3
266
- }
267
-
268
- export interface WorkspaceConfiguration {
269
- toJSON(): any;
270
- get<T>(section: string): T | undefined;
271
- get<T>(section: string, defaultValue: T): T;
272
- has(section: string): boolean;
273
- readonly [key: string]: any;
274
- }
275
-
276
- export interface FileSystemWatcher extends Disposable {
277
- readonly onDidCreate: Event<Uri>;
278
- readonly onDidChange: Event<Uri>;
279
- readonly onDidDelete: Event<Uri>;
280
- }
281
-
282
- export interface ConfigurationChangeEvent {
283
- affectsConfiguration(section: string): boolean;
284
- }
285
- export interface Configurations {
286
- getConfiguration(section?: string, resource?: string): WorkspaceConfiguration;
287
- readonly onDidChangeConfiguration: Event<ConfigurationChangeEvent>;
288
- }
289
-
290
- export interface Workspace {
291
- readonly capabilities?: WorkspaceClientCapabilities;
292
- readonly rootPath?: string | null;
293
- readonly rootUri: string | null;
294
- readonly workspaceFolders?: typeof import('vscode').workspace.workspaceFolders;
295
- readonly onDidChangeWorkspaceFolders?: typeof import('vscode').workspace.onDidChangeWorkspaceFolders
296
- readonly textDocuments: TextDocument[];
297
- readonly onDidOpenTextDocument: Event<TextDocument>;
298
- readonly onDidCloseTextDocument: Event<TextDocument>;
299
- readonly onDidChangeTextDocument: Event<TextDocumentDidChangeEvent>;
300
- readonly configurations?: Configurations;
301
- readonly onWillSaveTextDocument?: Event<TextDocumentWillSaveEvent>;
302
- readonly onDidSaveTextDocument?: Event<TextDocument>;
303
- applyEdit(changes: WorkspaceEdit): PromiseLike<boolean>;
304
- createFileSystemWatcher?(globPattern: string, ignoreCreateEvents?: boolean, ignoreChangeEvents?: boolean, ignoreDeleteEvents?: boolean): FileSystemWatcher;
305
- }
306
-
307
- export interface Commands {
308
- registerCommand(command: string, callback: (...args: any[]) => any, thisArg?: any): Disposable;
309
- }
310
-
311
- export interface OutputChannel extends Disposable {
312
- append(value: string): void;
313
- appendLine(line: string): void;
314
- show(preserveFocus?: boolean): void;
315
- }
316
-
317
- export interface Window {
318
- showMessage<T extends MessageActionItem>(type: MessageType, message: string, ...actions: T[]): PromiseLike<T | undefined>;
319
- createOutputChannel?(name: string): OutputChannel;
320
- withProgress?: typeof import('vscode').window.withProgress;
321
- showTextDocument?(document: Uri, options?: TextDocumentShowOptions): PromiseLike<void>;
322
- }
323
-
324
- export interface Env {
325
- openExternal?(document: Uri): PromiseLike<boolean>;
326
- }
@@ -1,21 +0,0 @@
1
- /* --------------------------------------------------------------------------------------------
2
- * Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- * ------------------------------------------------------------------------------------------ */
5
- import type * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
6
-
7
- declare module 'monaco-editor' {
8
-
9
- module instantiation {
10
- export interface ServiceIdentifier<T> {
11
- (...args: any[]): void;
12
- type: T;
13
- }
14
- export interface ServicesAccessor {
15
- get<T>(id: ServiceIdentifier<T>, isOptional?: typeof optional): T;
16
- }
17
- export interface IInstantiationService {
18
- }
19
- export function optional<T>(serviceIdentifier: ServiceIdentifier<T>): (target: Function, key: string, index: number) => void;
20
- }
21
- }