@codingame/monaco-vscode-editor-api 20.4.1 → 21.0.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@codingame/monaco-vscode-api/vscode/vs/editor/editor.worker.start'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@codingame/monaco-vscode-api/vscode/vs/editor/editor.worker.start'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-editor-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - monaco-editor compatible api",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-5452e2b7-9081-5f95-839b-4ab3544ce28f-common": "
|
|
19
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-5452e2b7-9081-5f95-839b-4ab3544ce28f-common": "21.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-api": "21.0.0"
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
22
22
|
".": "./esm/vs/editor/editor.api.js",
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"./esm/vs/editor/editor.api.js": "./esm/vs/editor/editor.api.js",
|
|
25
25
|
"./esm/vs/editor/editor.worker": "./esm/vs/editor/editor.worker.js",
|
|
26
26
|
"./esm/vs/editor/editor.worker.js": "./esm/vs/editor/editor.worker.js",
|
|
27
|
+
"./esm/vs/editor/editor.worker.start": "./esm/vs/editor/editor.worker.start.js",
|
|
28
|
+
"./esm/vs/editor/editor.worker.start.js": "./esm/vs/editor/editor.worker.start.js",
|
|
27
29
|
"./esm/vs/editor/common/commands/shiftCommand": "./esm/vs/editor/common/commands/shiftCommand.js",
|
|
28
30
|
"./esm/vs/editor/common/commands/shiftCommand.js": "./esm/vs/editor/common/commands/shiftCommand.js",
|
|
29
31
|
"./esm/vs/editor/browser/config/tabFocus": "./esm/vs/editor/browser/config/tabFocus.js",
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
// eslint-disable-next-line no-var
|
|
5
6
|
declare global {
|
|
6
|
-
|
|
7
|
-
interface Window {
|
|
8
|
-
MonacoEnvironment?: Environment | undefined;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
interface Window {
|
|
12
|
-
MonacoEnvironment?: Environment | undefined;
|
|
7
|
+
var MonacoEnvironment: Environment | undefined;
|
|
13
8
|
}
|
|
14
9
|
export type Thenable<T> = PromiseLike<T>;
|
|
15
10
|
export interface Environment {
|
|
@@ -2824,24 +2819,6 @@ export namespace editor {
|
|
|
2824
2819
|
*/
|
|
2825
2820
|
export interface IModelLanguageConfigurationChangedEvent {
|
|
2826
2821
|
}
|
|
2827
|
-
export interface IModelContentChange {
|
|
2828
|
-
/**
|
|
2829
|
-
* The old range that got replaced.
|
|
2830
|
-
*/
|
|
2831
|
-
readonly range: IRange;
|
|
2832
|
-
/**
|
|
2833
|
-
* The offset of the range that got replaced.
|
|
2834
|
-
*/
|
|
2835
|
-
readonly rangeOffset: number;
|
|
2836
|
-
/**
|
|
2837
|
-
* The length of the range that got replaced.
|
|
2838
|
-
*/
|
|
2839
|
-
readonly rangeLength: number;
|
|
2840
|
-
/**
|
|
2841
|
-
* The new text for the range.
|
|
2842
|
-
*/
|
|
2843
|
-
readonly text: string;
|
|
2844
|
-
}
|
|
2845
2822
|
/**
|
|
2846
2823
|
* An event describing a change in the text of a model.
|
|
2847
2824
|
*/
|
|
@@ -2927,6 +2904,24 @@ export namespace editor {
|
|
|
2927
2904
|
readonly insertSpaces: boolean;
|
|
2928
2905
|
readonly trimAutoWhitespace: boolean;
|
|
2929
2906
|
}
|
|
2907
|
+
export interface IModelContentChange {
|
|
2908
|
+
/**
|
|
2909
|
+
* The old range that got replaced.
|
|
2910
|
+
*/
|
|
2911
|
+
readonly range: IRange;
|
|
2912
|
+
/**
|
|
2913
|
+
* The offset of the range that got replaced.
|
|
2914
|
+
*/
|
|
2915
|
+
readonly rangeOffset: number;
|
|
2916
|
+
/**
|
|
2917
|
+
* The length of the range that got replaced.
|
|
2918
|
+
*/
|
|
2919
|
+
readonly rangeLength: number;
|
|
2920
|
+
/**
|
|
2921
|
+
* The new text for the range.
|
|
2922
|
+
*/
|
|
2923
|
+
readonly text: string;
|
|
2924
|
+
}
|
|
2930
2925
|
/**
|
|
2931
2926
|
* Describes the reason the cursor has changed its position.
|
|
2932
2927
|
*/
|
|
@@ -4583,6 +4578,7 @@ export namespace editor {
|
|
|
4583
4578
|
showToolbar?: "always" | "onHover" | "never";
|
|
4584
4579
|
syntaxHighlightingEnabled?: boolean;
|
|
4585
4580
|
suppressSuggestions?: boolean;
|
|
4581
|
+
minShowDelay?: number;
|
|
4586
4582
|
/**
|
|
4587
4583
|
* Does not clear active inline suggestions when the editor loses focus.
|
|
4588
4584
|
*/
|
|
@@ -7144,6 +7140,7 @@ export namespace languages {
|
|
|
7144
7140
|
readonly includeInlineEdits: boolean;
|
|
7145
7141
|
readonly includeInlineCompletions: boolean;
|
|
7146
7142
|
readonly requestIssuedDateTime: number;
|
|
7143
|
+
readonly earliestShownDateTime: number;
|
|
7147
7144
|
}
|
|
7148
7145
|
export class SelectedSuggestionInfo {
|
|
7149
7146
|
readonly range: IRange;
|
|
@@ -7198,13 +7195,22 @@ export namespace languages {
|
|
|
7198
7195
|
readonly showRange?: IRange;
|
|
7199
7196
|
readonly warning?: InlineCompletionWarning;
|
|
7200
7197
|
readonly displayLocation?: InlineCompletionDisplayLocation;
|
|
7198
|
+
/**
|
|
7199
|
+
* Used for telemetry.
|
|
7200
|
+
*/
|
|
7201
|
+
readonly correlationId?: string | undefined;
|
|
7201
7202
|
}
|
|
7202
7203
|
export interface InlineCompletionWarning {
|
|
7203
7204
|
message: IMarkdownString | string;
|
|
7204
7205
|
icon?: IconPath;
|
|
7205
7206
|
}
|
|
7207
|
+
export enum InlineCompletionDisplayLocationKind {
|
|
7208
|
+
Code = 1,
|
|
7209
|
+
Label = 2
|
|
7210
|
+
}
|
|
7206
7211
|
export interface InlineCompletionDisplayLocation {
|
|
7207
7212
|
range: IRange;
|
|
7213
|
+
kind: InlineCompletionDisplayLocationKind;
|
|
7208
7214
|
label: string;
|
|
7209
7215
|
}
|
|
7210
7216
|
/**
|
|
@@ -7264,6 +7270,7 @@ export namespace languages {
|
|
|
7264
7270
|
* The current provider is only requested for completions if no provider with a preferred group id returned a result.
|
|
7265
7271
|
*/
|
|
7266
7272
|
yieldsToGroupIds?: InlineCompletionProviderGroupId[];
|
|
7273
|
+
excludesGroupIds?: InlineCompletionProviderGroupId[];
|
|
7267
7274
|
displayName?: string;
|
|
7268
7275
|
debounceDelayMs?: number;
|
|
7269
7276
|
toString?(): string;
|
|
@@ -7287,11 +7294,17 @@ export namespace languages {
|
|
|
7287
7294
|
};
|
|
7288
7295
|
export type LifetimeSummary = {
|
|
7289
7296
|
requestUuid: string;
|
|
7297
|
+
correlationId: string | undefined;
|
|
7290
7298
|
partiallyAccepted: number;
|
|
7299
|
+
partiallyAcceptedCountSinceOriginal: number;
|
|
7300
|
+
partiallyAcceptedRatioSinceOriginal: number;
|
|
7301
|
+
partiallyAcceptedCharactersSinceOriginal: number;
|
|
7291
7302
|
shown: boolean;
|
|
7292
7303
|
shownDuration: number;
|
|
7293
7304
|
shownDurationUncollapsed: number;
|
|
7294
7305
|
timeUntilShown: number | undefined;
|
|
7306
|
+
timeUntilProviderRequest: number;
|
|
7307
|
+
timeUntilProviderResponse: number;
|
|
7295
7308
|
editorType: string;
|
|
7296
7309
|
viewKind: string | undefined;
|
|
7297
7310
|
error: string | undefined;
|
|
@@ -7982,7 +7995,7 @@ export namespace languages {
|
|
|
7982
7995
|
command?: Command;
|
|
7983
7996
|
}
|
|
7984
7997
|
export interface CodeLensList {
|
|
7985
|
-
lenses: CodeLens[];
|
|
7998
|
+
readonly lenses: readonly CodeLens[];
|
|
7986
7999
|
dispose?(): void;
|
|
7987
8000
|
}
|
|
7988
8001
|
export interface CodeLensProvider {
|
|
@@ -7,7 +7,7 @@ import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/
|
|
|
7
7
|
import { ILanguageConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/languageConfigurationRegistry.service';
|
|
8
8
|
import { ModesRegistry } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/modesRegistry';
|
|
9
9
|
import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures.service';
|
|
10
|
-
import { InlineCompletionEndOfLifeReasonKind, HoverVerbosityAction, PartialAcceptTriggerKind, NewSymbolNameTriggerKind, NewSymbolNameTag, CodeActionTriggerType, InlineCompletionTriggerKind, InlayHintKind, SignatureHelpTriggerKind, CompletionTriggerKind, IndentAction, SymbolTag, SymbolKind, CompletionItemInsertTextRule, CompletionItemTag, CompletionItemKind, DocumentHighlightKind } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/standalone/standaloneEnums';
|
|
10
|
+
import { InlineCompletionDisplayLocationKind, InlineCompletionEndOfLifeReasonKind, HoverVerbosityAction, PartialAcceptTriggerKind, NewSymbolNameTriggerKind, NewSymbolNameTag, CodeActionTriggerType, InlineCompletionTriggerKind, InlayHintKind, SignatureHelpTriggerKind, CompletionTriggerKind, IndentAction, SymbolTag, SymbolKind, CompletionItemInsertTextRule, CompletionItemTag, CompletionItemKind, DocumentHighlightKind } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/standalone/standaloneEnums';
|
|
11
11
|
import { StandaloneServices } from '@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
12
12
|
import { compile } from '../common/monarch/monarchCompile.js';
|
|
13
13
|
import { MonarchTokenizer } from '../common/monarch/monarchLexer.js';
|
|
@@ -431,6 +431,7 @@ function createMonacoLanguagesAPI() {
|
|
|
431
431
|
PartialAcceptTriggerKind: PartialAcceptTriggerKind,
|
|
432
432
|
HoverVerbosityAction: HoverVerbosityAction,
|
|
433
433
|
InlineCompletionEndOfLifeReasonKind: InlineCompletionEndOfLifeReasonKind,
|
|
434
|
+
InlineCompletionDisplayLocationKind: InlineCompletionDisplayLocationKind,
|
|
434
435
|
FoldingRangeKind: FoldingRangeKind,
|
|
435
436
|
SelectedSuggestionInfo: SelectedSuggestionInfo,
|
|
436
437
|
};
|