@codingame/monaco-vscode-extension-api 13.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.
- package/extension.api.d.ts +3 -0
- package/extension.api.js +307 -0
- package/localExtensionHost.d.ts +44 -0
- package/localExtensionHost.js +229 -0
- package/package.json +54 -0
package/extension.api.js
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
|
|
2
|
+
import { Breakpoint as Breakpoint$1, TerminalOutputAnchor as TerminalOutputAnchor$1, ChatResultFeedbackKind as ChatResultFeedbackKind$1, ChatVariableLevel as ChatVariableLevel$1, ChatCompletionItem as ChatCompletionItem$1, CallHierarchyIncomingCall as CallHierarchyIncomingCall$1, CallHierarchyItem as CallHierarchyItem$1, CallHierarchyOutgoingCall as CallHierarchyOutgoingCall$1, CodeAction as CodeAction$1, CodeActionKind as CodeActionKind$1, CodeActionTriggerKind as CodeActionTriggerKind$1, CodeLens as CodeLens$1, Color as Color$1, ColorInformation as ColorInformation$1, ColorPresentation as ColorPresentation$1, ColorThemeKind as ColorThemeKind$1, CommentMode as CommentMode$1, CommentState as CommentState$1, CommentThreadCollapsibleState as CommentThreadCollapsibleState$1, CommentThreadState as CommentThreadState$1, CommentThreadApplicability as CommentThreadApplicability$1, CommentThreadFocus as CommentThreadFocus$1, CompletionItem as CompletionItem$1, CompletionItemKind as CompletionItemKind$1, CompletionItemTag as CompletionItemTag$1, CompletionList as CompletionList$1, CompletionTriggerKind as CompletionTriggerKind$1, ConfigurationTarget as ConfigurationTarget$1, CustomExecution as CustomExecution$1, DebugAdapterExecutable as DebugAdapterExecutable$1, DebugAdapterInlineImplementation as DebugAdapterInlineImplementation$1, DebugAdapterNamedPipeServer as DebugAdapterNamedPipeServer$1, DebugAdapterServer as DebugAdapterServer$1, DebugConsoleMode as DebugConsoleMode$1, DebugVisualization as DebugVisualization$1, DecorationRangeBehavior as DecorationRangeBehavior$1, Diagnostic as Diagnostic$1, DiagnosticRelatedInformation as DiagnosticRelatedInformation$1, DiagnosticSeverity as DiagnosticSeverity$1, DiagnosticTag as DiagnosticTag$1, Disposable as Disposable$1, DocumentHighlight as DocumentHighlight$1, DocumentHighlightKind as DocumentHighlightKind$1, MultiDocumentHighlight as MultiDocumentHighlight$1, DocumentLink as DocumentLink$1, DocumentSymbol as DocumentSymbol$1, EndOfLine as EndOfLine$1, EnvironmentVariableMutatorType as EnvironmentVariableMutatorType$1, EvaluatableExpression as EvaluatableExpression$1, InlineValueText as InlineValueText$1, InlineValueVariableLookup as InlineValueVariableLookup$1, InlineValueEvaluatableExpression as InlineValueEvaluatableExpression$1, InlineCompletionTriggerKind as InlineCompletionTriggerKind$1, ExtensionKind as ExtensionKind$1, ExtensionMode as ExtensionMode$1, ExternalUriOpenerPriority as ExternalUriOpenerPriority$1, FileChangeType as FileChangeType$1, FileDecoration as FileDecoration$1, FileSystemError as FileSystemError$1, FoldingRange as FoldingRange$1, FoldingRangeKind as FoldingRangeKind$1, FunctionBreakpoint as FunctionBreakpoint$1, InlineSuggestion, InlineSuggestionList, Hover as Hover$1, VerboseHover as VerboseHover$1, HoverVerbosityAction as HoverVerbosityAction$1, Location as Location$1, MarkdownString as MarkdownString$1, ParameterInformation as ParameterInformation$1, PortAutoForwardAction as PortAutoForwardAction$1, Position as Position$1, ProcessExecution as ProcessExecution$1, ProgressLocation as ProgressLocation$1, QuickInputButtonLocation as QuickInputButtonLocation$1, QuickInputButtons as QuickInputButtons$1, Range as Range$1, RelativePattern as RelativePattern$1, Selection as Selection$1, SelectionRange as SelectionRange$1, SemanticTokens as SemanticTokens$1, SemanticTokensBuilder as SemanticTokensBuilder$1, SemanticTokensEdit as SemanticTokensEdit$1, SemanticTokensEdits as SemanticTokensEdits$1, SemanticTokensLegend as SemanticTokensLegend$1, ShellExecution as ShellExecution$1, ShellQuoting as ShellQuoting$1, SignatureHelp as SignatureHelp$1, SignatureHelpTriggerKind as SignatureHelpTriggerKind$1, SignatureInformation as SignatureInformation$1, SnippetString as SnippetString$1, SourceBreakpoint as SourceBreakpoint$1, StandardTokenType as StandardTokenType$1, StatusBarAlignment as StatusBarAlignment$1, SymbolInformation as SymbolInformation$1, SymbolKind as SymbolKind$1, SymbolTag as SymbolTag$1, Task as Task$1, TaskGroup as TaskGroup$1, TaskPanelKind as TaskPanelKind$1, TaskRevealKind as TaskRevealKind$1, TaskScope as TaskScope$1, TerminalLink as TerminalLink$1, TerminalQuickFixCommand, TerminalQuickFixOpener as TerminalQuickFixOpener$1, TerminalLocation as TerminalLocation$1, TerminalProfile as TerminalProfile$1, TerminalExitReason as TerminalExitReason$1, TerminalShellExecutionCommandLineConfidence as TerminalShellExecutionCommandLineConfidence$1, TextDocumentSaveReason as TextDocumentSaveReason$1, TextEdit as TextEdit$1, SnippetTextEdit as SnippetTextEdit$1, TextEditorLineNumbersStyle as TextEditorLineNumbersStyle$1, TextEditorRevealType as TextEditorRevealType$1, TextEditorSelectionChangeKind as TextEditorSelectionChangeKind$1, SyntaxTokenType as SyntaxTokenType$1, TextDocumentChangeReason as TextDocumentChangeReason$1, ThemeColor as ThemeColor$1, ThemeIcon as ThemeIcon$1, TreeItem as TreeItem$1, TreeItemCheckboxState as TreeItemCheckboxState$1, TreeItemCollapsibleState as TreeItemCollapsibleState$1, TypeHierarchyItem as TypeHierarchyItem$1, ViewColumn as ViewColumn$1, WorkspaceEdit as WorkspaceEdit$1, DocumentPasteTriggerKind as DocumentPasteTriggerKind$1, DocumentDropEdit as DocumentDropEdit$1, DocumentDropOrPasteEditKind as DocumentDropOrPasteEditKind$1, DocumentPasteEdit as DocumentPasteEdit$1, InlayHint as InlayHint$1, InlayHintLabelPart as InlayHintLabelPart$1, InlayHintKind as InlayHintKind$1, RemoteAuthorityResolverError as RemoteAuthorityResolverError$1, ResolvedAuthority as ResolvedAuthority$1, ManagedResolvedAuthority as ManagedResolvedAuthority$1, SourceControlInputBoxValidationType as SourceControlInputBoxValidationType$1, ExtensionRuntime as ExtensionRuntime$1, TimelineItem as TimelineItem$1, NotebookRange as NotebookRange$1, NotebookCellKind as NotebookCellKind$1, NotebookCellExecutionState as NotebookCellExecutionState$1, NotebookCellData as NotebookCellData$1, NotebookData as NotebookData$1, NotebookRendererScript as NotebookRendererScript$1, NotebookCellStatusBarAlignment as NotebookCellStatusBarAlignment$1, NotebookEditorRevealType as NotebookEditorRevealType$1, NotebookCellOutput as NotebookCellOutput$1, NotebookCellOutputItem as NotebookCellOutputItem$1, NotebookCellStatusBarItem as NotebookCellStatusBarItem$1, NotebookControllerAffinity as NotebookControllerAffinity$1, NotebookControllerAffinity2 as NotebookControllerAffinity2$1, NotebookEdit as NotebookEdit$1, NotebookKernelSourceAction as NotebookKernelSourceAction$1, NotebookVariablesRequestKind as NotebookVariablesRequestKind$1, PortAttributes as PortAttributes$1, LinkedEditingRanges as LinkedEditingRanges$1, TestResultState as TestResultState$1, TestRunRequest as TestRunRequest$1, TestMessage as TestMessage$1, TestMessageStackFrame as TestMessageStackFrame$1, TestTag as TestTag$1, TestRunProfileKind as TestRunProfileKind$1, DataTransfer as DataTransfer$1, DataTransferItem as DataTransferItem$1, TestCoverageCount as TestCoverageCount$1, FileCoverage as FileCoverage$1, StatementCoverage as StatementCoverage$1, BranchCoverage as BranchCoverage$1, DeclarationCoverage as DeclarationCoverage$1, LanguageStatusSeverity as LanguageStatusSeverity$1, QuickPickItemKind as QuickPickItemKind$1, InputBoxValidationSeverity as InputBoxValidationSeverity$1, TextTabInput, TextDiffTabInput, TextMergeTabInput, CustomEditorTabInput, NotebookEditorTabInput, NotebookDiffEditorTabInput, WebviewEditorTabInput, TerminalEditorTabInput, InteractiveWindowInput, ChatEditorTabInput, TextMultiDiffTabInput, ChatCopyKind as ChatCopyKind$1, DebugStackFrame as DebugStackFrame$1, DebugThread as DebugThread$1, RelatedInformationType as RelatedInformationType$1, SpeechToTextStatus as SpeechToTextStatus$1, TextToSpeechStatus as TextToSpeechStatus$1, PartialAcceptTriggerKind as PartialAcceptTriggerKind$1, KeywordRecognitionStatus as KeywordRecognitionStatus$1, ChatResponseMarkdownPart as ChatResponseMarkdownPart$1, ChatResponseFileTreePart as ChatResponseFileTreePart$1, ChatResponseAnchorPart as ChatResponseAnchorPart$1, ChatResponseProgressPart as ChatResponseProgressPart$1, ChatResponseProgressPart2 as ChatResponseProgressPart2$1, ChatResponseReferencePart as ChatResponseReferencePart$1, ChatResponseCodeCitationPart as ChatResponseCodeCitationPart$1, ChatResponseWarningPart as ChatResponseWarningPart$1, ChatResponseTextEditPart as ChatResponseTextEditPart$1, ChatResponseMarkdownWithVulnerabilitiesPart as ChatResponseMarkdownWithVulnerabilitiesPart$1, ChatResponseCommandButtonPart as ChatResponseCommandButtonPart$1, ChatResponseDetectedParticipantPart as ChatResponseDetectedParticipantPart$1, ChatResponseConfirmationPart as ChatResponseConfirmationPart$1, ChatResponseReferencePartStatusKind as ChatResponseReferencePartStatusKind$1, ChatRequestTurn as ChatRequestTurn$1, ChatResponseTurn as ChatResponseTurn$1, ChatLocation as ChatLocation$1, ChatRequestEditorData as ChatRequestEditorData$1, ChatRequestNotebookData as ChatRequestNotebookData$1, ChatResponseMovePart as ChatResponseMovePart$1, LanguageModelChatMessageRole as LanguageModelChatMessageRole$1, LanguageModelChatMessage as LanguageModelChatMessage$1, LanguageModelError as LanguageModelError$1, NewSymbolName as NewSymbolName$1, NewSymbolNameTag as NewSymbolNameTag$1, NewSymbolNameTriggerKind as NewSymbolNameTriggerKind$1, InlineEdit as InlineEdit$1, InlineEditTriggerKind as InlineEditTriggerKind$1, ChatResponseCodeblockUriPart as ChatResponseCodeblockUriPart$1, ChatEditingSessionActionOutcome as ChatEditingSessionActionOutcome$1, LanguageModelChatToolMode as LanguageModelChatToolMode$1, LanguageModelToolCallPart as LanguageModelToolCallPart$1, LanguageModelToolResultPart as LanguageModelToolResultPart$1, LanguageModelTextPart as LanguageModelTextPart$1, LanguageModelPromptTsxPart as LanguageModelPromptTsxPart$1, LanguageModelToolResult as LanguageModelToolResult$1, ChatReferenceBinaryData as ChatReferenceBinaryData$1, CellErrorStackFrame as CellErrorStackFrame$1, TerminalCompletionItemKind as TerminalCompletionItemKind$1, TerminalCompletionList as TerminalCompletionList$1, TextEditorChangeKind as TextEditorChangeKind$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostTypes';
|
|
3
|
+
import { CancellationError as CancellationError$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
4
|
+
import { FileType as FileType$1, FilePermission as FilePermission$1 } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
5
|
+
import { IndentAction as IndentAction$1 } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/languageConfiguration';
|
|
6
|
+
import { CancellationTokenSource as CancellationTokenSource$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
7
|
+
import { CandidatePortSource as CandidatePortSource$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
8
|
+
import { DebugConfigurationProviderTriggerKind as DebugConfigurationProviderTriggerKind$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
9
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
10
|
+
import { OverviewRulerLane as OverviewRulerLane$1 } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model';
|
|
11
|
+
import { UIKind as UIKind$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionHostProtocol';
|
|
12
|
+
import { TextSearchCompleteMessageType as TextSearchCompleteMessageType$1, ExcludeSettingOptions as ExcludeSettingOptions$1, TextSearchMatch2 as TextSearchMatch2$1, TextSearchContext2 as TextSearchContext2$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/searchExtTypes';
|
|
13
|
+
import { LogLevel as LogLevel$1 } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log';
|
|
14
|
+
import { EditSessionIdentityMatch as EditSessionIdentityMatch$1 } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/editSessions';
|
|
15
|
+
import { TextEditorCursorStyle as TextEditorCursorStyle$1 } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
|
|
16
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
17
|
+
import { TelemetryTrustedValue as TelemetryTrustedValue$1 } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
18
|
+
import { defaultApi } from './localExtensionHost.js';
|
|
19
|
+
|
|
20
|
+
function createProxy(key) {
|
|
21
|
+
return new Proxy({}, {
|
|
22
|
+
get(target, p) {
|
|
23
|
+
if (defaultApi == null) {
|
|
24
|
+
throw new Error("Default api is not ready yet, do not forget to import 'vscode/localExtensionHost' and wait for services initialization");
|
|
25
|
+
}
|
|
26
|
+
return defaultApi[key][p];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
const api = {
|
|
31
|
+
version: "1.96.4",
|
|
32
|
+
tasks: createProxy('tasks'),
|
|
33
|
+
notebooks: createProxy('notebooks'),
|
|
34
|
+
scm: createProxy('scm'),
|
|
35
|
+
comments: createProxy('comments'),
|
|
36
|
+
authentication: createProxy('authentication'),
|
|
37
|
+
tests: createProxy('tests'),
|
|
38
|
+
extensions: createProxy('extensions'),
|
|
39
|
+
debug: createProxy('debug'),
|
|
40
|
+
env: createProxy('env'),
|
|
41
|
+
commands: createProxy('commands'),
|
|
42
|
+
window: createProxy('window'),
|
|
43
|
+
workspace: createProxy('workspace'),
|
|
44
|
+
languages: createProxy('languages'),
|
|
45
|
+
l10n: createProxy('l10n'),
|
|
46
|
+
interactive: createProxy('interactive'),
|
|
47
|
+
ai: createProxy('ai'),
|
|
48
|
+
chat: createProxy('chat'),
|
|
49
|
+
speech: createProxy('speech'),
|
|
50
|
+
lm: createProxy('lm'),
|
|
51
|
+
Breakpoint: Breakpoint$1,
|
|
52
|
+
TerminalOutputAnchor: TerminalOutputAnchor$1,
|
|
53
|
+
ChatResultFeedbackKind: ChatResultFeedbackKind$1,
|
|
54
|
+
ChatVariableLevel: ChatVariableLevel$1,
|
|
55
|
+
ChatCompletionItem: ChatCompletionItem$1,
|
|
56
|
+
CallHierarchyIncomingCall: CallHierarchyIncomingCall$1,
|
|
57
|
+
CallHierarchyItem: CallHierarchyItem$1,
|
|
58
|
+
CallHierarchyOutgoingCall: CallHierarchyOutgoingCall$1,
|
|
59
|
+
CancellationError: CancellationError$1,
|
|
60
|
+
CancellationTokenSource: CancellationTokenSource$1,
|
|
61
|
+
CandidatePortSource: CandidatePortSource$1,
|
|
62
|
+
CodeAction: CodeAction$1,
|
|
63
|
+
CodeActionKind: CodeActionKind$1,
|
|
64
|
+
CodeActionTriggerKind: CodeActionTriggerKind$1,
|
|
65
|
+
CodeLens: CodeLens$1,
|
|
66
|
+
Color: Color$1,
|
|
67
|
+
ColorInformation: ColorInformation$1,
|
|
68
|
+
ColorPresentation: ColorPresentation$1,
|
|
69
|
+
ColorThemeKind: ColorThemeKind$1,
|
|
70
|
+
CommentMode: CommentMode$1,
|
|
71
|
+
CommentState: CommentState$1,
|
|
72
|
+
CommentThreadCollapsibleState: CommentThreadCollapsibleState$1,
|
|
73
|
+
CommentThreadState: CommentThreadState$1,
|
|
74
|
+
CommentThreadApplicability: CommentThreadApplicability$1,
|
|
75
|
+
CommentThreadFocus: CommentThreadFocus$1,
|
|
76
|
+
CompletionItem: CompletionItem$1,
|
|
77
|
+
CompletionItemKind: CompletionItemKind$1,
|
|
78
|
+
CompletionItemTag: CompletionItemTag$1,
|
|
79
|
+
CompletionList: CompletionList$1,
|
|
80
|
+
CompletionTriggerKind: CompletionTriggerKind$1,
|
|
81
|
+
ConfigurationTarget: ConfigurationTarget$1,
|
|
82
|
+
CustomExecution: CustomExecution$1,
|
|
83
|
+
DebugAdapterExecutable: DebugAdapterExecutable$1,
|
|
84
|
+
DebugAdapterInlineImplementation: DebugAdapterInlineImplementation$1,
|
|
85
|
+
DebugAdapterNamedPipeServer: DebugAdapterNamedPipeServer$1,
|
|
86
|
+
DebugAdapterServer: DebugAdapterServer$1,
|
|
87
|
+
DebugConfigurationProviderTriggerKind: DebugConfigurationProviderTriggerKind$1,
|
|
88
|
+
DebugConsoleMode: DebugConsoleMode$1,
|
|
89
|
+
DebugVisualization: DebugVisualization$1,
|
|
90
|
+
DecorationRangeBehavior: DecorationRangeBehavior$1,
|
|
91
|
+
Diagnostic: Diagnostic$1,
|
|
92
|
+
DiagnosticRelatedInformation: DiagnosticRelatedInformation$1,
|
|
93
|
+
DiagnosticSeverity: DiagnosticSeverity$1,
|
|
94
|
+
DiagnosticTag: DiagnosticTag$1,
|
|
95
|
+
Disposable: Disposable$1,
|
|
96
|
+
DocumentHighlight: DocumentHighlight$1,
|
|
97
|
+
DocumentHighlightKind: DocumentHighlightKind$1,
|
|
98
|
+
MultiDocumentHighlight: MultiDocumentHighlight$1,
|
|
99
|
+
DocumentLink: DocumentLink$1,
|
|
100
|
+
DocumentSymbol: DocumentSymbol$1,
|
|
101
|
+
EndOfLine: EndOfLine$1,
|
|
102
|
+
EnvironmentVariableMutatorType: EnvironmentVariableMutatorType$1,
|
|
103
|
+
EvaluatableExpression: EvaluatableExpression$1,
|
|
104
|
+
InlineValueText: InlineValueText$1,
|
|
105
|
+
InlineValueVariableLookup: InlineValueVariableLookup$1,
|
|
106
|
+
InlineValueEvaluatableExpression: InlineValueEvaluatableExpression$1,
|
|
107
|
+
InlineCompletionTriggerKind: InlineCompletionTriggerKind$1,
|
|
108
|
+
EventEmitter: Emitter,
|
|
109
|
+
ExtensionKind: ExtensionKind$1,
|
|
110
|
+
ExtensionMode: ExtensionMode$1,
|
|
111
|
+
ExternalUriOpenerPriority: ExternalUriOpenerPriority$1,
|
|
112
|
+
FileChangeType: FileChangeType$1,
|
|
113
|
+
FileDecoration: FileDecoration$1,
|
|
114
|
+
FileDecoration2: FileDecoration$1,
|
|
115
|
+
FileSystemError: FileSystemError$1,
|
|
116
|
+
FileType: FileType$1,
|
|
117
|
+
FilePermission: FilePermission$1,
|
|
118
|
+
FoldingRange: FoldingRange$1,
|
|
119
|
+
FoldingRangeKind: FoldingRangeKind$1,
|
|
120
|
+
FunctionBreakpoint: FunctionBreakpoint$1,
|
|
121
|
+
InlineCompletionItem: InlineSuggestion,
|
|
122
|
+
InlineCompletionList: InlineSuggestionList,
|
|
123
|
+
Hover: Hover$1,
|
|
124
|
+
VerboseHover: VerboseHover$1,
|
|
125
|
+
HoverVerbosityAction: HoverVerbosityAction$1,
|
|
126
|
+
IndentAction: IndentAction$1,
|
|
127
|
+
Location: Location$1,
|
|
128
|
+
MarkdownString: MarkdownString$1,
|
|
129
|
+
OverviewRulerLane: OverviewRulerLane$1,
|
|
130
|
+
ParameterInformation: ParameterInformation$1,
|
|
131
|
+
PortAutoForwardAction: PortAutoForwardAction$1,
|
|
132
|
+
Position: Position$1,
|
|
133
|
+
ProcessExecution: ProcessExecution$1,
|
|
134
|
+
ProgressLocation: ProgressLocation$1,
|
|
135
|
+
QuickInputButtonLocation: QuickInputButtonLocation$1,
|
|
136
|
+
QuickInputButtons: QuickInputButtons$1,
|
|
137
|
+
Range: Range$1,
|
|
138
|
+
RelativePattern: RelativePattern$1,
|
|
139
|
+
Selection: Selection$1,
|
|
140
|
+
SelectionRange: SelectionRange$1,
|
|
141
|
+
SemanticTokens: SemanticTokens$1,
|
|
142
|
+
SemanticTokensBuilder: SemanticTokensBuilder$1,
|
|
143
|
+
SemanticTokensEdit: SemanticTokensEdit$1,
|
|
144
|
+
SemanticTokensEdits: SemanticTokensEdits$1,
|
|
145
|
+
SemanticTokensLegend: SemanticTokensLegend$1,
|
|
146
|
+
ShellExecution: ShellExecution$1,
|
|
147
|
+
ShellQuoting: ShellQuoting$1,
|
|
148
|
+
SignatureHelp: SignatureHelp$1,
|
|
149
|
+
SignatureHelpTriggerKind: SignatureHelpTriggerKind$1,
|
|
150
|
+
SignatureInformation: SignatureInformation$1,
|
|
151
|
+
SnippetString: SnippetString$1,
|
|
152
|
+
SourceBreakpoint: SourceBreakpoint$1,
|
|
153
|
+
StandardTokenType: StandardTokenType$1,
|
|
154
|
+
StatusBarAlignment: StatusBarAlignment$1,
|
|
155
|
+
SymbolInformation: SymbolInformation$1,
|
|
156
|
+
SymbolKind: SymbolKind$1,
|
|
157
|
+
SymbolTag: SymbolTag$1,
|
|
158
|
+
Task: Task$1,
|
|
159
|
+
TaskGroup: TaskGroup$1,
|
|
160
|
+
TaskPanelKind: TaskPanelKind$1,
|
|
161
|
+
TaskRevealKind: TaskRevealKind$1,
|
|
162
|
+
TaskScope: TaskScope$1,
|
|
163
|
+
TerminalLink: TerminalLink$1,
|
|
164
|
+
TerminalQuickFixTerminalCommand: TerminalQuickFixCommand,
|
|
165
|
+
TerminalQuickFixOpener: TerminalQuickFixOpener$1,
|
|
166
|
+
TerminalLocation: TerminalLocation$1,
|
|
167
|
+
TerminalProfile: TerminalProfile$1,
|
|
168
|
+
TerminalExitReason: TerminalExitReason$1,
|
|
169
|
+
TerminalShellExecutionCommandLineConfidence: TerminalShellExecutionCommandLineConfidence$1,
|
|
170
|
+
TextDocumentSaveReason: TextDocumentSaveReason$1,
|
|
171
|
+
TextEdit: TextEdit$1,
|
|
172
|
+
SnippetTextEdit: SnippetTextEdit$1,
|
|
173
|
+
TextEditorCursorStyle: TextEditorCursorStyle$1,
|
|
174
|
+
TextEditorLineNumbersStyle: TextEditorLineNumbersStyle$1,
|
|
175
|
+
TextEditorRevealType: TextEditorRevealType$1,
|
|
176
|
+
TextEditorSelectionChangeKind: TextEditorSelectionChangeKind$1,
|
|
177
|
+
SyntaxTokenType: SyntaxTokenType$1,
|
|
178
|
+
TextDocumentChangeReason: TextDocumentChangeReason$1,
|
|
179
|
+
ThemeColor: ThemeColor$1,
|
|
180
|
+
ThemeIcon: ThemeIcon$1,
|
|
181
|
+
TreeItem: TreeItem$1,
|
|
182
|
+
TreeItemCheckboxState: TreeItemCheckboxState$1,
|
|
183
|
+
TreeItemCollapsibleState: TreeItemCollapsibleState$1,
|
|
184
|
+
TypeHierarchyItem: TypeHierarchyItem$1,
|
|
185
|
+
UIKind: UIKind$1,
|
|
186
|
+
Uri: URI,
|
|
187
|
+
ViewColumn: ViewColumn$1,
|
|
188
|
+
WorkspaceEdit: WorkspaceEdit$1,
|
|
189
|
+
DocumentPasteTriggerKind: DocumentPasteTriggerKind$1,
|
|
190
|
+
DocumentDropEdit: DocumentDropEdit$1,
|
|
191
|
+
DocumentDropOrPasteEditKind: DocumentDropOrPasteEditKind$1,
|
|
192
|
+
DocumentPasteEdit: DocumentPasteEdit$1,
|
|
193
|
+
InlayHint: InlayHint$1,
|
|
194
|
+
InlayHintLabelPart: InlayHintLabelPart$1,
|
|
195
|
+
InlayHintKind: InlayHintKind$1,
|
|
196
|
+
RemoteAuthorityResolverError: RemoteAuthorityResolverError$1,
|
|
197
|
+
ResolvedAuthority: ResolvedAuthority$1,
|
|
198
|
+
ManagedResolvedAuthority: ManagedResolvedAuthority$1,
|
|
199
|
+
SourceControlInputBoxValidationType: SourceControlInputBoxValidationType$1,
|
|
200
|
+
ExtensionRuntime: ExtensionRuntime$1,
|
|
201
|
+
TimelineItem: TimelineItem$1,
|
|
202
|
+
NotebookRange: NotebookRange$1,
|
|
203
|
+
NotebookCellKind: NotebookCellKind$1,
|
|
204
|
+
NotebookCellExecutionState: NotebookCellExecutionState$1,
|
|
205
|
+
NotebookCellData: NotebookCellData$1,
|
|
206
|
+
NotebookData: NotebookData$1,
|
|
207
|
+
NotebookRendererScript: NotebookRendererScript$1,
|
|
208
|
+
NotebookCellStatusBarAlignment: NotebookCellStatusBarAlignment$1,
|
|
209
|
+
NotebookEditorRevealType: NotebookEditorRevealType$1,
|
|
210
|
+
NotebookCellOutput: NotebookCellOutput$1,
|
|
211
|
+
NotebookCellOutputItem: NotebookCellOutputItem$1,
|
|
212
|
+
NotebookCellStatusBarItem: NotebookCellStatusBarItem$1,
|
|
213
|
+
NotebookControllerAffinity: NotebookControllerAffinity$1,
|
|
214
|
+
NotebookControllerAffinity2: NotebookControllerAffinity2$1,
|
|
215
|
+
NotebookEdit: NotebookEdit$1,
|
|
216
|
+
NotebookKernelSourceAction: NotebookKernelSourceAction$1,
|
|
217
|
+
NotebookVariablesRequestKind: NotebookVariablesRequestKind$1,
|
|
218
|
+
PortAttributes: PortAttributes$1,
|
|
219
|
+
LinkedEditingRanges: LinkedEditingRanges$1,
|
|
220
|
+
TestResultState: TestResultState$1,
|
|
221
|
+
TestRunRequest: TestRunRequest$1,
|
|
222
|
+
TestMessage: TestMessage$1,
|
|
223
|
+
TestMessageStackFrame: TestMessageStackFrame$1,
|
|
224
|
+
TestTag: TestTag$1,
|
|
225
|
+
TestRunProfileKind: TestRunProfileKind$1,
|
|
226
|
+
TextSearchCompleteMessageType: TextSearchCompleteMessageType$1,
|
|
227
|
+
DataTransfer: DataTransfer$1,
|
|
228
|
+
DataTransferItem: DataTransferItem$1,
|
|
229
|
+
TestCoverageCount: TestCoverageCount$1,
|
|
230
|
+
FileCoverage: FileCoverage$1,
|
|
231
|
+
StatementCoverage: StatementCoverage$1,
|
|
232
|
+
BranchCoverage: BranchCoverage$1,
|
|
233
|
+
DeclarationCoverage: DeclarationCoverage$1,
|
|
234
|
+
LanguageStatusSeverity: LanguageStatusSeverity$1,
|
|
235
|
+
QuickPickItemKind: QuickPickItemKind$1,
|
|
236
|
+
InputBoxValidationSeverity: InputBoxValidationSeverity$1,
|
|
237
|
+
TabInputText: TextTabInput,
|
|
238
|
+
TabInputTextDiff: TextDiffTabInput,
|
|
239
|
+
TabInputTextMerge: TextMergeTabInput,
|
|
240
|
+
TabInputCustom: CustomEditorTabInput,
|
|
241
|
+
TabInputNotebook: NotebookEditorTabInput,
|
|
242
|
+
TabInputNotebookDiff: NotebookDiffEditorTabInput,
|
|
243
|
+
TabInputWebview: WebviewEditorTabInput,
|
|
244
|
+
TabInputTerminal: TerminalEditorTabInput,
|
|
245
|
+
TabInputInteractiveWindow: InteractiveWindowInput,
|
|
246
|
+
TabInputChat: ChatEditorTabInput,
|
|
247
|
+
TabInputTextMultiDiff: TextMultiDiffTabInput,
|
|
248
|
+
TelemetryTrustedValue: TelemetryTrustedValue$1,
|
|
249
|
+
LogLevel: LogLevel$1,
|
|
250
|
+
EditSessionIdentityMatch: EditSessionIdentityMatch$1,
|
|
251
|
+
ChatCopyKind: ChatCopyKind$1,
|
|
252
|
+
DebugStackFrame: DebugStackFrame$1,
|
|
253
|
+
DebugThread: DebugThread$1,
|
|
254
|
+
RelatedInformationType: RelatedInformationType$1,
|
|
255
|
+
SpeechToTextStatus: SpeechToTextStatus$1,
|
|
256
|
+
TextToSpeechStatus: TextToSpeechStatus$1,
|
|
257
|
+
PartialAcceptTriggerKind: PartialAcceptTriggerKind$1,
|
|
258
|
+
KeywordRecognitionStatus: KeywordRecognitionStatus$1,
|
|
259
|
+
ChatResponseMarkdownPart: ChatResponseMarkdownPart$1,
|
|
260
|
+
ChatResponseFileTreePart: ChatResponseFileTreePart$1,
|
|
261
|
+
ChatResponseAnchorPart: ChatResponseAnchorPart$1,
|
|
262
|
+
ChatResponseProgressPart: ChatResponseProgressPart$1,
|
|
263
|
+
ChatResponseProgressPart2: ChatResponseProgressPart2$1,
|
|
264
|
+
ChatResponseReferencePart: ChatResponseReferencePart$1,
|
|
265
|
+
ChatResponseReferencePart2: ChatResponseReferencePart$1,
|
|
266
|
+
ChatResponseCodeCitationPart: ChatResponseCodeCitationPart$1,
|
|
267
|
+
ChatResponseWarningPart: ChatResponseWarningPart$1,
|
|
268
|
+
ChatResponseTextEditPart: ChatResponseTextEditPart$1,
|
|
269
|
+
ChatResponseMarkdownWithVulnerabilitiesPart: ChatResponseMarkdownWithVulnerabilitiesPart$1,
|
|
270
|
+
ChatResponseCommandButtonPart: ChatResponseCommandButtonPart$1,
|
|
271
|
+
ChatResponseDetectedParticipantPart: ChatResponseDetectedParticipantPart$1,
|
|
272
|
+
ChatResponseConfirmationPart: ChatResponseConfirmationPart$1,
|
|
273
|
+
ChatResponseReferencePartStatusKind: ChatResponseReferencePartStatusKind$1,
|
|
274
|
+
ChatRequestTurn: ChatRequestTurn$1,
|
|
275
|
+
ChatResponseTurn: ChatResponseTurn$1,
|
|
276
|
+
ChatLocation: ChatLocation$1,
|
|
277
|
+
ChatRequestEditorData: ChatRequestEditorData$1,
|
|
278
|
+
ChatRequestNotebookData: ChatRequestNotebookData$1,
|
|
279
|
+
ChatResponseMovePart: ChatResponseMovePart$1,
|
|
280
|
+
LanguageModelChatMessageRole: LanguageModelChatMessageRole$1,
|
|
281
|
+
LanguageModelChatMessage: LanguageModelChatMessage$1,
|
|
282
|
+
LanguageModelError: LanguageModelError$1,
|
|
283
|
+
NewSymbolName: NewSymbolName$1,
|
|
284
|
+
NewSymbolNameTag: NewSymbolNameTag$1,
|
|
285
|
+
NewSymbolNameTriggerKind: NewSymbolNameTriggerKind$1,
|
|
286
|
+
InlineEdit: InlineEdit$1,
|
|
287
|
+
InlineEditTriggerKind: InlineEditTriggerKind$1,
|
|
288
|
+
ExcludeSettingOptions: ExcludeSettingOptions$1,
|
|
289
|
+
ChatResponseCodeblockUriPart: ChatResponseCodeblockUriPart$1,
|
|
290
|
+
ChatEditingSessionActionOutcome: ChatEditingSessionActionOutcome$1,
|
|
291
|
+
LanguageModelChatToolMode: LanguageModelChatToolMode$1,
|
|
292
|
+
LanguageModelToolCallPart: LanguageModelToolCallPart$1,
|
|
293
|
+
LanguageModelToolResultPart: LanguageModelToolResultPart$1,
|
|
294
|
+
LanguageModelTextPart: LanguageModelTextPart$1,
|
|
295
|
+
LanguageModelPromptTsxPart: LanguageModelPromptTsxPart$1,
|
|
296
|
+
LanguageModelToolResult: LanguageModelToolResult$1,
|
|
297
|
+
ChatReferenceBinaryData: ChatReferenceBinaryData$1,
|
|
298
|
+
CellErrorStackFrame: CellErrorStackFrame$1,
|
|
299
|
+
TerminalCompletionItemKind: TerminalCompletionItemKind$1,
|
|
300
|
+
TerminalCompletionList: TerminalCompletionList$1,
|
|
301
|
+
TextEditorChangeKind: TextEditorChangeKind$1,
|
|
302
|
+
TextSearchMatch2: TextSearchMatch2$1,
|
|
303
|
+
TextSearchContext2: TextSearchContext2$1
|
|
304
|
+
};
|
|
305
|
+
const { version, tasks, notebooks, scm, comments, authentication, tests, extensions, debug, env, commands, window, workspace, languages, l10n, interactive, ai, chat, speech, lm, Breakpoint, TerminalOutputAnchor, ChatResultFeedbackKind, ChatVariableLevel, ChatCompletionItem, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CandidatePortSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentState, CommentThreadCollapsibleState, CommentThreadState, CommentThreadApplicability, CommentThreadFocus, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DebugVisualization, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, MultiDocumentHighlight, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineCompletionTriggerKind, EventEmitter, ExtensionKind, ExtensionMode, ExternalUriOpenerPriority, FileChangeType, FileDecoration, FileDecoration2, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, InlineCompletionItem, InlineCompletionList, Hover, VerboseHover, HoverVerbosityAction, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, PortAutoForwardAction, Position, ProcessExecution, ProgressLocation, QuickInputButtonLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StandardTokenType, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalQuickFixTerminalCommand, TerminalQuickFixOpener, TerminalLocation, TerminalProfile, TerminalExitReason, TerminalShellExecutionCommandLineConfidence, TextDocumentSaveReason, TextEdit, SnippetTextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, SyntaxTokenType, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCheckboxState, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, DocumentPasteTriggerKind, DocumentDropEdit, DocumentDropOrPasteEditKind, DocumentPasteEdit, InlayHint, InlayHintLabelPart, InlayHintKind, RemoteAuthorityResolverError, ResolvedAuthority, ManagedResolvedAuthority, SourceControlInputBoxValidationType, ExtensionRuntime, TimelineItem, NotebookRange, NotebookCellKind, NotebookCellExecutionState, NotebookCellData, NotebookData, NotebookRendererScript, NotebookCellStatusBarAlignment, NotebookEditorRevealType, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookControllerAffinity2, NotebookEdit, NotebookKernelSourceAction, NotebookVariablesRequestKind, PortAttributes, LinkedEditingRanges, TestResultState, TestRunRequest, TestMessage, TestMessageStackFrame, TestTag, TestRunProfileKind, TextSearchCompleteMessageType, DataTransfer, DataTransferItem, TestCoverageCount, FileCoverage, StatementCoverage, BranchCoverage, DeclarationCoverage, LanguageStatusSeverity, QuickPickItemKind, InputBoxValidationSeverity, TabInputText, TabInputTextDiff, TabInputTextMerge, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputWebview, TabInputTerminal, TabInputInteractiveWindow, TabInputChat, TabInputTextMultiDiff, TelemetryTrustedValue, LogLevel, EditSessionIdentityMatch, ChatCopyKind, DebugStackFrame, DebugThread, RelatedInformationType, SpeechToTextStatus, TextToSpeechStatus, PartialAcceptTriggerKind, KeywordRecognitionStatus, ChatResponseMarkdownPart, ChatResponseFileTreePart, ChatResponseAnchorPart, ChatResponseProgressPart, ChatResponseProgressPart2, ChatResponseReferencePart, ChatResponseReferencePart2, ChatResponseCodeCitationPart, ChatResponseWarningPart, ChatResponseTextEditPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseCommandButtonPart, ChatResponseDetectedParticipantPart, ChatResponseConfirmationPart, ChatResponseReferencePartStatusKind, ChatRequestTurn, ChatResponseTurn, ChatLocation, ChatRequestEditorData, ChatRequestNotebookData, ChatResponseMovePart, LanguageModelChatMessageRole, LanguageModelChatMessage, LanguageModelError, NewSymbolName, NewSymbolNameTag, NewSymbolNameTriggerKind, InlineEdit, InlineEditTriggerKind, ExcludeSettingOptions, ChatResponseCodeblockUriPart, ChatEditingSessionActionOutcome, LanguageModelChatToolMode, LanguageModelToolCallPart, LanguageModelToolResultPart, LanguageModelTextPart, LanguageModelPromptTsxPart, LanguageModelToolResult, ChatReferenceBinaryData, CellErrorStackFrame, TerminalCompletionItemKind, TerminalCompletionList, TextEditorChangeKind, TextSearchMatch2, TextSearchContext2 } = api;
|
|
306
|
+
|
|
307
|
+
export { BranchCoverage, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CandidatePortSource, CellErrorStackFrame, ChatCompletionItem, ChatCopyKind, ChatEditingSessionActionOutcome, ChatLocation, ChatReferenceBinaryData, ChatRequestEditorData, ChatRequestNotebookData, ChatRequestTurn, ChatResponseAnchorPart, ChatResponseCodeCitationPart, ChatResponseCodeblockUriPart, ChatResponseCommandButtonPart, ChatResponseConfirmationPart, ChatResponseDetectedParticipantPart, ChatResponseFileTreePart, ChatResponseMarkdownPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseMovePart, ChatResponseProgressPart, ChatResponseProgressPart2, ChatResponseReferencePart, ChatResponseReferencePart2, ChatResponseReferencePartStatusKind, ChatResponseTextEditPart, ChatResponseTurn, ChatResponseWarningPart, ChatResultFeedbackKind, ChatVariableLevel, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentState, CommentThreadApplicability, CommentThreadCollapsibleState, CommentThreadFocus, CommentThreadState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DataTransfer, DataTransferItem, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DebugStackFrame, DebugThread, DebugVisualization, DeclarationCoverage, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentDropEdit, DocumentDropOrPasteEditKind, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentPasteEdit, DocumentPasteTriggerKind, DocumentSymbol, EditSessionIdentityMatch, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, EventEmitter, ExcludeSettingOptions, ExtensionKind, ExtensionMode, ExtensionRuntime, ExternalUriOpenerPriority, FileChangeType, FileCoverage, FileDecoration, FileDecoration2, FilePermission, FileSystemError, FileType, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, HoverVerbosityAction, IndentAction, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionItem, InlineCompletionList, InlineCompletionTriggerKind, InlineEdit, InlineEditTriggerKind, InlineValueEvaluatableExpression, InlineValueText, InlineValueVariableLookup, InputBoxValidationSeverity, KeywordRecognitionStatus, LanguageModelChatMessage, LanguageModelChatMessageRole, LanguageModelChatToolMode, LanguageModelError, LanguageModelPromptTsxPart, LanguageModelTextPart, LanguageModelToolCallPart, LanguageModelToolResult, LanguageModelToolResultPart, LanguageStatusSeverity, LinkedEditingRanges, Location, LogLevel, ManagedResolvedAuthority, MarkdownString, MultiDocumentHighlight, NewSymbolName, NewSymbolNameTag, NewSymbolNameTriggerKind, NotebookCellData, NotebookCellExecutionState, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarAlignment, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookControllerAffinity2, NotebookData, NotebookEdit, NotebookEditorRevealType, NotebookKernelSourceAction, NotebookRange, NotebookRendererScript, NotebookVariablesRequestKind, OverviewRulerLane, ParameterInformation, PartialAcceptTriggerKind, PortAttributes, PortAutoForwardAction, Position, ProcessExecution, ProgressLocation, QuickInputButtonLocation, QuickInputButtons, QuickPickItemKind, Range, RelatedInformationType, RelativePattern, RemoteAuthorityResolverError, ResolvedAuthority, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SnippetTextEdit, SourceBreakpoint, SourceControlInputBoxValidationType, SpeechToTextStatus, StandardTokenType, StatementCoverage, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, SyntaxTokenType, TabInputChat, TabInputCustom, TabInputInteractiveWindow, TabInputNotebook, TabInputNotebookDiff, TabInputTerminal, TabInputText, TabInputTextDiff, TabInputTextMerge, TabInputTextMultiDiff, TabInputWebview, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TelemetryTrustedValue, TerminalCompletionItemKind, TerminalCompletionList, TerminalExitReason, TerminalLink, TerminalLocation, TerminalOutputAnchor, TerminalProfile, TerminalQuickFixOpener, TerminalQuickFixTerminalCommand, TerminalShellExecutionCommandLineConfidence, TestCoverageCount, TestMessage, TestMessageStackFrame, TestResultState, TestRunProfileKind, TestRunRequest, TestTag, TextDocumentChangeReason, TextDocumentSaveReason, TextEdit, TextEditorChangeKind, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextSearchCompleteMessageType, TextSearchContext2, TextSearchMatch2, TextToSpeechStatus, ThemeColor, ThemeIcon, TimelineItem, TreeItem, TreeItemCheckboxState, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, VerboseHover, ViewColumn, WorkspaceEdit, ai, authentication, chat, commands, comments, debug, env, extensions, interactive, l10n, languages, lm, notebooks, scm, speech, tasks, tests, version, window, workspace };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type * as vscode from "vscode";
|
|
2
|
+
import type { IMessagePassingProtocol } from "@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common/vscode/vs/base/parts/ipc/common/ipc";
|
|
3
|
+
import { LocalProcessRunningLocation } from "@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common/vscode/vs/workbench/services/extensions/common/extensionRunningLocation";
|
|
4
|
+
import { ExtensionHostExtensions, ExtensionHostStartup, type IExtensionHost } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions";
|
|
5
|
+
import type { IWebWorkerExtensionHostDataProvider } from "@codingame/monaco-vscode-extensions-service-override/vscode/vs/workbench/services/extensions/browser/webWorkerExtensionHost";
|
|
6
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
7
|
+
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
8
|
+
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
9
|
+
import { ILogService, ILoggerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
10
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-1d9dbcb3-6f53-58ad-b0a4-92b1ef1fd6a8-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
11
|
+
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
12
|
+
import { IUserDataProfilesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service";
|
|
13
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
14
|
+
declare class LocalExtensionHost implements IExtensionHost {
|
|
15
|
+
readonly runningLocation: LocalProcessRunningLocation;
|
|
16
|
+
readonly startup: ExtensionHostStartup;
|
|
17
|
+
private readonly _initDataProvider;
|
|
18
|
+
private readonly _telemetryService;
|
|
19
|
+
private readonly _contextService;
|
|
20
|
+
private readonly _labelService;
|
|
21
|
+
private readonly _logService;
|
|
22
|
+
private readonly _loggerService;
|
|
23
|
+
private readonly _environmentService;
|
|
24
|
+
private readonly _productService;
|
|
25
|
+
private readonly _userDataProfilesService;
|
|
26
|
+
readonly remoteAuthority: null;
|
|
27
|
+
extensions: ExtensionHostExtensions | null;
|
|
28
|
+
private readonly _extensionHostLogsLocation;
|
|
29
|
+
private _protocolPromise;
|
|
30
|
+
pid: null;
|
|
31
|
+
constructor(runningLocation: LocalProcessRunningLocation, startup: ExtensionHostStartup, _initDataProvider: IWebWorkerExtensionHostDataProvider, _telemetryService: ITelemetryService, _contextService: IWorkspaceContextService, _labelService: ILabelService, _logService: ILogService, _loggerService: ILoggerService, _environmentService: IBrowserWorkbenchEnvironmentService, _productService: IProductService, _userDataProfilesService: IUserDataProfilesService);
|
|
32
|
+
onExit: Event<any>;
|
|
33
|
+
start(): Promise<IMessagePassingProtocol>;
|
|
34
|
+
_start(): Promise<IMessagePassingProtocol>;
|
|
35
|
+
private _createExtHostInitData;
|
|
36
|
+
getInspectPort(): {
|
|
37
|
+
port: number;
|
|
38
|
+
host: string;
|
|
39
|
+
} | undefined;
|
|
40
|
+
enableInspectPort(): Promise<boolean>;
|
|
41
|
+
dispose(): void;
|
|
42
|
+
}
|
|
43
|
+
export type { LocalExtensionHost };
|
|
44
|
+
export declare let defaultApi: typeof vscode | undefined;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import '@codingame/monaco-vscode-api/missing-services';
|
|
4
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.common.services';
|
|
5
|
+
import { ExtensionHostMain } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extensionHostMain';
|
|
6
|
+
import { BufferedEmitter } from '@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common/vscode/vs/base/parts/ipc/common/ipc.net';
|
|
7
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { isLoggingOnly } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
9
|
+
import { joinPath } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
10
|
+
import { UIKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionHostProtocol';
|
|
11
|
+
import { Language, isWeb, language } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
12
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
13
|
+
import { IExtHostExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostExtensionService';
|
|
14
|
+
import { nullExtensionDescription, ExtensionHostStartup } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
|
|
15
|
+
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
16
|
+
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
17
|
+
import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
18
|
+
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
19
|
+
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
20
|
+
import { ILogService, ILoggerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
21
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-1d9dbcb3-6f53-58ad-b0a4-92b1ef1fd6a8-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
22
|
+
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
23
|
+
import { IUserDataProfilesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
24
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
25
|
+
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
26
|
+
import { registerSingleton, InstantiationType } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
27
|
+
import { IExtensionStoragePaths, ExtensionStoragePaths } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostStoragePaths';
|
|
28
|
+
import { ExtHostExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/worker/extHostExtensionService';
|
|
29
|
+
import { ExtensionIdentifierMap } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
30
|
+
import { DeferredPromise } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
31
|
+
import { setLocalExtensionHost } from '@codingame/monaco-vscode-extensions-service-override';
|
|
32
|
+
import { unsupported } from '@codingame/monaco-vscode-api/tools';
|
|
33
|
+
import { registerLocalApiFactory, registerDefaultApiHandler } from '@codingame/monaco-vscode-api/extensions';
|
|
34
|
+
import { registerServiceInitializePostParticipant } from '@codingame/monaco-vscode-api/lifecycle';
|
|
35
|
+
|
|
36
|
+
const apiFactoryDeferred = new DeferredPromise();
|
|
37
|
+
class LocalExtHostExtensionService extends ExtHostExtensionService {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
this._extApiImpl = new ExtensionIdentifierMap();
|
|
41
|
+
}
|
|
42
|
+
async getApi(extensionId) {
|
|
43
|
+
const [myRegistry, configProvider] = await Promise.all([
|
|
44
|
+
this.getExtensionRegistry(),
|
|
45
|
+
this._extHostConfiguration.getConfigProvider()
|
|
46
|
+
]);
|
|
47
|
+
const extensionRegistry = { mine: myRegistry, all: this._globalRegistry };
|
|
48
|
+
if (extensionId == null) {
|
|
49
|
+
if (this._defaultApiImpl == null) {
|
|
50
|
+
this._defaultApiImpl = this._apiFactory(nullExtensionDescription, extensionRegistry, configProvider);
|
|
51
|
+
}
|
|
52
|
+
return this._defaultApiImpl;
|
|
53
|
+
}
|
|
54
|
+
const ext = myRegistry.getExtensionDescription(extensionId);
|
|
55
|
+
if (ext == null) {
|
|
56
|
+
throw new Error(`Extension ${extensionId} does not exist or is disabled`);
|
|
57
|
+
}
|
|
58
|
+
let apiImpl = this._extApiImpl.get(ext.identifier);
|
|
59
|
+
if (apiImpl == null) {
|
|
60
|
+
apiImpl = this._apiFactory(ext, extensionRegistry, configProvider);
|
|
61
|
+
this._extApiImpl.set(ext.identifier, apiImpl);
|
|
62
|
+
}
|
|
63
|
+
return apiImpl;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
registerSingleton(IExtHostExtensionService, LocalExtHostExtensionService, InstantiationType.Eager);
|
|
67
|
+
registerSingleton(IExtensionStoragePaths, ExtensionStoragePaths, InstantiationType.Eager);
|
|
68
|
+
function createMessagePassingProtocolPair() {
|
|
69
|
+
const emitterA = new BufferedEmitter();
|
|
70
|
+
const emitterB = new BufferedEmitter();
|
|
71
|
+
class SimpleMessagePassingProtocol {
|
|
72
|
+
constructor(emitterIn, emitterOut) {
|
|
73
|
+
this.emitterIn = emitterIn;
|
|
74
|
+
this.emitterOut = emitterOut;
|
|
75
|
+
this.onMessage = this.emitterIn.event;
|
|
76
|
+
}
|
|
77
|
+
send(buffer) {
|
|
78
|
+
this.emitterOut.fire(buffer);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return [
|
|
82
|
+
new SimpleMessagePassingProtocol(emitterA, emitterB),
|
|
83
|
+
new SimpleMessagePassingProtocol(emitterB, emitterA)
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
const hostUtil = new (class {
|
|
87
|
+
constructor() {
|
|
88
|
+
this.pid = undefined;
|
|
89
|
+
this.exit = unsupported;
|
|
90
|
+
}
|
|
91
|
+
async exists() {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
async realpath(path) {
|
|
95
|
+
return path;
|
|
96
|
+
}
|
|
97
|
+
})();
|
|
98
|
+
let LocalExtensionHost = class LocalExtensionHost {
|
|
99
|
+
constructor(runningLocation, startup, _initDataProvider, _telemetryService, _contextService, _labelService, _logService, _loggerService, _environmentService, _productService, _userDataProfilesService) {
|
|
100
|
+
this.runningLocation = runningLocation;
|
|
101
|
+
this.startup = startup;
|
|
102
|
+
this._initDataProvider = _initDataProvider;
|
|
103
|
+
this._telemetryService = _telemetryService;
|
|
104
|
+
this._contextService = _contextService;
|
|
105
|
+
this._labelService = _labelService;
|
|
106
|
+
this._logService = _logService;
|
|
107
|
+
this._loggerService = _loggerService;
|
|
108
|
+
this._environmentService = _environmentService;
|
|
109
|
+
this._productService = _productService;
|
|
110
|
+
this._userDataProfilesService = _userDataProfilesService;
|
|
111
|
+
this.remoteAuthority = null;
|
|
112
|
+
this.extensions = null;
|
|
113
|
+
this.pid = null;
|
|
114
|
+
this.onExit = Event.None;
|
|
115
|
+
this._protocolPromise = null;
|
|
116
|
+
this._extensionHostLogsLocation = joinPath(this._environmentService.extHostLogsPath, 'local');
|
|
117
|
+
}
|
|
118
|
+
async start() {
|
|
119
|
+
if (this._protocolPromise == null) {
|
|
120
|
+
this._protocolPromise = this._start();
|
|
121
|
+
}
|
|
122
|
+
return await this._protocolPromise;
|
|
123
|
+
}
|
|
124
|
+
async _start() {
|
|
125
|
+
const [mainThreadMessagePassingProtocol, extHostMessagePassingProtocol] = createMessagePassingProtocolPair();
|
|
126
|
+
const initData = await this._createExtHostInitData();
|
|
127
|
+
const hostMain = new ExtensionHostMain(extHostMessagePassingProtocol, initData, hostUtil, null);
|
|
128
|
+
const localExtHostExtensionService = hostMain.getExtHostExtensionService();
|
|
129
|
+
await apiFactoryDeferred.complete((extensionId) => localExtHostExtensionService.getApi(extensionId));
|
|
130
|
+
return mainThreadMessagePassingProtocol;
|
|
131
|
+
}
|
|
132
|
+
async _createExtHostInitData() {
|
|
133
|
+
const initData = await this._initDataProvider.getInitData();
|
|
134
|
+
this.extensions = initData.extensions;
|
|
135
|
+
const workspace = this._contextService.getWorkspace();
|
|
136
|
+
const nlsBaseUrl = this._productService.extensionsGallery?.nlsBaseUrl;
|
|
137
|
+
let nlsUrlWithDetails;
|
|
138
|
+
if (nlsBaseUrl != null &&
|
|
139
|
+
this._productService.commit != null &&
|
|
140
|
+
!Language.isDefaultVariant()) {
|
|
141
|
+
nlsUrlWithDetails = URI.joinPath(URI.parse(nlsBaseUrl), this._productService.commit, this._productService.version, Language.value());
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
commit: this._productService.commit,
|
|
145
|
+
version: this._productService.version,
|
|
146
|
+
quality: this._productService.quality,
|
|
147
|
+
parentPid: 0,
|
|
148
|
+
environment: {
|
|
149
|
+
isExtensionDevelopmentDebug: this._environmentService.debugRenderer,
|
|
150
|
+
appName: this._productService.nameLong,
|
|
151
|
+
appHost: this._productService.embedderIdentifier ?? (isWeb ? 'web' : 'desktop'),
|
|
152
|
+
appUriScheme: this._productService.urlProtocol,
|
|
153
|
+
appLanguage: language,
|
|
154
|
+
extensionTelemetryLogResource: this._environmentService.extHostTelemetryLogFile,
|
|
155
|
+
isExtensionTelemetryLoggingOnly: isLoggingOnly(this._productService, this._environmentService),
|
|
156
|
+
extensionDevelopmentLocationURI: this._environmentService.extensionDevelopmentLocationURI,
|
|
157
|
+
extensionTestsLocationURI: this._environmentService.extensionTestsLocationURI,
|
|
158
|
+
globalStorageHome: this._userDataProfilesService.defaultProfile.globalStorageHome,
|
|
159
|
+
workspaceStorageHome: this._environmentService.workspaceStorageHome,
|
|
160
|
+
extensionLogLevel: this._environmentService.extensionLogLevel
|
|
161
|
+
},
|
|
162
|
+
workspace: this._contextService.getWorkbenchState() === WorkbenchState.EMPTY
|
|
163
|
+
? undefined
|
|
164
|
+
: {
|
|
165
|
+
configuration: workspace.configuration ?? undefined,
|
|
166
|
+
id: workspace.id,
|
|
167
|
+
name: this._labelService.getWorkspaceLabel(workspace),
|
|
168
|
+
transient: workspace.transient
|
|
169
|
+
},
|
|
170
|
+
consoleForward: {
|
|
171
|
+
includeStack: false,
|
|
172
|
+
logNative: this._environmentService.debugRenderer
|
|
173
|
+
},
|
|
174
|
+
extensions: initData.extensions.toSnapshot(),
|
|
175
|
+
nlsBaseUrl: nlsUrlWithDetails,
|
|
176
|
+
telemetryInfo: {
|
|
177
|
+
sessionId: this._telemetryService.sessionId,
|
|
178
|
+
machineId: this._telemetryService.machineId,
|
|
179
|
+
firstSessionDate: this._telemetryService.firstSessionDate,
|
|
180
|
+
msftInternal: this._telemetryService.msftInternal,
|
|
181
|
+
sqmId: this._telemetryService.sqmId,
|
|
182
|
+
devDeviceId: this._telemetryService.devDeviceId
|
|
183
|
+
},
|
|
184
|
+
logLevel: this._logService.getLevel(),
|
|
185
|
+
loggers: [...this._loggerService.getRegisteredLoggers()],
|
|
186
|
+
logsLocation: this._extensionHostLogsLocation,
|
|
187
|
+
autoStart: this.startup === ExtensionHostStartup.EagerAutoStart,
|
|
188
|
+
remote: {
|
|
189
|
+
authority: this._environmentService.remoteAuthority,
|
|
190
|
+
connectionData: null,
|
|
191
|
+
isRemote: false
|
|
192
|
+
},
|
|
193
|
+
uiKind: isWeb ? UIKind.Web : UIKind.Desktop
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
getInspectPort() {
|
|
197
|
+
return undefined;
|
|
198
|
+
}
|
|
199
|
+
enableInspectPort() {
|
|
200
|
+
return Promise.resolve(false);
|
|
201
|
+
}
|
|
202
|
+
dispose() { }
|
|
203
|
+
};
|
|
204
|
+
LocalExtensionHost = __decorate([
|
|
205
|
+
__param(3, ITelemetryService),
|
|
206
|
+
__param(4, IWorkspaceContextService),
|
|
207
|
+
__param(5, ILabelService),
|
|
208
|
+
__param(6, ILogService),
|
|
209
|
+
__param(7, ILoggerService),
|
|
210
|
+
__param(8, IBrowserWorkbenchEnvironmentService),
|
|
211
|
+
__param(9, IProductService),
|
|
212
|
+
__param(10, IUserDataProfilesService)
|
|
213
|
+
], LocalExtensionHost);
|
|
214
|
+
async function createLocalApi(extensionId) {
|
|
215
|
+
const apiFactory = await apiFactoryDeferred.p;
|
|
216
|
+
return await apiFactory(extensionId);
|
|
217
|
+
}
|
|
218
|
+
setLocalExtensionHost(LocalExtensionHost);
|
|
219
|
+
registerLocalApiFactory(createLocalApi);
|
|
220
|
+
let defaultApi;
|
|
221
|
+
registerDefaultApiHandler(api => {
|
|
222
|
+
defaultApi = api;
|
|
223
|
+
});
|
|
224
|
+
registerServiceInitializePostParticipant(async (accessor) => {
|
|
225
|
+
accessor.get(IExtensionService);
|
|
226
|
+
defaultApi = await createLocalApi();
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
export { defaultApi };
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codingame/monaco-vscode-extension-api",
|
|
3
|
+
"version": "13.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - VSCode extension compatible api",
|
|
6
|
+
"keywords": [],
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "CodinGame",
|
|
9
|
+
"url": "http://www.codingame.com"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@codingame/monaco-vscode-1d9dbcb3-6f53-58ad-b0a4-92b1ef1fd6a8-common": "13.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common": "13.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "13.0.0"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@codingame/monaco-vscode-api": "13.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "13.0.0",
|
|
25
|
+
"@types/vscode": "~1.96.0"
|
|
26
|
+
},
|
|
27
|
+
"peerDependenciesMeta": {
|
|
28
|
+
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": {
|
|
29
|
+
"optional": true
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"main": "extension.api.js",
|
|
33
|
+
"module": "extension.api.js",
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"default": "./extension.api.js"
|
|
37
|
+
},
|
|
38
|
+
"./vscode/*": {
|
|
39
|
+
"default": "./vscode/src/*.js",
|
|
40
|
+
"types": "./vscode/src/*.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./*": {
|
|
43
|
+
"default": "./*.js",
|
|
44
|
+
"types": "./*.d.ts"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"typesVersions": {
|
|
48
|
+
"*": {
|
|
49
|
+
"vscode/*": [
|
|
50
|
+
"./vscode/src/*.d.ts"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|