extHost.protocol.ts 56.6 KB
Newer Older
1 2 3 4 5
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

A
Alex Dima 已提交
6
import { CancellationToken } from 'vs/base/common/cancellation';
R
Rob Lourens 已提交
7 8
import { SerializedError } from 'vs/base/common/errors';
import { IDisposable } from 'vs/base/common/lifecycle';
9
import Severity from 'vs/base/common/severity';
10
import { URI, UriComponents } from 'vs/base/common/uri';
11
import { TextEditorCursorStyle, RenderLineNumbersType } from 'vs/editor/common/config/editorOptions';
12 13
import { IPosition } from 'vs/editor/common/core/position';
import { IRange } from 'vs/editor/common/core/range';
14
import { ISelection, Selection } from 'vs/editor/common/core/selection';
R
Rob Lourens 已提交
15
import * as editorCommon from 'vs/editor/common/editorCommon';
16
import { ISingleEditOperation, EndOfLineSequence } from 'vs/editor/common/model';
R
Rob Lourens 已提交
17 18 19 20 21 22
import { IModelChangedEvent } from 'vs/editor/common/model/mirrorTextModel';
import * as modes from 'vs/editor/common/modes';
import { CharacterPair, CommentRule, EnterAction } from 'vs/editor/common/modes/languageConfiguration';
import { ICommandHandlerDescription } from 'vs/platform/commands/common/commands';
import { ConfigurationTarget, IConfigurationData, IConfigurationModel } from 'vs/platform/configuration/common/configuration';
import { ConfigurationScope } from 'vs/platform/configuration/common/configurationRegistry';
J
Johannes Rieken 已提交
23
import * as files from 'vs/platform/files/common/files';
24
import { ResourceLabelFormatter } from 'vs/platform/label/common/label';
S
Sandeep Somavarapu 已提交
25
import { LogLevel } from 'vs/platform/log/common/log';
R
Rob Lourens 已提交
26
import { IMarkerData } from 'vs/platform/markers/common/markers';
J
Johannes Rieken 已提交
27 28 29
import * as quickInput from 'vs/platform/quickinput/common/quickInput';
import * as search from 'vs/workbench/services/search/common/search';
import * as statusbar from 'vs/platform/statusbar/common/statusbar';
R
Rob Lourens 已提交
30 31
import { ITelemetryInfo } from 'vs/platform/telemetry/common/telemetry';
import { ThemeColor } from 'vs/platform/theme/common/themeService';
32 33
import { EditorViewColumn } from 'vs/workbench/api/common/shared/editor';
import * as tasks from 'vs/workbench/api/common/shared/tasks';
34
import { ITreeItem, IRevealOptions } from 'vs/workbench/common/views';
35 36 37
import { IAdapterDescriptor, IConfig, ITerminalSettings } from 'vs/workbench/contrib/debug/common/debug';
import { ITextQueryBuilderOptions } from 'vs/workbench/contrib/search/common/queryBuilder';
import { ITerminalDimensions } from 'vs/workbench/contrib/terminal/common/terminal';
38
import { ExtensionActivationError } from 'vs/workbench/services/extensions/common/extensions';
J
Johannes Rieken 已提交
39
import { IRPCProtocol, createExtHostContextProxyIdentifier as createExtId, createMainContextProxyIdentifier as createMainId } from 'vs/workbench/services/extensions/common/proxyIdentifier';
40
import { IProgressOptions, IProgressStep } from 'vs/platform/progress/common/progress';
R
Rob Lourens 已提交
41
import { SaveReason } from 'vs/workbench/services/textfile/common/textfiles';
42
import { IMarkdownString } from 'vs/base/common/htmlContent';
A
Alex Dima 已提交
43
import { ResolvedAuthority } from 'vs/platform/remote/common/remoteAuthorityResolver';
44
import { ExtensionIdentifier, IExtensionDescription } from 'vs/platform/extensions/common/extensions';
45
import * as codeInset from 'vs/workbench/contrib/codeinset/common/codeInset';
46
import * as callHierarchy from 'vs/workbench/contrib/callHierarchy/common/callHierarchy';
47
import { IRelativePattern } from 'vs/base/common/glob';
48
import { IRemoteConsoleLog } from 'vs/base/common/console';
S
Sandeep Somavarapu 已提交
49

50
export interface IEnvironment {
51
	isExtensionDevelopmentDebug: boolean;
52 53 54
	appRoot?: URI;
	appSettingsHome?: URI;
	extensionDevelopmentLocationURI?: URI;
55
	extensionTestsLocationURI?: URI;
A
Alex Dima 已提交
56
	globalStorageHome: URI;
D
Daniel Imms 已提交
57
	userHome: URI;
58 59
}

60
export interface IStaticWorkspaceData {
61
	id: string;
62
	name: string;
A
Alex Dima 已提交
63
	configuration?: UriComponents | null;
64 65
}

66 67 68 69
export interface IWorkspaceData extends IStaticWorkspaceData {
	folders: { uri: UriComponents, name: string, index: number }[];
}

70
export interface IInitData {
71
	commit?: string;
72 73
	parentPid: number;
	environment: IEnvironment;
A
Alex Dima 已提交
74
	workspace?: IStaticWorkspaceData | null;
A
Alex Dima 已提交
75
	resolvedExtensions: ExtensionIdentifier[];
76
	hostExtensions: ExtensionIdentifier[];
77
	extensions: IExtensionDescription[];
78
	telemetryInfo: ITelemetryInfo;
S
Sandeep Somavarapu 已提交
79
	logLevel: LogLevel;
80
	logsLocation: URI;
A
Alex Dima 已提交
81
	autoStart: boolean;
A
Alex Dima 已提交
82
	remoteAuthority?: string | null;
83 84
}

S
Sandeep Somavarapu 已提交
85
export interface IConfigurationInitData extends IConfigurationData {
S
Sandeep Somavarapu 已提交
86
	configurationScopes: { [key: string]: ConfigurationScope };
S
Sandeep Somavarapu 已提交
87 88
}

89
export interface IWorkspaceConfigurationChangeEventData {
S
Sandeep Somavarapu 已提交
90 91
	changedConfiguration: IConfigurationModel;
	changedConfigurationByResource: { [folder: string]: IConfigurationModel };
92 93
}

A
Alex Dima 已提交
94
export interface IExtHostContext extends IRPCProtocol {
A
Alex Dima 已提交
95
	remoteAuthority: string;
96 97
}

A
Alex Dima 已提交
98
export interface IMainContext extends IRPCProtocol {
99 100
}

101 102
// --- main thread

103 104 105 106 107
export interface MainThreadClipboardShape extends IDisposable {
	$readText(): Promise<string>;
	$writeText(value: string): Promise<void>;
}

108
export interface MainThreadCommandsShape extends IDisposable {
109 110
	$registerCommand(id: string): void;
	$unregisterCommand(id: string): void;
111
	$executeCommand<T>(id: string, args: any[]): Promise<T | undefined>;
J
Johannes Rieken 已提交
112
	$getCommands(): Promise<string[]>;
113 114
}

R
rebornix 已提交
115 116 117 118
export interface CommentProviderFeatures {
	startDraftLabel?: string;
	deleteDraftLabel?: string;
	finishDraftLabel?: string;
P
Peng Lyu 已提交
119
	reactionGroup?: modes.CommentReaction[];
R
rebornix 已提交
120 121
}

M
Matt Bierner 已提交
122
export interface MainThreadCommentsShape extends IDisposable {
P
Peng Lyu 已提交
123
	$registerCommentController(handle: number, id: string, label: string): void;
124
	$unregisterCommentController(handle: number): void;
P
Peng Lyu 已提交
125
	$updateCommentControllerFeatures(handle: number, features: CommentProviderFeatures): void;
126
	$createCommentThread(handle: number, commentThreadHandle: number, threadId: string, resource: UriComponents, range: IRange, comments: modes.Comment[], acceptInputCommand: modes.Command | undefined, additionalCommands: modes.Command[], deleteCommand: modes.Command | undefined, collapseState: modes.CommentThreadCollapsibleState): modes.CommentThread2 | undefined;
P
Peng Lyu 已提交
127 128
	$deleteCommentThread(handle: number, commentThreadHandle: number): void;
	$updateComments(handle: number, commentThreadHandle: number, comments: modes.Comment[]): void;
P
Peng Lyu 已提交
129
	$setInputValue(handle: number, input: string): void;
130 131
	$updateCommentThreadAcceptInputCommand(handle: number, commentThreadHandle: number, acceptInputCommand: modes.Command): void;
	$updateCommentThreadAdditionalCommands(handle: number, commentThreadHandle: number, additionalCommands: modes.Command[]): void;
132
	$updateCommentThreadDeleteCommand(handle: number, commentThreadHandle: number, deleteCommand: modes.Command): void;
P
Peng Lyu 已提交
133
	$updateCommentThreadCollapsibleState(handle: number, commentThreadHandle: number, collapseState: modes.CommentThreadCollapsibleState): void;
P
Peng Lyu 已提交
134
	$updateCommentThreadRange(handle: number, commentThreadHandle: number, range: IRange): void;
135
	$updateCommentThreadLabel(handle: number, commentThreadHandle: number, label: string): void;
R
rebornix 已提交
136
	$registerDocumentCommentProvider(handle: number, features: CommentProviderFeatures): void;
137
	$unregisterDocumentCommentProvider(handle: number): void;
138
	$registerWorkspaceCommentProvider(handle: number, extensionId: ExtensionIdentifier): void;
139
	$unregisterWorkspaceCommentProvider(handle: number): void;
140
	$onDidCommentThreadsChange(handle: number, event: modes.CommentThreadChangedEvent): void;
M
Matt Bierner 已提交
141 142
}

143
export interface MainThreadConfigurationShape extends IDisposable {
144 145
	$updateConfigurationOption(target: ConfigurationTarget | null, key: string, value: any, resource: UriComponents | undefined): Promise<void>;
	$removeConfigurationOption(target: ConfigurationTarget | null, key: string, resource: UriComponents | undefined): Promise<void>;
146 147
}

148
export interface MainThreadDiagnosticsShape extends IDisposable {
149
	$changeMany(owner: string, entries: [UriComponents, IMarkerData[] | undefined][]): void;
150
	$clear(owner: string): void;
151 152
}

153
export interface MainThreadDialogOpenOptions {
154
	defaultUri?: UriComponents;
155
	openLabel?: string;
156 157 158
	canSelectFiles?: boolean;
	canSelectFolders?: boolean;
	canSelectMany?: boolean;
J
Johannes Rieken 已提交
159
	filters?: { [name: string]: string[] };
160 161
}

162
export interface MainThreadDialogSaveOptions {
163
	defaultUri?: UriComponents;
164
	saveLabel?: string;
J
Johannes Rieken 已提交
165
	filters?: { [name: string]: string[] };
166 167
}

168
export interface MainThreadDiaglogsShape extends IDisposable {
169 170
	$showOpenDialog(options: MainThreadDialogOpenOptions): Promise<UriComponents[] | undefined>;
	$showSaveDialog(options: MainThreadDialogSaveOptions): Promise<UriComponents | undefined>;
171 172
}

173 174 175
export interface MainThreadDecorationsShape extends IDisposable {
	$registerDecorationProvider(handle: number, label: string): void;
	$unregisterDecorationProvider(handle: number): void;
176
	$onDidChange(handle: number, resources: UriComponents[] | null): void;
177 178
}

179
export interface MainThreadDocumentContentProvidersShape extends IDisposable {
180 181
	$registerTextContentProvider(handle: number, scheme: string): void;
	$unregisterTextContentProvider(handle: number): void;
182
	$onVirtualDocumentChange(uri: UriComponents, value: string): void;
183 184
}

185
export interface MainThreadDocumentsShape extends IDisposable {
J
Johannes Rieken 已提交
186 187 188
	$tryCreateDocument(options?: { language?: string; content?: string; }): Promise<UriComponents>;
	$tryOpenDocument(uri: UriComponents): Promise<void>;
	$trySaveDocument(uri: UriComponents): Promise<boolean>;
189 190
}

191 192
export interface ITextEditorConfigurationUpdate {
	tabSize?: number | 'auto';
A
Alex Dima 已提交
193
	indentSize?: number | 'tabSize';
194 195
	insertSpaces?: boolean | 'auto';
	cursorStyle?: TextEditorCursorStyle;
196
	lineNumbers?: RenderLineNumbersType;
197 198 199 200
}

export interface IResolvedTextEditorConfiguration {
	tabSize: number;
D
David Lechner 已提交
201
	indentSize: number;
202 203
	insertSpaces: boolean;
	cursorStyle: TextEditorCursorStyle;
204
	lineNumbers: RenderLineNumbersType;
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
}

export enum TextEditorRevealType {
	Default = 0,
	InCenter = 1,
	InCenterIfOutsideViewport = 2,
	AtTop = 3
}

export interface IUndoStopOptions {
	undoStopBefore: boolean;
	undoStopAfter: boolean;
}

export interface IApplyEditsOptions extends IUndoStopOptions {
J
Johannes Rieken 已提交
220
	setEndOfLine?: EndOfLineSequence;
221 222
}

223
export interface ITextDocumentShowOptions {
224
	position?: EditorViewColumn;
225 226
	preserveFocus?: boolean;
	pinned?: boolean;
227
	selection?: IRange;
228 229
}

230
export interface MainThreadTextEditorsShape extends IDisposable {
231
	$tryShowTextDocument(resource: UriComponents, options: ITextDocumentShowOptions): Promise<string | undefined>;
232 233
	$registerTextEditorDecorationType(key: string, options: editorCommon.IDecorationRenderOptions): void;
	$removeTextEditorDecorationType(key: string): void;
J
Johannes Rieken 已提交
234 235 236 237 238 239 240 241 242 243 244
	$tryShowEditor(id: string, position: EditorViewColumn): Promise<void>;
	$tryHideEditor(id: string): Promise<void>;
	$trySetOptions(id: string, options: ITextEditorConfigurationUpdate): Promise<void>;
	$trySetDecorations(id: string, key: string, ranges: editorCommon.IDecorationOptions[]): Promise<void>;
	$trySetDecorationsFast(id: string, key: string, ranges: number[]): Promise<void>;
	$tryRevealRange(id: string, range: IRange, revealType: TextEditorRevealType): Promise<void>;
	$trySetSelections(id: string, selections: ISelection[]): Promise<void>;
	$tryApplyEdits(id: string, modelVersionId: number, edits: ISingleEditOperation[], opts: IApplyEditsOptions): Promise<boolean>;
	$tryApplyWorkspaceEdit(workspaceEditDto: WorkspaceEditDto): Promise<boolean>;
	$tryInsertSnippet(id: string, template: string, selections: IRange[], opts: IUndoStopOptions): Promise<boolean>;
	$getDiffInformation(id: string): Promise<editorCommon.ILineChange[]>;
245 246
}

247
export interface MainThreadTreeViewsShape extends IDisposable {
248
	$registerTreeViewDataProvider(treeViewId: string, options: { showCollapseAll: boolean }): void;
J
Johannes Rieken 已提交
249 250
	$refresh(treeViewId: string, itemsToRefresh?: { [treeItemHandle: string]: ITreeItem }): Promise<void>;
	$reveal(treeViewId: string, treeItem: ITreeItem, parentChain: ITreeItem[], options: IRevealOptions): Promise<void>;
251
	$setMessage(treeViewId: string, message: string | IMarkdownString): void;
252 253
}

254
export interface MainThreadErrorsShape extends IDisposable {
255
	$onUnexpectedError(err: any | SerializedError): void;
256 257
}

258
export interface MainThreadConsoleShape extends IDisposable {
259
	$logExtensionHostMessage(msg: IRemoteConsoleLog): void;
260 261
}

262 263 264 265 266 267 268 269 270 271 272 273 274
export interface ISerializedRegExp {
	pattern: string;
	flags?: string;
}
export interface ISerializedIndentationRule {
	decreaseIndentPattern: ISerializedRegExp;
	increaseIndentPattern: ISerializedRegExp;
	indentNextLinePattern?: ISerializedRegExp;
	unIndentedLinePattern?: ISerializedRegExp;
}
export interface ISerializedOnEnterRule {
	beforeText: ISerializedRegExp;
	afterText?: ISerializedRegExp;
275
	oneLineAboveText?: ISerializedRegExp;
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
	action: EnterAction;
}
export interface ISerializedLanguageConfiguration {
	comments?: CommentRule;
	brackets?: CharacterPair[];
	wordPattern?: ISerializedRegExp;
	indentationRules?: ISerializedIndentationRule;
	onEnterRules?: ISerializedOnEnterRule[];
	__electricCharacterSupport?: {
		brackets?: any;
		docComment?: {
			scope: string;
			open: string;
			lineStart: string;
			close?: string;
		};
	};
	__characterPairSupport?: {
		autoClosingPairs: {
			open: string;
			close: string;
			notIn?: string[];
		}[];
	};
}

302 303
export type GlobPattern = string | { base: string; pattern: string };

A
Alex Dima 已提交
304 305 306 307
export interface ISerializedDocumentFilter {
	$serialized: true;
	language?: string;
	scheme?: string;
308
	pattern?: string | IRelativePattern;
309
	exclusive?: boolean;
A
Alex Dima 已提交
310 311
}

312 313 314 315 316
export interface ISerializedSignatureHelpProviderMetadata {
	readonly triggerCharacters: ReadonlyArray<string>;
	readonly retriggerCharacters: ReadonlyArray<string>;
}

317
export interface MainThreadLanguageFeaturesShape extends IDisposable {
318
	$unregister(handle: number): void;
319
	$registerDocumentSymbolProvider(handle: number, selector: ISerializedDocumentFilter[], label: string): void;
320
	$registerCodeLensSupport(handle: number, selector: ISerializedDocumentFilter[], eventHandle: number | undefined): void;
321
	$registerCodeInsetSupport(handle: number, selector: ISerializedDocumentFilter[], eventHandle: number | undefined): void;
322
	$emitCodeLensEvent(eventHandle: number, event?: any): void;
323 324
	$registerDefinitionSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
	$registerDeclarationSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
A
Alex Dima 已提交
325 326 327 328 329
	$registerImplementationSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
	$registerTypeDefinitionSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
	$registerHoverProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
	$registerDocumentHighlightProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
	$registerReferenceSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
330
	$registerQuickFixSupport(handle: number, selector: ISerializedDocumentFilter[], supportedKinds?: string[]): void;
331 332 333
	$registerDocumentFormattingSupport(handle: number, selector: ISerializedDocumentFilter[], extensionId: ExtensionIdentifier): void;
	$registerRangeFormattingSupport(handle: number, selector: ISerializedDocumentFilter[], extensionId: ExtensionIdentifier): void;
	$registerOnTypeFormattingSupport(handle: number, selector: ISerializedDocumentFilter[], autoFormatTriggerCharacters: string[], extensionId: ExtensionIdentifier): void;
334
	$registerNavigateTypeSupport(handle: number): void;
A
Alex Dima 已提交
335 336
	$registerRenameSupport(handle: number, selector: ISerializedDocumentFilter[], supportsResolveInitialValues: boolean): void;
	$registerSuggestSupport(handle: number, selector: ISerializedDocumentFilter[], triggerCharacters: string[], supportsResolveDetails: boolean): void;
337
	$registerSignatureHelpProvider(handle: number, selector: ISerializedDocumentFilter[], metadata: ISerializedSignatureHelpProviderMetadata): void;
A
Alex Dima 已提交
338 339
	$registerDocumentLinkProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
	$registerDocumentColorProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
340
	$registerFoldingRangeProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
341
	$registerSelectionRangeProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
342
	$registerCallHierarchyProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
343
	$setLanguageConfiguration(handle: number, languageId: string, configuration: ISerializedLanguageConfiguration): void;
344 345
}

346
export interface MainThreadLanguagesShape extends IDisposable {
J
Johannes Rieken 已提交
347 348
	$getLanguages(): Promise<string[]>;
	$changeLanguage(resource: UriComponents, languageId: string): Promise<void>;
349 350
}

351
export interface MainThreadMessageOptions {
352
	extension?: IExtensionDescription;
353
	modal?: boolean;
354 355
}

356
export interface MainThreadMessageServiceShape extends IDisposable {
357
	$showMessage(severity: Severity, message: string, options: MainThreadMessageOptions, commands: { title: string; isCloseAffordance: boolean; handle: number; }[]): Promise<number | undefined>;
358 359
}

360
export interface MainThreadOutputServiceShape extends IDisposable {
J
Johannes Rieken 已提交
361
	$register(label: string, log: boolean, file?: UriComponents): Promise<string>;
362 363 364 365 366 367
	$append(channelId: string, value: string): Promise<void> | undefined;
	$update(channelId: string): Promise<void> | undefined;
	$clear(channelId: string, till: number): Promise<void> | undefined;
	$reveal(channelId: string, preserveFocus: boolean): Promise<void> | undefined;
	$close(channelId: string): Promise<void> | undefined;
	$dispose(channelId: string): Promise<void> | undefined;
368 369
}

370
export interface MainThreadProgressShape extends IDisposable {
371

372 373 374
	$startProgress(handle: number, options: IProgressOptions): void;
	$progressReport(handle: number, message: IProgressStep): void;
	$progressEnd(handle: number): void;
375 376
}

377
export interface MainThreadTerminalServiceShape extends IDisposable {
378
	$createTerminal(name?: string, shellPath?: string, shellArgs?: string[] | string, cwd?: string | UriComponents, env?: { [key: string]: string | null }, waitOnExit?: boolean, strictEnv?: boolean): Promise<{ id: number, name: string }>;
J
Johannes Rieken 已提交
379
	$createTerminalRenderer(name: string): Promise<number>;
380 381 382 383
	$dispose(terminalId: number): void;
	$hide(terminalId: number): void;
	$sendText(terminalId: number, text: string, addNewLine: boolean): void;
	$show(terminalId: number, preserveFocus: boolean): void;
D
Daniel Imms 已提交
384
	$registerOnDataListener(terminalId: number): void;
385

386
	// Process
387 388 389
	$sendProcessTitle(terminalId: number, title: string): void;
	$sendProcessData(terminalId: number, data: string): void;
	$sendProcessPid(terminalId: number, pid: number): void;
D
Daniel Imms 已提交
390
	$sendProcessExit(terminalId: number, exitCode: number): void;
391 392
	$sendProcessInitialCwd(terminalId: number, cwd: string): void;
	$sendProcessCwd(terminalId: number, initialCwd: string): void;
393 394 395

	// Renderer
	$terminalRendererSetName(terminalId: number, name: string): void;
D
Daniel Imms 已提交
396
	$terminalRendererSetDimensions(terminalId: number, dimensions: ITerminalDimensions): void;
397
	$terminalRendererWrite(terminalId: number, text: string): void;
D
Daniel Imms 已提交
398
	$terminalRendererRegisterOnInputListener(terminalId: number): void;
D
Daniel Imms 已提交
399 400
}

J
Johannes Rieken 已提交
401
export interface TransferQuickPickItems extends quickInput.IQuickPickItem {
402 403
	handle: number;
}
C
Christof Marti 已提交
404

J
Johannes Rieken 已提交
405
export interface TransferQuickInputButton extends quickInput.IQuickInputButton {
406 407
	handle: number;
}
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431

export type TransferQuickInput = TransferQuickPick | TransferInputBox;

export interface BaseTransferQuickInput {

	id: number;

	type?: 'quickPick' | 'inputBox';

	enabled?: boolean;

	busy?: boolean;

	visible?: boolean;
}

export interface TransferQuickPick extends BaseTransferQuickInput {

	type?: 'quickPick';

	value?: string;

	placeholder?: string;

C
Christof Marti 已提交
432
	buttons?: TransferQuickInputButton[];
433

C
Christof Marti 已提交
434
	items?: TransferQuickPickItems[];
435

436 437 438 439
	activeItems?: number[];

	selectedItems?: number[];

440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
	canSelectMany?: boolean;

	ignoreFocusOut?: boolean;

	matchOnDescription?: boolean;

	matchOnDetail?: boolean;
}

export interface TransferInputBox extends BaseTransferQuickInput {

	type?: 'inputBox';

	value?: string;

	placeholder?: string;

	password?: boolean;

C
Christof Marti 已提交
459
	buttons?: TransferQuickInputButton[];
460 461 462 463 464 465

	prompt?: string;

	validationMessage?: string;
}

466 467 468 469 470 471 472 473 474
export interface IInputBoxOptions {
	value?: string;
	valueSelection?: [number, number];
	prompt?: string;
	placeHolder?: string;
	password?: boolean;
	ignoreFocusOut?: boolean;
}

475
export interface MainThreadQuickOpenShape extends IDisposable {
J
Johannes Rieken 已提交
476
	$show(instance: number, options: quickInput.IPickOptions<TransferQuickPickItems>, token: CancellationToken): Promise<number | number[] | undefined>;
J
Johannes Rieken 已提交
477 478
	$setItems(instance: number, items: TransferQuickPickItems[]): Promise<void>;
	$setError(instance: number, error: Error): Promise<void>;
479
	$input(options: IInputBoxOptions | undefined, validateInput: boolean, token: CancellationToken): Promise<string>;
J
Johannes Rieken 已提交
480 481
	$createOrUpdate(params: TransferQuickInput): Promise<void>;
	$dispose(id: number): Promise<void>;
482 483
}

484
export interface MainThreadStatusBarShape extends IDisposable {
J
Johannes Rieken 已提交
485
	$setEntry(id: number, extensionId: ExtensionIdentifier | undefined, text: string, tooltip: string, command: string, color: string | ThemeColor, alignment: statusbar.StatusbarAlignment, priority: number | undefined): void;
486
	$dispose(id: number): void;
487 488
}

489
export interface MainThreadStorageShape extends IDisposable {
490
	$getValue<T>(shared: boolean, key: string): Promise<T | undefined>;
J
Johannes Rieken 已提交
491
	$setValue(shared: boolean, key: string, value: object): Promise<void>;
492 493
}

494
export interface MainThreadTelemetryShape extends IDisposable {
495
	$publicLog(eventName: string, data?: any): void;
496 497
}

498
export type WebviewPanelHandle = string;
M
Matt Bierner 已提交
499

500 501
export type WebviewInsetHandle = number;

M
Matt Bierner 已提交
502 503 504 505 506
export interface WebviewPanelShowOptions {
	readonly viewColumn?: EditorViewColumn;
	readonly preserveFocus?: boolean;
}

507 508 509 510 511 512 513 514 515 516 517
export interface IWebviewPanelOptions {
	readonly enableFindWidget?: boolean;
	readonly retainContextWhenHidden?: boolean;
}

export interface IWebviewOptions {
	readonly enableScripts?: boolean;
	readonly enableCommandUris?: boolean;
	readonly localResourceRoots?: ReadonlyArray<UriComponents>;
}

M
Matt Bierner 已提交
518
export interface MainThreadWebviewsShape extends IDisposable {
519 520
	$createWebviewPanel(handle: WebviewPanelHandle, viewType: string, title: string, showOptions: WebviewPanelShowOptions, options: IWebviewPanelOptions & IWebviewOptions, extensionId: ExtensionIdentifier, extensionLocation: UriComponents): void;
	$createWebviewCodeInset(handle: WebviewInsetHandle, symbolId: string, options: IWebviewOptions, extensionLocation: UriComponents | undefined): void;
521
	$disposeWebview(handle: WebviewPanelHandle): void;
M
Matt Bierner 已提交
522
	$reveal(handle: WebviewPanelHandle, showOptions: WebviewPanelShowOptions): void;
523
	$setTitle(handle: WebviewPanelHandle, value: string): void;
524
	$setIconPath(handle: WebviewPanelHandle, value: { light: UriComponents, dark: UriComponents } | undefined): void;
525 526

	$setHtml(handle: WebviewPanelHandle | WebviewInsetHandle, value: string): void;
527
	$setOptions(handle: WebviewPanelHandle | WebviewInsetHandle, options: IWebviewOptions): void;
528
	$postMessage(handle: WebviewPanelHandle | WebviewInsetHandle, value: any): Promise<boolean>;
529 530 531

	$registerSerializer(viewType: string): void;
	$unregisterSerializer(viewType: string): void;
M
Matt Bierner 已提交
532
}
533

M
Matt Bierner 已提交
534 535 536 537 538 539
export interface WebviewPanelViewState {
	readonly active: boolean;
	readonly visible: boolean;
	readonly position: EditorViewColumn;
}

M
Matt Bierner 已提交
540
export interface ExtHostWebviewsShape {
541
	$onMessage(handle: WebviewPanelHandle, message: any): void;
M
Matt Bierner 已提交
542
	$onDidChangeWebviewPanelViewState(handle: WebviewPanelHandle, newState: WebviewPanelViewState): void;
J
Johannes Rieken 已提交
543
	$onDidDisposeWebviewPanel(handle: WebviewPanelHandle): Promise<void>;
544
	$deserializeWebviewPanel(newWebviewHandle: WebviewPanelHandle, viewType: string, title: string, state: any, position: EditorViewColumn, options: IWebviewOptions): Promise<void>;
M
Matt Bierner 已提交
545 546
}

J
Joao Moreno 已提交
547
export interface MainThreadUrlsShape extends IDisposable {
548
	$registerUriHandler(handle: number, extensionId: ExtensionIdentifier): Promise<void>;
J
Johannes Rieken 已提交
549
	$unregisterUriHandler(handle: number): Promise<void>;
J
Joao Moreno 已提交
550 551 552
}

export interface ExtHostUrlsShape {
J
Johannes Rieken 已提交
553
	$handleExternalUri(handle: number, uri: UriComponents): Promise<void>;
M
Matt Bierner 已提交
554 555
}

556 557 558 559
export interface ITextSearchComplete {
	limitHit?: boolean;
}

560
export interface MainThreadWorkspaceShape extends IDisposable {
561
	$startFileSearch(includePattern: string | undefined, includeFolder: UriComponents | undefined, excludePatternOrDisregardExcludes: string | false | undefined, maxResults: number | undefined, token: CancellationToken): Promise<UriComponents[] | undefined>;
562
	$startTextSearch(query: search.IPatternInfo, options: ITextQueryBuilderOptions, requestId: number, token: CancellationToken): Promise<ITextSearchComplete>;
J
Johannes Rieken 已提交
563 564 565
	$checkExists(includes: string[], token: CancellationToken): Promise<boolean>;
	$saveAll(includeUntitled?: boolean): Promise<boolean>;
	$updateWorkspaceFolders(extensionName: string, index: number, deleteCount: number, workspaceFoldersToAdd: { uri: UriComponents, name?: string }[]): Promise<void>;
566
	$resolveProxy(url: string): Promise<string | undefined>;
567
}
568

J
Johannes Rieken 已提交
569 570
export interface IFileChangeDto {
	resource: UriComponents;
J
Johannes Rieken 已提交
571
	type: files.FileChangeType;
J
Johannes Rieken 已提交
572 573
}

574
export interface MainThreadFileSystemShape extends IDisposable {
J
Johannes Rieken 已提交
575
	$registerFileSystemProvider(handle: number, scheme: string, capabilities: files.FileSystemProviderCapabilities): void;
576
	$unregisterProvider(handle: number): void;
577 578
	$registerResourceLabelFormatter(handle: number, formatter: ResourceLabelFormatter): void;
	$unregisterResourceLabelFormatter(handle: number): void;
J
Johannes Rieken 已提交
579
	$onFileSystemChange(handle: number, resource: IFileChangeDto[]): void;
580
}
J
Johannes Rieken 已提交
581

582
export interface MainThreadSearchShape extends IDisposable {
583 584
	$registerFileSearchProvider(handle: number, scheme: string): void;
	$registerTextSearchProvider(handle: number, scheme: string): void;
585
	$unregisterProvider(handle: number): void;
586
	$handleFileMatch(handle: number, session: number, data: UriComponents[]): void;
J
Johannes Rieken 已提交
587
	$handleTextMatch(handle: number, session: number, data: search.IRawFileMatch2[]): void;
588
	$handleTelemetry(eventName: string, data: any): void;
589 590
}

591
export interface MainThreadTaskShape extends IDisposable {
J
Johannes Rieken 已提交
592
	$createTaskId(task: tasks.TaskDTO): Promise<string>;
J
Johannes Rieken 已提交
593 594
	$registerTaskProvider(handle: number): Promise<void>;
	$unregisterTaskProvider(handle: number): Promise<void>;
J
Johannes Rieken 已提交
595 596
	$fetchTasks(filter?: tasks.TaskFilterDTO): Promise<tasks.TaskDTO[]>;
	$executeTask(task: tasks.TaskHandleDTO | tasks.TaskDTO): Promise<tasks.TaskExecutionDTO>;
J
Johannes Rieken 已提交
597
	$terminateTask(id: string): Promise<void>;
J
Johannes Rieken 已提交
598
	$registerTaskSystem(scheme: string, info: tasks.TaskSystemInfoDTO): void;
G
Gabriel DeBacker 已提交
599
	$customExecutionComplete(id: string, result?: number): Promise<void>;
600 601
}

602
export interface MainThreadExtensionServiceShape extends IDisposable {
A
Alex Dima 已提交
603
	$activateExtension(extensionId: ExtensionIdentifier, activationEvent: string | null): Promise<void>;
604
	$onWillActivateExtension(extensionId: ExtensionIdentifier): void;
A
Alex Dima 已提交
605
	$onDidActivateExtension(extensionId: ExtensionIdentifier, startup: boolean, codeLoadingTime: number, activateCallTime: number, activateResolvedTime: number, activationEvent: string | null): void;
606
	$onExtensionActivationError(extensionId: ExtensionIdentifier, error: ExtensionActivationError): Promise<void>;
607
	$onExtensionRuntimeError(extensionId: ExtensionIdentifier, error: SerializedError): void;
608 609
}

J
Joao Moreno 已提交
610
export interface SCMProviderFeatures {
J
Joao Moreno 已提交
611 612
	hasQuickDiffProvider?: boolean;
	count?: number;
613 614
	commitTemplate?: string;
	acceptInputCommand?: modes.Command;
J
Joao Moreno 已提交
615
	statusBarCommands?: CommandDto[];
J
Joao Moreno 已提交
616 617 618 619
}

export interface SCMGroupFeatures {
	hideWhenEmpty?: boolean;
J
Joao Moreno 已提交
620 621
}

J
Joao Moreno 已提交
622
export type SCMRawResource = [
623
	number /*handle*/,
624
	UriComponents /*resourceUri*/,
J
Joao Moreno 已提交
625
	string[] /*icons: light, dark*/,
626
	string /*tooltip*/,
627
	boolean /*strike through*/,
628 629
	boolean /*faded*/,

J
Joao Moreno 已提交
630 631 632
	string | undefined /*source*/,
	string | undefined /*letter*/,
	ThemeColor | null /*color*/
J
Joao Moreno 已提交
633
];
634

635 636 637
export type SCMRawResourceSplice = [
	number /* start */,
	number /* delete count */,
J
Joao 已提交
638 639 640
	SCMRawResource[]
];

641 642 643 644 645
export type SCMRawResourceSplices = [
	number, /*handle*/
	SCMRawResourceSplice[]
];

646
export interface MainThreadSCMShape extends IDisposable {
647
	$registerSourceControl(handle: number, id: string, label: string, rootUri: UriComponents | undefined): void;
648 649
	$updateSourceControl(handle: number, features: SCMProviderFeatures): void;
	$unregisterSourceControl(handle: number): void;
J
Joao Moreno 已提交
650

651 652 653 654
	$registerGroup(sourceControlHandle: number, handle: number, id: string, label: string): void;
	$updateGroup(sourceControlHandle: number, handle: number, features: SCMGroupFeatures): void;
	$updateGroupLabel(sourceControlHandle: number, handle: number, label: string): void;
	$unregisterGroup(sourceControlHandle: number, handle: number): void;
J
Joao Moreno 已提交
655

656
	$spliceResourceStates(sourceControlHandle: number, splices: SCMRawResourceSplices[]): void;
J
Joao 已提交
657

J
Joao Moreno 已提交
658
	$setInputBoxValue(sourceControlHandle: number, value: string): void;
659
	$setInputBoxPlaceholder(sourceControlHandle: number, placeholder: string): void;
660
	$setInputBoxVisibility(sourceControlHandle: number, visible: boolean): void;
661
	$setValidationProviderIsEnabled(sourceControlHandle: number, enabled: boolean): void;
J
Joao Moreno 已提交
662 663
}

664 665
export type DebugSessionUUID = string;

666 667 668 669 670 671 672
export interface IDebugConfiguration {
	type: string;
	name: string;
	request: string;
	[key: string]: any;
}

673
export interface MainThreadDebugServiceShape extends IDisposable {
A
Alex Dima 已提交
674
	$registerDebugTypes(debugTypes: string[]): void;
675
	$sessionCached(sessionID: string): void;
A
Alex Dima 已提交
676
	$acceptDAMessage(handle: number, message: DebugProtocol.ProtocolMessage): void;
677 678
	$acceptDAError(handle: number, name: string, message: string, stack: string | undefined): void;
	$acceptDAExit(handle: number, code: number | undefined, signal: string | undefined): void;
A
Andre Weinand 已提交
679
	$registerDebugConfigurationProvider(type: string, hasProvideMethod: boolean, hasResolveMethod: boolean, hasProvideDaMethod: boolean, handle: number): Promise<void>;
J
Johannes Rieken 已提交
680
	$registerDebugAdapterDescriptorFactory(type: string, handle: number): Promise<void>;
A
Andre Weinand 已提交
681
	$registerDebugAdapterTrackerFactory(type: string, handle: number);
682
	$unregisterDebugConfigurationProvider(handle: number): void;
A
Andre Weinand 已提交
683 684
	$unregisterDebugAdapterDescriptorFactory(handle: number): void;
	$unregisterDebugAdapterTrackerFactory(handle: number): void;
685
	$startDebugging(folder: UriComponents | undefined, nameOrConfig: string | IDebugConfiguration, parentSessionID: string | undefined): Promise<boolean>;
J
Johannes Rieken 已提交
686
	$customDebugAdapterRequest(id: DebugSessionUUID, command: string, args: any): Promise<any>;
687 688
	$appendDebugConsole(value: string): void;
	$startBreakpointEvents(): void;
689
	$registerBreakpoints(breakpoints: Array<ISourceMultiBreakpointDto | IFunctionBreakpointDto>): Promise<void>;
J
Johannes Rieken 已提交
690
	$unregisterBreakpoints(breakpointIds: string[], functionBreakpointIds: string[]): Promise<void>;
691 692
}

693
export interface MainThreadWindowShape extends IDisposable {
J
Johannes Rieken 已提交
694
	$getWindowVisibility(): Promise<boolean>;
695
	$openUri(uri: UriComponents): Promise<boolean>;
696 697
}

698 699
// -- extension host

700
export interface ExtHostCommandsShape {
J
Johannes Rieken 已提交
701 702
	$executeContributedCommand<T>(id: string, ...args: any[]): Promise<T>;
	$getContributedCommandHandlerDescriptions(): Promise<{ [id: string]: string | ICommandHandlerDescription }>;
703 704
}

705
export interface ExtHostConfigurationShape {
706 707
	$initializeConfiguration(data: IConfigurationInitData): void;
	$acceptConfigurationChanged(data: IConfigurationInitData, eventData: IWorkspaceConfigurationChangeEventData): void;
708 709
}

710
export interface ExtHostDiagnosticsShape {
711 712 713

}

714
export interface ExtHostDocumentContentProvidersShape {
M
Matt Bierner 已提交
715
	$provideTextDocumentContent(handle: number, uri: UriComponents): Promise<string | null | undefined>;
716 717
}

718
export interface IModelAddedData {
719
	uri: UriComponents;
720
	versionId: number;
721 722
	lines: string[];
	EOL: string;
723 724 725
	modeId: string;
	isDirty: boolean;
}
726
export interface ExtHostDocumentsShape {
727 728 729 730
	$acceptModelModeChanged(strURL: UriComponents, oldModeId: string, newModeId: string): void;
	$acceptModelSaved(strURL: UriComponents): void;
	$acceptDirtyStateChanged(strURL: UriComponents, isDirty: boolean): void;
	$acceptModelChanged(strURL: UriComponents, e: IModelChangedEvent, isDirty: boolean): void;
731 732
}

733
export interface ExtHostDocumentSaveParticipantShape {
J
Johannes Rieken 已提交
734
	$participateInSave(resource: UriComponents, reason: SaveReason): Promise<boolean[]>;
735 736
}

737 738
export interface ITextEditorAddData {
	id: string;
739
	documentUri: UriComponents;
740
	options: IResolvedTextEditorConfiguration;
A
Alex Dima 已提交
741
	selections: ISelection[];
742
	visibleRanges: IRange[];
A
Alex Dima 已提交
743
	editorPosition: EditorViewColumn | undefined;
744 745
}
export interface ITextEditorPositionData {
746
	[id: string]: EditorViewColumn;
747
}
748 749 750
export interface IEditorPropertiesChangeData {
	options: IResolvedTextEditorConfiguration | null;
	selections: ISelectionChangeEvent | null;
751
	visibleRanges: IRange[] | null;
752 753 754 755 756 757
}
export interface ISelectionChangeEvent {
	selections: Selection[];
	source?: string;
}

758
export interface ExtHostEditorsShape {
759
	$acceptEditorPropertiesChanged(id: string, props: IEditorPropertiesChangeData): void;
760
	$acceptEditorPositionData(data: ITextEditorPositionData): void;
761 762
}

J
Johannes Rieken 已提交
763
export interface IDocumentsAndEditorsDelta {
764
	removedDocuments?: UriComponents[];
J
Johannes Rieken 已提交
765 766 767
	addedDocuments?: IModelAddedData[];
	removedEditors?: string[];
	addedEditors?: ITextEditorAddData[];
A
Alex Dima 已提交
768
	newActiveEditor?: string | null;
J
Johannes Rieken 已提交
769 770
}

771 772
export interface ExtHostDocumentsAndEditorsShape {
	$acceptDocumentsAndEditorsDelta(delta: IDocumentsAndEditorsDelta): void;
J
Johannes Rieken 已提交
773 774
}

775
export interface ExtHostTreeViewsShape {
J
Johannes Rieken 已提交
776
	$getChildren(treeViewId: string, treeItemHandle?: string): Promise<ITreeItem[]>;
777
	$setExpanded(treeViewId: string, treeItemHandle: string, expanded: boolean): void;
778
	$setSelection(treeViewId: string, treeItemHandles: string[]): void;
779
	$setVisible(treeViewId: string, visible: boolean): void;
S
Sandeep Somavarapu 已提交
780 781
}

782
export interface ExtHostWorkspaceShape {
783
	$initializeWorkspace(workspace: IWorkspaceData | null): void;
784
	$acceptWorkspaceData(workspace: IWorkspaceData | null): void;
J
Johannes Rieken 已提交
785
	$handleTextSearchResult(result: search.IRawFileMatch2, requestId: number): void;
786
}
787

788
export interface ExtHostFileSystemShape {
J
Johannes Rieken 已提交
789 790
	$stat(handle: number, resource: UriComponents): Promise<files.IStat>;
	$readdir(handle: number, resource: UriComponents): Promise<[string, files.FileType][]>;
J
Johannes Rieken 已提交
791
	$readFile(handle: number, resource: UriComponents): Promise<Buffer>;
J
Johannes Rieken 已提交
792 793 794
	$writeFile(handle: number, resource: UriComponents, content: Buffer, opts: files.FileWriteOptions): Promise<void>;
	$rename(handle: number, resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
	$copy(handle: number, resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
J
Johannes Rieken 已提交
795
	$mkdir(handle: number, resource: UriComponents): Promise<void>;
J
Johannes Rieken 已提交
796 797
	$delete(handle: number, resource: UriComponents, opts: files.FileDeleteOptions): Promise<void>;
	$watch(handle: number, session: number, resource: UriComponents, opts: files.IWatchOptions): void;
798
	$unwatch(handle: number, session: number): void;
J
Johannes Rieken 已提交
799
	$open(handle: number, resource: UriComponents, opts: files.FileOpenOptions): Promise<number>;
J
Johannes Rieken 已提交
800
	$close(handle: number, fd: number): Promise<void>;
801 802
	$read(handle: number, fd: number, pos: number, length: number): Promise<Buffer>;
	$write(handle: number, fd: number, pos: number, data: Buffer): Promise<number>;
803
}
804

805
export interface ExtHostSearchShape {
J
Johannes Rieken 已提交
806 807
	$provideFileSearchResults(handle: number, session: number, query: search.IRawQuery, token: CancellationToken): Promise<search.ISearchCompleteStats>;
	$provideTextSearchResults(handle: number, session: number, query: search.IRawTextQuery, token: CancellationToken): Promise<search.ISearchCompleteStats>;
J
Johannes Rieken 已提交
808
	$clearCache(cacheKey: string): Promise<void>;
809 810
}

811
export interface ExtHostExtensionServiceShape {
J
Johannes Rieken 已提交
812
	$resolveAuthority(remoteAuthority: string): Promise<ResolvedAuthority>;
813
	$startExtensionHost(enabledExtensionIds: ExtensionIdentifier[]): Promise<void>;
J
Johannes Rieken 已提交
814
	$activateByEvent(activationEvent: string): Promise<void>;
815
	$activate(extensionId: ExtensionIdentifier, activationEvent: string): Promise<boolean>;
816

817
	$deltaExtensions(toAdd: IExtensionDescription[], toRemove: ExtensionIdentifier[]): Promise<void>;
818 819 820 821

	$test_latency(n: number): Promise<number>;
	$test_up(b: Buffer): Promise<number>;
	$test_down(size: number): Promise<Buffer>;
822 823 824
}

export interface FileSystemEvents {
J
Johannes Rieken 已提交
825 826 827
	created: UriComponents[];
	changed: UriComponents[];
	deleted: UriComponents[];
828
}
829
export interface ExtHostFileSystemEventServiceShape {
830
	$onFileEvent(events: FileSystemEvents): void;
831
	$onFileRename(oldUri: UriComponents, newUri: UriComponents): void;
J
Johannes Rieken 已提交
832
	$onWillRename(oldUri: UriComponents, newUri: UriComponents): Promise<any>;
833 834
}

J
Johannes Rieken 已提交
835
export interface ObjectIdentifier {
836
	$ident?: number;
J
Johannes Rieken 已提交
837 838 839
}

export namespace ObjectIdentifier {
840
	export const name = '$ident';
J
Johannes Rieken 已提交
841
	export function mixin<T>(obj: T, id: number): T & ObjectIdentifier {
842
		Object.defineProperty(obj, name, { value: id, enumerable: true });
J
Johannes Rieken 已提交
843 844
		return <T & ObjectIdentifier>obj;
	}
845 846
	export function of(obj: any): number {
		return obj[name];
J
Johannes Rieken 已提交
847 848 849
	}
}

850 851
export interface ExtHostHeapServiceShape {
	$onGarbageCollection(ids: number[]): void;
852
}
853
export interface IRawColorInfo {
J
Joao Moreno 已提交
854
	color: [number, number, number, number];
855 856 857
	range: IRange;
}

858 859 860 861 862 863 864 865 866
export class IdObject {
	_id?: number;
	private static _n = 0;
	static mixin<T extends object>(object: T): T & IdObject {
		(<any>object)._id = IdObject._n++;
		return <any>object;
	}
}

867
export interface SuggestionDto extends modes.CompletionItem {
868 869 870 871
	_id: number;
	_parentId: number;
}

872 873
export interface SuggestResultDto extends IdObject {
	suggestions: SuggestionDto[];
874 875 876
	incomplete?: boolean;
}

877 878 879
export interface LocationDto {
	uri: UriComponents;
	range: IRange;
880 881
}

M
Matt Bierner 已提交
882
export interface DefinitionLinkDto {
J
Johannes Rieken 已提交
883
	originSelectionRange?: IRange;
M
Matt Bierner 已提交
884 885
	uri: UriComponents;
	range: IRange;
J
Johannes Rieken 已提交
886
	targetSelectionRange?: IRange;
M
Matt Bierner 已提交
887 888
}

889
export interface WorkspaceSymbolDto extends IdObject {
890 891 892 893 894 895 896
	name: string;
	containerName?: string;
	kind: modes.SymbolKind;
	location: LocationDto;
}

export interface WorkspaceSymbolsDto extends IdObject {
897
	symbols: WorkspaceSymbolDto[];
898 899
}

900
export interface ResourceFileEditDto {
M
Matt Bierner 已提交
901 902
	oldUri?: UriComponents;
	newUri?: UriComponents;
903 904 905 906 907 908
	options?: {
		overwrite?: boolean;
		ignoreIfExists?: boolean;
		ignoreIfNotExists?: boolean;
		recursive?: boolean;
	};
909 910 911
}

export interface ResourceTextEditDto {
912
	resource: UriComponents;
913 914
	modelVersionId?: number;
	edits: modes.TextEdit[];
915 916
}

917
export interface WorkspaceEditDto {
918
	edits: Array<ResourceFileEditDto | ResourceTextEditDto>;
919 920

	// todo@joh reject should go into rename
921 922 923
	rejectReason?: string;
}

A
Alex Dima 已提交
924
export function reviveWorkspaceEditDto(data: WorkspaceEditDto | undefined): modes.WorkspaceEdit {
925 926 927 928 929 930 931 932 933 934 935 936 937
	if (data && data.edits) {
		for (const edit of data.edits) {
			if (typeof (<ResourceTextEditDto>edit).resource === 'object') {
				(<ResourceTextEditDto>edit).resource = URI.revive((<ResourceTextEditDto>edit).resource);
			} else {
				(<ResourceFileEditDto>edit).newUri = URI.revive((<ResourceFileEditDto>edit).newUri);
				(<ResourceFileEditDto>edit).oldUri = URI.revive((<ResourceFileEditDto>edit).oldUri);
			}
		}
	}
	return <modes.WorkspaceEdit>data;
}

938 939
export type CommandDto = ObjectIdentifier & modes.Command;

940 941
export interface CodeActionDto {
	title: string;
942
	edit?: WorkspaceEditDto;
943
	diagnostics?: IMarkerData[];
944
	command?: CommandDto;
J
Johannes Rieken 已提交
945
	kind?: string;
946
	isPreferred?: boolean;
947
}
948

M
Martin Aeschlimann 已提交
949 950 951 952
export interface LinkDto extends ObjectIdentifier {
	range: IRange;
	url?: string | UriComponents;
}
953

954 955 956 957 958
export interface CodeLensDto extends ObjectIdentifier {
	range: IRange;
	id?: string;
	command?: CommandDto;
}
959

960
export type CodeInsetDto = ObjectIdentifier & codeInset.ICodeInsetSymbol;
R
Rob DeLine 已提交
961

962 963 964 965 966 967 968 969 970 971
export interface CallHierarchyDto {
	_id: number;
	kind: modes.SymbolKind;
	name: string;
	detail?: string;
	uri: UriComponents;
	range: IRange;
	selectionRange: IRange;
}

972
export interface ExtHostLanguageFeaturesShape {
973
	$provideDocumentSymbols(handle: number, resource: UriComponents, token: CancellationToken): Promise<modes.DocumentSymbol[] | undefined>;
974
	$provideCodeLenses(handle: number, resource: UriComponents, token: CancellationToken): Promise<CodeLensDto[]>;
M
Matt Bierner 已提交
975
	$resolveCodeLens(handle: number, resource: UriComponents, symbol: CodeLensDto, token: CancellationToken): Promise<CodeLensDto | undefined>;
976
	$provideCodeInsets(handle: number, resource: UriComponents, token: CancellationToken): Promise<CodeInsetDto[] | undefined>;
R
Rob DeLine 已提交
977
	$resolveCodeInset(handle: number, resource: UriComponents, symbol: CodeInsetDto, token: CancellationToken): Promise<CodeInsetDto>;
J
Johannes Rieken 已提交
978 979 980 981
	$provideDefinition(handle: number, resource: UriComponents, position: IPosition, token: CancellationToken): Promise<DefinitionLinkDto[]>;
	$provideDeclaration(handle: number, resource: UriComponents, position: IPosition, token: CancellationToken): Promise<DefinitionLinkDto[]>;
	$provideImplementation(handle: number, resource: UriComponents, position: IPosition, token: CancellationToken): Promise<DefinitionLinkDto[]>;
	$provideTypeDefinition(handle: number, resource: UriComponents, position: IPosition, token: CancellationToken): Promise<DefinitionLinkDto[]>;
982 983 984 985 986 987 988
	$provideHover(handle: number, resource: UriComponents, position: IPosition, token: CancellationToken): Promise<modes.Hover | undefined>;
	$provideDocumentHighlights(handle: number, resource: UriComponents, position: IPosition, token: CancellationToken): Promise<modes.DocumentHighlight[] | undefined>;
	$provideReferences(handle: number, resource: UriComponents, position: IPosition, context: modes.ReferenceContext, token: CancellationToken): Promise<LocationDto[] | undefined>;
	$provideCodeActions(handle: number, resource: UriComponents, rangeOrSelection: IRange | ISelection, context: modes.CodeActionContext, token: CancellationToken): Promise<CodeActionDto[] | undefined>;
	$provideDocumentFormattingEdits(handle: number, resource: UriComponents, options: modes.FormattingOptions, token: CancellationToken): Promise<ISingleEditOperation[] | undefined>;
	$provideDocumentRangeFormattingEdits(handle: number, resource: UriComponents, range: IRange, options: modes.FormattingOptions, token: CancellationToken): Promise<ISingleEditOperation[] | undefined>;
	$provideOnTypeFormattingEdits(handle: number, resource: UriComponents, position: IPosition, ch: string, options: modes.FormattingOptions, token: CancellationToken): Promise<ISingleEditOperation[] | undefined>;
J
Johannes Rieken 已提交
989
	$provideWorkspaceSymbols(handle: number, search: string, token: CancellationToken): Promise<WorkspaceSymbolsDto>;
990
	$resolveWorkspaceSymbol(handle: number, symbol: WorkspaceSymbolDto, token: CancellationToken): Promise<WorkspaceSymbolDto | undefined>;
991
	$releaseWorkspaceSymbols(handle: number, id: number): void;
992 993
	$provideRenameEdits(handle: number, resource: UriComponents, position: IPosition, newName: string, token: CancellationToken): Promise<WorkspaceEditDto | undefined>;
	$resolveRenameLocation(handle: number, resource: UriComponents, position: IPosition, token: CancellationToken): Promise<modes.RenameLocation | undefined>;
994
	$provideCompletionItems(handle: number, resource: UriComponents, position: IPosition, context: modes.CompletionContext, token: CancellationToken): Promise<SuggestResultDto | undefined>;
J
Johannes Rieken 已提交
995
	$resolveCompletionItem(handle: number, resource: UriComponents, position: IPosition, suggestion: modes.CompletionItem, token: CancellationToken): Promise<modes.CompletionItem>;
996
	$releaseCompletionItems(handle: number, id: number): void;
997 998 999
	$provideSignatureHelp(handle: number, resource: UriComponents, position: IPosition, context: modes.SignatureHelpContext, token: CancellationToken): Promise<modes.SignatureHelp | undefined>;
	$provideDocumentLinks(handle: number, resource: UriComponents, token: CancellationToken): Promise<LinkDto[] | undefined>;
	$resolveDocumentLink(handle: number, link: LinkDto, token: CancellationToken): Promise<LinkDto | undefined>;
J
Johannes Rieken 已提交
1000
	$provideDocumentColors(handle: number, resource: UriComponents, token: CancellationToken): Promise<IRawColorInfo[]>;
M
Matt Bierner 已提交
1001 1002
	$provideColorPresentations(handle: number, resource: UriComponents, colorInfo: IRawColorInfo, token: CancellationToken): Promise<modes.IColorPresentation[] | undefined>;
	$provideFoldingRanges(handle: number, resource: UriComponents, context: modes.FoldingContext, token: CancellationToken): Promise<modes.FoldingRange[] | undefined>;
1003
	$provideSelectionRanges(handle: number, resource: UriComponents, positions: IPosition[], token: CancellationToken): Promise<modes.SelectionRange[][]>;
1004 1005
	$provideCallHierarchyItem(handle: number, resource: UriComponents, position: IPosition, token: CancellationToken): Promise<CallHierarchyDto | undefined>;
	$resolveCallHierarchyItem(handle: number, item: callHierarchy.CallHierarchyItem, direction: callHierarchy.CallHierarchyDirection, token: CancellationToken): Promise<[CallHierarchyDto, modes.Location[]][]>;
1006 1007
}

1008 1009
export interface ExtHostQuickOpenShape {
	$onItemSelected(handle: number): void;
M
Matt Bierner 已提交
1010
	$validateInput(input: string): Promise<string | null | undefined>;
1011 1012 1013
	$onDidChangeActive(sessionId: number, handles: number[]): void;
	$onDidChangeSelection(sessionId: number, handles: number[]): void;
	$onDidAccept(sessionId: number): void;
1014
	$onDidChangeValue(sessionId: number, value: string): void;
C
Christof Marti 已提交
1015
	$onDidTriggerButton(sessionId: number, handle: number): void;
1016
	$onDidHide(sessionId: number): void;
1017 1018
}

1019 1020 1021 1022
export interface ShellLaunchConfigDto {
	name?: string;
	executable?: string;
	args?: string[] | string;
1023
	cwd?: string | UriComponents;
1024
	env?: { [key: string]: string | null };
1025 1026
}

1027 1028
export interface ExtHostTerminalServiceShape {
	$acceptTerminalClosed(id: number): void;
1029
	$acceptTerminalOpened(id: number, name: string): void;
1030
	$acceptActiveTerminalChanged(id: number | null): void;
1031
	$acceptTerminalProcessId(id: number, processId: number): void;
A
Alex Dima 已提交
1032
	$acceptTerminalProcessData(id: number, data: string): void;
D
Daniel Imms 已提交
1033
	$acceptTerminalRendererInput(id: number, data: string): void;
1034
	$acceptTerminalTitleChange(id: number, name: string): void;
1035
	$acceptTerminalDimensions(id: number, cols: number, rows: number): void;
1036
	$createProcess(id: number, shellLaunchConfig: ShellLaunchConfigDto, activeWorkspaceRootUri: UriComponents, cols: number, rows: number): void;
D
Daniel Imms 已提交
1037 1038
	$acceptProcessInput(id: number, data: string): void;
	$acceptProcessResize(id: number, cols: number, rows: number): void;
1039
	$acceptProcessShutdown(id: number, immediate: boolean): void;
1040 1041
	$acceptProcessRequestInitialCwd(id: number): void;
	$acceptProcessRequestCwd(id: number): void;
1042
	$acceptProcessRequestLatency(id: number): number;
1043 1044
}

1045
export interface ExtHostSCMShape {
M
Matt Bierner 已提交
1046
	$provideOriginalResource(sourceControlHandle: number, uri: UriComponents, token: CancellationToken): Promise<UriComponents | null>;
A
Alex Dima 已提交
1047
	$onInputBoxValueChange(sourceControlHandle: number, value: string): void;
J
Johannes Rieken 已提交
1048 1049 1050
	$executeResourceCommand(sourceControlHandle: number, groupHandle: number, handle: number): Promise<void>;
	$validateInput(sourceControlHandle: number, value: string, cursorPosition: number): Promise<[string, number] | undefined>;
	$setSelectedSourceControls(selectedSourceControlHandles: number[]): Promise<void>;
J
Joao Moreno 已提交
1051 1052
}

1053
export interface ExtHostTaskShape {
J
Johannes Rieken 已提交
1054 1055 1056 1057 1058
	$provideTasks(handle: number, validTypes: { [key: string]: boolean; }): Thenable<tasks.TaskSetDTO>;
	$onDidStartTask(execution: tasks.TaskExecutionDTO, terminalId: number): void;
	$onDidStartTaskProcess(value: tasks.TaskProcessStartedDTO): void;
	$onDidEndTaskProcess(value: tasks.TaskProcessEndedDTO): void;
	$OnDidEndTask(execution: tasks.TaskExecutionDTO): void;
J
Johannes Rieken 已提交
1059
	$resolveVariables(workspaceFolder: UriComponents, toResolve: { process?: { name: string; cwd?: string }, variables: string[] }): Promise<{ process?: string; variables: { [key: string]: string } }>;
1060 1061
}

1062 1063
export interface IBreakpointDto {
	type: string;
1064
	id?: string;
1065 1066 1067
	enabled: boolean;
	condition?: string;
	hitCondition?: string;
1068 1069 1070 1071 1072
	logMessage?: string;
}

export interface IFunctionBreakpointDto extends IBreakpointDto {
	type: 'function';
1073
	functionName: string;
1074 1075
}

1076
export interface ISourceBreakpointDto extends IBreakpointDto {
1077
	type: 'source';
1078
	uri: UriComponents;
1079 1080
	line: number;
	character: number;
1081 1082
}

1083
export interface IBreakpointsDeltaDto {
1084
	added?: Array<ISourceBreakpointDto | IFunctionBreakpointDto>;
1085
	removed?: string[];
1086
	changed?: Array<ISourceBreakpointDto | IFunctionBreakpointDto>;
1087 1088
}

1089 1090 1091 1092
export interface ISourceMultiBreakpointDto {
	type: 'sourceMulti';
	uri: UriComponents;
	lines: {
1093
		id: string;
1094 1095 1096
		enabled: boolean;
		condition?: string;
		hitCondition?: string;
1097
		logMessage?: string;
1098 1099 1100
		line: number;
		character: number;
	}[];
1101 1102
}

A
Andre Weinand 已提交
1103
export interface IDebugSessionFullDto {
1104 1105 1106
	id: DebugSessionUUID;
	type: string;
	name: string;
1107
	folderUri: UriComponents | undefined;
A
Andre Weinand 已提交
1108
	configuration: IConfig;
1109 1110
}

A
Andre Weinand 已提交
1111 1112
export type IDebugSessionDto = IDebugSessionFullDto | DebugSessionUUID;

1113
export interface ExtHostDebugServiceShape {
J
Johannes Rieken 已提交
1114 1115 1116 1117
	$substituteVariables(folder: UriComponents | undefined, config: IConfig): Promise<IConfig>;
	$runInTerminal(args: DebugProtocol.RunInTerminalRequestArguments, config: ITerminalSettings): Promise<number | undefined>;
	$startDASession(handle: number, session: IDebugSessionDto): Promise<void>;
	$stopDASession(handle: number): Promise<void>;
1118
	$sendDAMessage(handle: number, message: DebugProtocol.ProtocolMessage): void;
1119
	$resolveDebugConfiguration(handle: number, folder: UriComponents | undefined, debugConfiguration: IConfig): Promise<IConfig | null | undefined>;
J
Johannes Rieken 已提交
1120 1121 1122
	$provideDebugConfigurations(handle: number, folder: UriComponents | undefined): Promise<IConfig[]>;
	$legacyDebugAdapterExecutable(handle: number, folderUri: UriComponents | undefined): Promise<IAdapterDescriptor>; // TODO@AW legacy
	$provideDebugAdapter(handle: number, session: IDebugSessionDto): Promise<IAdapterDescriptor>;
1123 1124
	$acceptDebugSessionStarted(session: IDebugSessionDto): void;
	$acceptDebugSessionTerminated(session: IDebugSessionDto): void;
1125
	$acceptDebugSessionActiveChanged(session: IDebugSessionDto | undefined): void;
1126 1127
	$acceptDebugSessionCustomEvent(session: IDebugSessionDto, event: any): void;
	$acceptBreakpointsDelta(delta: IBreakpointsDeltaDto): void;
1128 1129
}

1130

1131 1132 1133 1134 1135 1136
export interface DecorationRequest {
	readonly id: number;
	readonly handle: number;
	readonly uri: UriComponents;
}

1137
export type DecorationData = [number, boolean, string, string, ThemeColor, string];
1138
export type DecorationReply = { [id: number]: DecorationData };
1139 1140

export interface ExtHostDecorationsShape {
J
Johannes Rieken 已提交
1141
	$provideDecorations(requests: DecorationRequest[], token: CancellationToken): Promise<DecorationReply>;
1142 1143
}

1144 1145
export interface ExtHostWindowShape {
	$onDidChangeWindowFocus(value: boolean): void;
1146 1147
}

S
Sandeep Somavarapu 已提交
1148
export interface ExtHostLogServiceShape {
A
Alex Dima 已提交
1149
	$setLevel(level: LogLevel): void;
S
Sandeep Somavarapu 已提交
1150 1151
}

1152 1153 1154 1155
export interface ExtHostOutputServiceShape {
	$setVisibleChannel(channelId: string | null): void;
}

1156 1157 1158 1159
export interface ExtHostProgressShape {
	$acceptProgressCanceled(handle: number): void;
}

M
Matt Bierner 已提交
1160
export interface ExtHostCommentsShape {
1161
	$provideDocumentComments(handle: number, document: UriComponents): Promise<modes.CommentInfo | null>;
1162
	$createNewCommentThread(handle: number, document: UriComponents, range: IRange, text: string): Promise<modes.CommentThread | null>;
1163
	$onCommentWidgetInputChange(commentControllerHandle: number, input: string | undefined): Promise<number | undefined>;
P
Peng Lyu 已提交
1164
	$provideCommentingRanges(commentControllerHandle: number, uriComponents: UriComponents, token: CancellationToken): Promise<IRange[] | undefined>;
P
Peng Lyu 已提交
1165 1166
	$provideReactionGroup(commentControllerHandle: number): Promise<modes.CommentReaction[] | undefined>;
	$toggleReaction(commentControllerHandle: number, threadHandle: number, uri: UriComponents, comment: modes.Comment, reaction: modes.CommentReaction): Promise<void>;
1167
	$createNewCommentWidgetCallback(commentControllerHandle: number, uriComponents: UriComponents, range: IRange, token: CancellationToken): Promise<void>;
1168
	$replyToCommentThread(handle: number, document: UriComponents, range: IRange, commentThread: modes.CommentThread, text: string): Promise<modes.CommentThread | null>;
J
Johannes Rieken 已提交
1169 1170
	$editComment(handle: number, document: UriComponents, comment: modes.Comment, text: string): Promise<void>;
	$deleteComment(handle: number, document: UriComponents, comment: modes.Comment): Promise<void>;
1171 1172 1173
	$startDraft(handle: number, document: UriComponents): Promise<void>;
	$deleteDraft(handle: number, document: UriComponents): Promise<void>;
	$finishDraft(handle: number, document: UriComponents): Promise<void>;
P
Peng Lyu 已提交
1174 1175
	$addReaction(handle: number, document: UriComponents, comment: modes.Comment, reaction: modes.CommentReaction): Promise<void>;
	$deleteReaction(handle: number, document: UriComponents, comment: modes.Comment, reaction: modes.CommentReaction): Promise<void>;
1176
	$provideWorkspaceComments(handle: number): Promise<modes.CommentThread[] | null>;
M
Matt Bierner 已提交
1177 1178
}

1179
export interface ExtHostStorageShape {
1180
	$acceptValue(shared: boolean, key: string, value: object | undefined): void;
1181 1182
}

1183 1184 1185
// --- proxy identifiers

export const MainContext = {
1186 1187
	MainThreadClipboard: createMainId<MainThreadClipboardShape>('MainThreadClipboard'),
	MainThreadCommands: createMainId<MainThreadCommandsShape>('MainThreadCommands'),
M
Matt Bierner 已提交
1188
	MainThreadComments: createMainId<MainThreadCommentsShape>('MainThreadComments'),
1189
	MainThreadConfiguration: createMainId<MainThreadConfigurationShape>('MainThreadConfiguration'),
1190
	MainThreadConsole: createMainId<MainThreadConsoleShape>('MainThreadConsole'),
1191
	MainThreadDebugService: createMainId<MainThreadDebugServiceShape>('MainThreadDebugService'),
1192 1193 1194 1195
	MainThreadDecorations: createMainId<MainThreadDecorationsShape>('MainThreadDecorations'),
	MainThreadDiagnostics: createMainId<MainThreadDiagnosticsShape>('MainThreadDiagnostics'),
	MainThreadDialogs: createMainId<MainThreadDiaglogsShape>('MainThreadDiaglogs'),
	MainThreadDocuments: createMainId<MainThreadDocumentsShape>('MainThreadDocuments'),
1196
	MainThreadDocumentContentProviders: createMainId<MainThreadDocumentContentProvidersShape>('MainThreadDocumentContentProviders'),
1197
	MainThreadTextEditors: createMainId<MainThreadTextEditorsShape>('MainThreadTextEditors'),
1198 1199
	MainThreadErrors: createMainId<MainThreadErrorsShape>('MainThreadErrors'),
	MainThreadTreeViews: createMainId<MainThreadTreeViewsShape>('MainThreadTreeViews'),
1200
	MainThreadLanguageFeatures: createMainId<MainThreadLanguageFeaturesShape>('MainThreadLanguageFeatures'),
1201
	MainThreadLanguages: createMainId<MainThreadLanguagesShape>('MainThreadLanguages'),
1202
	MainThreadMessageService: createMainId<MainThreadMessageServiceShape>('MainThreadMessageService'),
1203 1204
	MainThreadOutputService: createMainId<MainThreadOutputServiceShape>('MainThreadOutputService'),
	MainThreadProgress: createMainId<MainThreadProgressShape>('MainThreadProgress'),
1205
	MainThreadQuickOpen: createMainId<MainThreadQuickOpenShape>('MainThreadQuickOpen'),
1206
	MainThreadStatusBar: createMainId<MainThreadStatusBarShape>('MainThreadStatusBar'),
1207
	MainThreadStorage: createMainId<MainThreadStorageShape>('MainThreadStorage'),
1208
	MainThreadTelemetry: createMainId<MainThreadTelemetryShape>('MainThreadTelemetry'),
1209
	MainThreadTerminalService: createMainId<MainThreadTerminalServiceShape>('MainThreadTerminalService'),
M
Matt Bierner 已提交
1210
	MainThreadWebviews: createMainId<MainThreadWebviewsShape>('MainThreadWebviews'),
J
Joao Moreno 已提交
1211
	MainThreadUrls: createMainId<MainThreadUrlsShape>('MainThreadUrls'),
1212
	MainThreadWorkspace: createMainId<MainThreadWorkspaceShape>('MainThreadWorkspace'),
1213
	MainThreadFileSystem: createMainId<MainThreadFileSystemShape>('MainThreadFileSystem'),
1214
	MainThreadExtensionService: createMainId<MainThreadExtensionServiceShape>('MainThreadExtensionService'),
J
Joao Moreno 已提交
1215
	MainThreadSCM: createMainId<MainThreadSCMShape>('MainThreadSCM'),
1216
	MainThreadSearch: createMainId<MainThreadSearchShape>('MainThreadSearch'),
1217
	MainThreadTask: createMainId<MainThreadTaskShape>('MainThreadTask'),
1218
	MainThreadWindow: createMainId<MainThreadWindowShape>('MainThreadWindow'),
1219 1220 1221
};

export const ExtHostContext = {
1222
	ExtHostCommands: createExtId<ExtHostCommandsShape>('ExtHostCommands'),
1223
	ExtHostConfiguration: createExtId<ExtHostConfigurationShape>('ExtHostConfiguration'),
1224
	ExtHostDiagnostics: createExtId<ExtHostDiagnosticsShape>('ExtHostDiagnostics'),
1225
	ExtHostDebugService: createExtId<ExtHostDebugServiceShape>('ExtHostDebugService'),
J
Johannes Rieken 已提交
1226
	ExtHostDecorations: createExtId<ExtHostDecorationsShape>('ExtHostDecorations'),
1227
	ExtHostDocumentsAndEditors: createExtId<ExtHostDocumentsAndEditorsShape>('ExtHostDocumentsAndEditors'),
1228
	ExtHostDocuments: createExtId<ExtHostDocumentsShape>('ExtHostDocuments'),
J
Johannes Rieken 已提交
1229
	ExtHostDocumentContentProviders: createExtId<ExtHostDocumentContentProvidersShape>('ExtHostDocumentContentProviders'),
J
Johannes Rieken 已提交
1230
	ExtHostDocumentSaveParticipant: createExtId<ExtHostDocumentSaveParticipantShape>('ExtHostDocumentSaveParticipant'),
J
Johannes Rieken 已提交
1231
	ExtHostEditors: createExtId<ExtHostEditorsShape>('ExtHostEditors'),
1232
	ExtHostTreeViews: createExtId<ExtHostTreeViewsShape>('ExtHostTreeViews'),
J
Johannes Rieken 已提交
1233
	ExtHostFileSystem: createExtId<ExtHostFileSystemShape>('ExtHostFileSystem'),
J
Johannes Rieken 已提交
1234
	ExtHostFileSystemEventService: createExtId<ExtHostFileSystemEventServiceShape>('ExtHostFileSystemEventService'),
1235
	ExtHostHeapService: createExtId<ExtHostHeapServiceShape>('ExtHostHeapMonitor'),
1236
	ExtHostLanguageFeatures: createExtId<ExtHostLanguageFeaturesShape>('ExtHostLanguageFeatures'),
1237 1238
	ExtHostQuickOpen: createExtId<ExtHostQuickOpenShape>('ExtHostQuickOpen'),
	ExtHostExtensionService: createExtId<ExtHostExtensionServiceShape>('ExtHostExtensionService'),
1239
	ExtHostLogService: createExtId<ExtHostLogServiceShape>('ExtHostLogService'),
1240
	ExtHostTerminalService: createExtId<ExtHostTerminalServiceShape>('ExtHostTerminalService'),
J
Joao Moreno 已提交
1241
	ExtHostSCM: createExtId<ExtHostSCMShape>('ExtHostSCM'),
1242
	ExtHostSearch: createExtId<ExtHostSearchShape>('ExtHostSearch'),
1243
	ExtHostTask: createExtId<ExtHostTaskShape>('ExtHostTask'),
1244
	ExtHostWorkspace: createExtId<ExtHostWorkspaceShape>('ExtHostWorkspace'),
1245
	ExtHostWindow: createExtId<ExtHostWindowShape>('ExtHostWindow'),
1246
	ExtHostWebviews: createExtId<ExtHostWebviewsShape>('ExtHostWebviews'),
M
Matt Bierner 已提交
1247
	ExtHostProgress: createMainId<ExtHostProgressShape>('ExtHostProgress'),
1248
	ExtHostComments: createMainId<ExtHostCommentsShape>('ExtHostComments'),
1249
	ExtHostStorage: createMainId<ExtHostStorageShape>('ExtHostStorage'),
1250 1251
	ExtHostUrls: createExtId<ExtHostUrlsShape>('ExtHostUrls'),
	ExtHostOutputService: createMainId<ExtHostOutputServiceShape>('ExtHostOutputService'),
1252
};