extHost.protocol.ts 56.9 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
	appRoot?: URI;
	appSettingsHome?: URI;
54
	extensionDevelopmentLocationURI?: URI | 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 127
	$createCommentThread(handle: number, commentThreadHandle: number, threadId: string, resource: UriComponents, range: IRange): modes.CommentThread2 | undefined;
	$updateCommentThread(handle: number, commentThreadHandle: number, threadId: string, resource: UriComponents, range: IRange, label: string, comments: modes.Comment[], acceptInputCommand: modes.Command | undefined, additionalCommands: modes.Command[], deleteCommand: modes.Command | undefined, collapseState: modes.CommentThreadCollapsibleState): void;
P
Peng Lyu 已提交
128
	$deleteCommentThread(handle: number, commentThreadHandle: number): void;
P
Peng Lyu 已提交
129
	$setInputValue(handle: number, input: string): void;
R
rebornix 已提交
130
	$registerDocumentCommentProvider(handle: number, features: CommentProviderFeatures): void;
131
	$unregisterDocumentCommentProvider(handle: number): void;
132
	$registerWorkspaceCommentProvider(handle: number, extensionId: ExtensionIdentifier): void;
133
	$unregisterWorkspaceCommentProvider(handle: number): void;
134
	$onDidCommentThreadsChange(handle: number, event: modes.CommentThreadChangedEvent): void;
M
Matt Bierner 已提交
135 136
}

137
export interface MainThreadConfigurationShape extends IDisposable {
138 139
	$updateConfigurationOption(target: ConfigurationTarget | null, key: string, value: any, resource: UriComponents | undefined): Promise<void>;
	$removeConfigurationOption(target: ConfigurationTarget | null, key: string, resource: UriComponents | undefined): Promise<void>;
140 141
}

142
export interface MainThreadDiagnosticsShape extends IDisposable {
143
	$changeMany(owner: string, entries: [UriComponents, IMarkerData[] | undefined][]): void;
144
	$clear(owner: string): void;
145 146
}

147
export interface MainThreadDialogOpenOptions {
148
	defaultUri?: UriComponents;
149
	openLabel?: string;
150 151 152
	canSelectFiles?: boolean;
	canSelectFolders?: boolean;
	canSelectMany?: boolean;
J
Johannes Rieken 已提交
153
	filters?: { [name: string]: string[] };
154 155
}

156
export interface MainThreadDialogSaveOptions {
157
	defaultUri?: UriComponents;
158
	saveLabel?: string;
J
Johannes Rieken 已提交
159
	filters?: { [name: string]: string[] };
160 161
}

162
export interface MainThreadDiaglogsShape extends IDisposable {
163 164
	$showOpenDialog(options: MainThreadDialogOpenOptions): Promise<UriComponents[] | undefined>;
	$showSaveDialog(options: MainThreadDialogSaveOptions): Promise<UriComponents | undefined>;
165 166
}

167 168 169
export interface MainThreadDecorationsShape extends IDisposable {
	$registerDecorationProvider(handle: number, label: string): void;
	$unregisterDecorationProvider(handle: number): void;
170
	$onDidChange(handle: number, resources: UriComponents[] | null): void;
171 172
}

173
export interface MainThreadDocumentContentProvidersShape extends IDisposable {
174 175
	$registerTextContentProvider(handle: number, scheme: string): void;
	$unregisterTextContentProvider(handle: number): void;
176
	$onVirtualDocumentChange(uri: UriComponents, value: string): void;
177 178
}

179
export interface MainThreadDocumentsShape extends IDisposable {
J
Johannes Rieken 已提交
180 181 182
	$tryCreateDocument(options?: { language?: string; content?: string; }): Promise<UriComponents>;
	$tryOpenDocument(uri: UriComponents): Promise<void>;
	$trySaveDocument(uri: UriComponents): Promise<boolean>;
183 184
}

185 186
export interface ITextEditorConfigurationUpdate {
	tabSize?: number | 'auto';
A
Alex Dima 已提交
187
	indentSize?: number | 'tabSize';
188 189
	insertSpaces?: boolean | 'auto';
	cursorStyle?: TextEditorCursorStyle;
190
	lineNumbers?: RenderLineNumbersType;
191 192 193 194
}

export interface IResolvedTextEditorConfiguration {
	tabSize: number;
D
David Lechner 已提交
195
	indentSize: number;
196 197
	insertSpaces: boolean;
	cursorStyle: TextEditorCursorStyle;
198
	lineNumbers: RenderLineNumbersType;
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
}

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 已提交
214
	setEndOfLine?: EndOfLineSequence;
215 216
}

217
export interface ITextDocumentShowOptions {
218
	position?: EditorViewColumn;
219 220
	preserveFocus?: boolean;
	pinned?: boolean;
221
	selection?: IRange;
222 223
}

224
export interface MainThreadTextEditorsShape extends IDisposable {
225
	$tryShowTextDocument(resource: UriComponents, options: ITextDocumentShowOptions): Promise<string | undefined>;
226 227
	$registerTextEditorDecorationType(key: string, options: editorCommon.IDecorationRenderOptions): void;
	$removeTextEditorDecorationType(key: string): void;
J
Johannes Rieken 已提交
228 229 230 231 232 233 234 235 236 237 238
	$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[]>;
239 240
}

241
export interface MainThreadTreeViewsShape extends IDisposable {
242
	$registerTreeViewDataProvider(treeViewId: string, options: { showCollapseAll: boolean }): void;
J
Johannes Rieken 已提交
243 244
	$refresh(treeViewId: string, itemsToRefresh?: { [treeItemHandle: string]: ITreeItem }): Promise<void>;
	$reveal(treeViewId: string, treeItem: ITreeItem, parentChain: ITreeItem[], options: IRevealOptions): Promise<void>;
245
	$setMessage(treeViewId: string, message: string | IMarkdownString): void;
246 247
}

248
export interface MainThreadErrorsShape extends IDisposable {
249
	$onUnexpectedError(err: any | SerializedError): void;
250 251
}

252
export interface MainThreadConsoleShape extends IDisposable {
253
	$logExtensionHostMessage(msg: IRemoteConsoleLog): void;
254 255
}

A
Alex Dima 已提交
256 257 258 259 260 261 262
export interface MainThreadKeytarShape extends IDisposable {
	$getPassword(service: string, account: string): Promise<string | null>;
	$setPassword(service: string, account: string, password: string): Promise<void>;
	$deletePassword(service: string, account: string): Promise<boolean>;
	$findPassword(service: string): Promise<string | null>;
}

263 264 265 266 267 268 269 270 271 272 273 274 275
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;
276
	oneLineAboveText?: ISerializedRegExp;
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 302
	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[];
		}[];
	};
}

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

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

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

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

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

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

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

361
export interface MainThreadOutputServiceShape extends IDisposable {
J
Johannes Rieken 已提交
362
	$register(label: string, log: boolean, file?: UriComponents): Promise<string>;
363 364 365 366 367 368
	$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;
369 370
}

371
export interface MainThreadProgressShape extends IDisposable {
372

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

378
export interface MainThreadTerminalServiceShape extends IDisposable {
379
	$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 已提交
380
	$createTerminalRenderer(name: string): Promise<number>;
381 382 383 384
	$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 已提交
385
	$registerOnDataListener(terminalId: number): void;
386

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

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

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

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

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 已提交
433
	buttons?: TransferQuickInputButton[];
434

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

437 438 439 440
	activeItems?: number[];

	selectedItems?: number[];

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

	ignoreFocusOut?: boolean;

	matchOnDescription?: boolean;

	matchOnDetail?: boolean;
}

export interface TransferInputBox extends BaseTransferQuickInput {

	type?: 'inputBox';

	value?: string;

	placeholder?: string;

	password?: boolean;

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

	prompt?: string;

	validationMessage?: string;
}

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

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

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

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

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

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

501 502
export type WebviewInsetHandle = number;

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

M
Matt Bierner 已提交
508
export interface MainThreadWebviewsShape extends IDisposable {
509
	$createWebviewPanel(handle: WebviewPanelHandle, viewType: string, title: string, showOptions: WebviewPanelShowOptions, options: modes.IWebviewPanelOptions & modes.IWebviewOptions, extensionId: ExtensionIdentifier, extensionLocation: UriComponents): void;
510
	$createWebviewCodeInset(handle: WebviewInsetHandle, symbolId: string, options: modes.IWebviewOptions, extensionId: ExtensionIdentifier | undefined, extensionLocation: UriComponents | undefined): void;
511
	$disposeWebview(handle: WebviewPanelHandle): void;
M
Matt Bierner 已提交
512
	$reveal(handle: WebviewPanelHandle, showOptions: WebviewPanelShowOptions): void;
513
	$setTitle(handle: WebviewPanelHandle, value: string): void;
514
	$setIconPath(handle: WebviewPanelHandle, value: { light: UriComponents, dark: UriComponents } | undefined): void;
515 516

	$setHtml(handle: WebviewPanelHandle | WebviewInsetHandle, value: string): void;
517
	$setOptions(handle: WebviewPanelHandle | WebviewInsetHandle, options: modes.IWebviewOptions): void;
518
	$postMessage(handle: WebviewPanelHandle | WebviewInsetHandle, value: any): Promise<boolean>;
519 520 521

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

M
Matt Bierner 已提交
524 525 526 527 528 529
export interface WebviewPanelViewState {
	readonly active: boolean;
	readonly visible: boolean;
	readonly position: EditorViewColumn;
}

M
Matt Bierner 已提交
530
export interface ExtHostWebviewsShape {
531
	$onMessage(handle: WebviewPanelHandle, message: any): void;
M
Matt Bierner 已提交
532
	$onDidChangeWebviewPanelViewState(handle: WebviewPanelHandle, newState: WebviewPanelViewState): void;
J
Johannes Rieken 已提交
533
	$onDidDisposeWebviewPanel(handle: WebviewPanelHandle): Promise<void>;
534
	$deserializeWebviewPanel(newWebviewHandle: WebviewPanelHandle, viewType: string, title: string, state: any, position: EditorViewColumn, options: modes.IWebviewOptions): Promise<void>;
M
Matt Bierner 已提交
535 536
}

J
Joao Moreno 已提交
537
export interface MainThreadUrlsShape extends IDisposable {
538
	$registerUriHandler(handle: number, extensionId: ExtensionIdentifier): Promise<void>;
J
Johannes Rieken 已提交
539
	$unregisterUriHandler(handle: number): Promise<void>;
J
Joao Moreno 已提交
540 541 542
}

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

546 547 548 549
export interface ITextSearchComplete {
	limitHit?: boolean;
}

550
export interface MainThreadWorkspaceShape extends IDisposable {
551
	$startFileSearch(includePattern: string | undefined, includeFolder: UriComponents | undefined, excludePatternOrDisregardExcludes: string | false | undefined, maxResults: number | undefined, token: CancellationToken): Promise<UriComponents[] | undefined>;
552
	$startTextSearch(query: search.IPatternInfo, options: ITextQueryBuilderOptions, requestId: number, token: CancellationToken): Promise<ITextSearchComplete>;
J
Johannes Rieken 已提交
553 554 555
	$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>;
556
	$resolveProxy(url: string): Promise<string | undefined>;
557
}
558

J
Johannes Rieken 已提交
559 560
export interface IFileChangeDto {
	resource: UriComponents;
J
Johannes Rieken 已提交
561
	type: files.FileChangeType;
J
Johannes Rieken 已提交
562 563
}

564
export interface MainThreadFileSystemShape extends IDisposable {
J
Johannes Rieken 已提交
565
	$registerFileSystemProvider(handle: number, scheme: string, capabilities: files.FileSystemProviderCapabilities): void;
566
	$unregisterProvider(handle: number): void;
567 568
	$registerResourceLabelFormatter(handle: number, formatter: ResourceLabelFormatter): void;
	$unregisterResourceLabelFormatter(handle: number): void;
J
Johannes Rieken 已提交
569
	$onFileSystemChange(handle: number, resource: IFileChangeDto[]): void;
570
}
J
Johannes Rieken 已提交
571

572
export interface MainThreadSearchShape extends IDisposable {
573 574
	$registerFileSearchProvider(handle: number, scheme: string): void;
	$registerTextSearchProvider(handle: number, scheme: string): void;
575
	$unregisterProvider(handle: number): void;
576
	$handleFileMatch(handle: number, session: number, data: UriComponents[]): void;
J
Johannes Rieken 已提交
577
	$handleTextMatch(handle: number, session: number, data: search.IRawFileMatch2[]): void;
578
	$handleTelemetry(eventName: string, data: any): void;
579 580
}

581
export interface MainThreadTaskShape extends IDisposable {
J
Johannes Rieken 已提交
582
	$createTaskId(task: tasks.TaskDTO): Promise<string>;
J
Johannes Rieken 已提交
583 584
	$registerTaskProvider(handle: number): Promise<void>;
	$unregisterTaskProvider(handle: number): Promise<void>;
J
Johannes Rieken 已提交
585 586
	$fetchTasks(filter?: tasks.TaskFilterDTO): Promise<tasks.TaskDTO[]>;
	$executeTask(task: tasks.TaskHandleDTO | tasks.TaskDTO): Promise<tasks.TaskExecutionDTO>;
J
Johannes Rieken 已提交
587
	$terminateTask(id: string): Promise<void>;
J
Johannes Rieken 已提交
588
	$registerTaskSystem(scheme: string, info: tasks.TaskSystemInfoDTO): void;
G
Gabriel DeBacker 已提交
589
	$customExecutionComplete(id: string, result?: number): Promise<void>;
590 591
}

592
export interface MainThreadExtensionServiceShape extends IDisposable {
A
Alex Dima 已提交
593
	$activateExtension(extensionId: ExtensionIdentifier, activationEvent: string | null): Promise<void>;
594
	$onWillActivateExtension(extensionId: ExtensionIdentifier): void;
A
Alex Dima 已提交
595
	$onDidActivateExtension(extensionId: ExtensionIdentifier, startup: boolean, codeLoadingTime: number, activateCallTime: number, activateResolvedTime: number, activationEvent: string | null): void;
596
	$onExtensionActivationError(extensionId: ExtensionIdentifier, error: ExtensionActivationError): Promise<void>;
597
	$onExtensionRuntimeError(extensionId: ExtensionIdentifier, error: SerializedError): void;
A
Alex Dima 已提交
598
	$onExtensionHostExit(code: number): void;
599 600
}

J
Joao Moreno 已提交
601
export interface SCMProviderFeatures {
J
Joao Moreno 已提交
602 603
	hasQuickDiffProvider?: boolean;
	count?: number;
604 605
	commitTemplate?: string;
	acceptInputCommand?: modes.Command;
J
Joao Moreno 已提交
606
	statusBarCommands?: CommandDto[];
J
Joao Moreno 已提交
607 608 609 610
}

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

J
Joao Moreno 已提交
613
export type SCMRawResource = [
614
	number /*handle*/,
615
	UriComponents /*resourceUri*/,
J
Joao Moreno 已提交
616
	string[] /*icons: light, dark*/,
617
	string /*tooltip*/,
618
	boolean /*strike through*/,
619 620
	boolean /*faded*/,

J
Joao Moreno 已提交
621 622 623
	string | undefined /*source*/,
	string | undefined /*letter*/,
	ThemeColor | null /*color*/
J
Joao Moreno 已提交
624
];
625

626 627 628
export type SCMRawResourceSplice = [
	number /* start */,
	number /* delete count */,
J
Joao 已提交
629 630 631
	SCMRawResource[]
];

632 633 634 635 636
export type SCMRawResourceSplices = [
	number, /*handle*/
	SCMRawResourceSplice[]
];

637
export interface MainThreadSCMShape extends IDisposable {
638
	$registerSourceControl(handle: number, id: string, label: string, rootUri: UriComponents | undefined): void;
639 640
	$updateSourceControl(handle: number, features: SCMProviderFeatures): void;
	$unregisterSourceControl(handle: number): void;
J
Joao Moreno 已提交
641

642 643 644 645
	$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 已提交
646

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

J
Joao Moreno 已提交
649
	$setInputBoxValue(sourceControlHandle: number, value: string): void;
650
	$setInputBoxPlaceholder(sourceControlHandle: number, placeholder: string): void;
651
	$setInputBoxVisibility(sourceControlHandle: number, visible: boolean): void;
652
	$setValidationProviderIsEnabled(sourceControlHandle: number, enabled: boolean): void;
J
Joao Moreno 已提交
653 654
}

655 656
export type DebugSessionUUID = string;

657 658 659 660 661 662 663
export interface IDebugConfiguration {
	type: string;
	name: string;
	request: string;
	[key: string]: any;
}

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

684
export interface MainThreadWindowShape extends IDisposable {
J
Johannes Rieken 已提交
685
	$getWindowVisibility(): Promise<boolean>;
686
	$openUri(uri: UriComponents): Promise<boolean>;
687 688
}

689 690
// -- extension host

691
export interface ExtHostCommandsShape {
J
Johannes Rieken 已提交
692 693
	$executeContributedCommand<T>(id: string, ...args: any[]): Promise<T>;
	$getContributedCommandHandlerDescriptions(): Promise<{ [id: string]: string | ICommandHandlerDescription }>;
694 695
}

696
export interface ExtHostConfigurationShape {
697 698
	$initializeConfiguration(data: IConfigurationInitData): void;
	$acceptConfigurationChanged(data: IConfigurationInitData, eventData: IWorkspaceConfigurationChangeEventData): void;
699 700
}

701
export interface ExtHostDiagnosticsShape {
702 703 704

}

705
export interface ExtHostDocumentContentProvidersShape {
M
Matt Bierner 已提交
706
	$provideTextDocumentContent(handle: number, uri: UriComponents): Promise<string | null | undefined>;
707 708
}

709
export interface IModelAddedData {
710
	uri: UriComponents;
711
	versionId: number;
712 713
	lines: string[];
	EOL: string;
714 715 716
	modeId: string;
	isDirty: boolean;
}
717
export interface ExtHostDocumentsShape {
718 719 720 721
	$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;
722 723
}

724
export interface ExtHostDocumentSaveParticipantShape {
J
Johannes Rieken 已提交
725
	$participateInSave(resource: UriComponents, reason: SaveReason): Promise<boolean[]>;
726 727
}

728 729
export interface ITextEditorAddData {
	id: string;
730
	documentUri: UriComponents;
731
	options: IResolvedTextEditorConfiguration;
A
Alex Dima 已提交
732
	selections: ISelection[];
733
	visibleRanges: IRange[];
A
Alex Dima 已提交
734
	editorPosition: EditorViewColumn | undefined;
735 736
}
export interface ITextEditorPositionData {
737
	[id: string]: EditorViewColumn;
738
}
739 740 741
export interface IEditorPropertiesChangeData {
	options: IResolvedTextEditorConfiguration | null;
	selections: ISelectionChangeEvent | null;
742
	visibleRanges: IRange[] | null;
743 744 745 746 747 748
}
export interface ISelectionChangeEvent {
	selections: Selection[];
	source?: string;
}

749
export interface ExtHostEditorsShape {
750
	$acceptEditorPropertiesChanged(id: string, props: IEditorPropertiesChangeData): void;
751
	$acceptEditorPositionData(data: ITextEditorPositionData): void;
752 753
}

J
Johannes Rieken 已提交
754
export interface IDocumentsAndEditorsDelta {
755
	removedDocuments?: UriComponents[];
J
Johannes Rieken 已提交
756 757 758
	addedDocuments?: IModelAddedData[];
	removedEditors?: string[];
	addedEditors?: ITextEditorAddData[];
A
Alex Dima 已提交
759
	newActiveEditor?: string | null;
J
Johannes Rieken 已提交
760 761
}

762 763
export interface ExtHostDocumentsAndEditorsShape {
	$acceptDocumentsAndEditorsDelta(delta: IDocumentsAndEditorsDelta): void;
J
Johannes Rieken 已提交
764 765
}

766
export interface ExtHostTreeViewsShape {
J
Johannes Rieken 已提交
767
	$getChildren(treeViewId: string, treeItemHandle?: string): Promise<ITreeItem[]>;
768
	$setExpanded(treeViewId: string, treeItemHandle: string, expanded: boolean): void;
769
	$setSelection(treeViewId: string, treeItemHandles: string[]): void;
770
	$setVisible(treeViewId: string, visible: boolean): void;
S
Sandeep Somavarapu 已提交
771 772
}

773
export interface ExtHostWorkspaceShape {
774
	$initializeWorkspace(workspace: IWorkspaceData | null): void;
775
	$acceptWorkspaceData(workspace: IWorkspaceData | null): void;
J
Johannes Rieken 已提交
776
	$handleTextSearchResult(result: search.IRawFileMatch2, requestId: number): void;
777
}
778

779
export interface ExtHostFileSystemShape {
J
Johannes Rieken 已提交
780 781
	$stat(handle: number, resource: UriComponents): Promise<files.IStat>;
	$readdir(handle: number, resource: UriComponents): Promise<[string, files.FileType][]>;
J
Johannes Rieken 已提交
782
	$readFile(handle: number, resource: UriComponents): Promise<Buffer>;
J
Johannes Rieken 已提交
783 784 785
	$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 已提交
786
	$mkdir(handle: number, resource: UriComponents): Promise<void>;
J
Johannes Rieken 已提交
787 788
	$delete(handle: number, resource: UriComponents, opts: files.FileDeleteOptions): Promise<void>;
	$watch(handle: number, session: number, resource: UriComponents, opts: files.IWatchOptions): void;
789
	$unwatch(handle: number, session: number): void;
J
Johannes Rieken 已提交
790
	$open(handle: number, resource: UriComponents, opts: files.FileOpenOptions): Promise<number>;
J
Johannes Rieken 已提交
791
	$close(handle: number, fd: number): Promise<void>;
792 793
	$read(handle: number, fd: number, pos: number, length: number): Promise<Buffer>;
	$write(handle: number, fd: number, pos: number, data: Buffer): Promise<number>;
794
}
795

796
export interface ExtHostSearchShape {
J
Johannes Rieken 已提交
797 798
	$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 已提交
799
	$clearCache(cacheKey: string): Promise<void>;
800 801
}

802
export interface ExtHostExtensionServiceShape {
J
Johannes Rieken 已提交
803
	$resolveAuthority(remoteAuthority: string): Promise<ResolvedAuthority>;
804
	$startExtensionHost(enabledExtensionIds: ExtensionIdentifier[]): Promise<void>;
J
Johannes Rieken 已提交
805
	$activateByEvent(activationEvent: string): Promise<void>;
806
	$activate(extensionId: ExtensionIdentifier, activationEvent: string): Promise<boolean>;
807

808
	$deltaExtensions(toAdd: IExtensionDescription[], toRemove: ExtensionIdentifier[]): Promise<void>;
809 810 811 812

	$test_latency(n: number): Promise<number>;
	$test_up(b: Buffer): Promise<number>;
	$test_down(size: number): Promise<Buffer>;
813 814 815
}

export interface FileSystemEvents {
J
Johannes Rieken 已提交
816 817 818
	created: UriComponents[];
	changed: UriComponents[];
	deleted: UriComponents[];
819
}
820
export interface ExtHostFileSystemEventServiceShape {
821
	$onFileEvent(events: FileSystemEvents): void;
822
	$onFileRename(oldUri: UriComponents, newUri: UriComponents): void;
J
Johannes Rieken 已提交
823
	$onWillRename(oldUri: UriComponents, newUri: UriComponents): Promise<any>;
824 825
}

J
Johannes Rieken 已提交
826
export interface ObjectIdentifier {
827
	$ident?: number;
J
Johannes Rieken 已提交
828 829 830
}

export namespace ObjectIdentifier {
831
	export const name = '$ident';
J
Johannes Rieken 已提交
832
	export function mixin<T>(obj: T, id: number): T & ObjectIdentifier {
833
		Object.defineProperty(obj, name, { value: id, enumerable: true });
J
Johannes Rieken 已提交
834 835
		return <T & ObjectIdentifier>obj;
	}
836 837
	export function of(obj: any): number {
		return obj[name];
J
Johannes Rieken 已提交
838 839 840
	}
}

841 842
export interface ExtHostHeapServiceShape {
	$onGarbageCollection(ids: number[]): void;
843
}
844
export interface IRawColorInfo {
J
Joao Moreno 已提交
845
	color: [number, number, number, number];
846 847 848
	range: IRange;
}

849 850 851 852 853 854 855 856 857
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;
	}
}

J
Johannes Rieken 已提交
858 859 860 861 862 863 864 865 866 867 868 869 870 871 872
export interface SuggestDataDto {
	a/* label */: string;
	b/* kind */: modes.CompletionItemKind;
	c/* detail */?: string;
	d/* documentation */?: string | IMarkdownString;
	e/* sortText */?: string;
	f/* filterText */?: string;
	g/* preselect */?: boolean;
	h/* insertText */?: string;
	i/* insertTextRules */?: modes.CompletionItemInsertTextRule;
	j/* range */?: IRange;
	k/* commitCharacters */?: string[];
	l/* additionalTextEdits */?: ISingleEditOperation[];
	m/* command */?: modes.Command;
	// not-standard
873
	x?: ChainedCacheId;
J
Johannes Rieken 已提交
874 875 876
}

export interface SuggestResultDto {
877
	x?: number;
J
Johannes Rieken 已提交
878 879 880
	a: IRange;
	b: SuggestDataDto[];
	c?: boolean;
881 882
}

883 884 885
export interface LocationDto {
	uri: UriComponents;
	range: IRange;
886 887
}

M
Matt Bierner 已提交
888
export interface DefinitionLinkDto {
J
Johannes Rieken 已提交
889
	originSelectionRange?: IRange;
M
Matt Bierner 已提交
890 891
	uri: UriComponents;
	range: IRange;
J
Johannes Rieken 已提交
892
	targetSelectionRange?: IRange;
M
Matt Bierner 已提交
893 894
}

895
export interface WorkspaceSymbolDto extends IdObject {
896 897 898 899 900 901 902
	name: string;
	containerName?: string;
	kind: modes.SymbolKind;
	location: LocationDto;
}

export interface WorkspaceSymbolsDto extends IdObject {
903
	symbols: WorkspaceSymbolDto[];
904 905
}

906
export interface ResourceFileEditDto {
M
Matt Bierner 已提交
907 908
	oldUri?: UriComponents;
	newUri?: UriComponents;
909 910 911 912 913 914
	options?: {
		overwrite?: boolean;
		ignoreIfExists?: boolean;
		ignoreIfNotExists?: boolean;
		recursive?: boolean;
	};
915 916 917
}

export interface ResourceTextEditDto {
918
	resource: UriComponents;
919 920
	modelVersionId?: number;
	edits: modes.TextEdit[];
921 922
}

923
export interface WorkspaceEditDto {
924
	edits: Array<ResourceFileEditDto | ResourceTextEditDto>;
925 926

	// todo@joh reject should go into rename
927 928 929
	rejectReason?: string;
}

A
Alex Dima 已提交
930
export function reviveWorkspaceEditDto(data: WorkspaceEditDto | undefined): modes.WorkspaceEdit {
931 932 933 934 935 936 937 938 939 940 941 942 943
	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;
}

944 945
export type CommandDto = ObjectIdentifier & modes.Command;

946 947
export interface CodeActionDto {
	title: string;
948
	edit?: WorkspaceEditDto;
949
	diagnostics?: IMarkerData[];
950
	command?: CommandDto;
J
Johannes Rieken 已提交
951
	kind?: string;
952
	isPreferred?: boolean;
953
}
954

955 956 957 958 959 960 961 962 963 964
export type CacheId = number;
export type ChainedCacheId = [CacheId, CacheId];

export interface LinksListDto {
	id?: CacheId;
	links: LinkDto[];
}

export interface LinkDto {
	cacheId?: ChainedCacheId;
M
Martin Aeschlimann 已提交
965 966 967
	range: IRange;
	url?: string | UriComponents;
}
968

969 970 971 972 973
export interface CodeLensDto extends ObjectIdentifier {
	range: IRange;
	id?: string;
	command?: CommandDto;
}
974

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

977 978 979 980 981 982 983 984 985 986
export interface CallHierarchyDto {
	_id: number;
	kind: modes.SymbolKind;
	name: string;
	detail?: string;
	uri: UriComponents;
	range: IRange;
	selectionRange: IRange;
}

987
export interface ExtHostLanguageFeaturesShape {
988
	$provideDocumentSymbols(handle: number, resource: UriComponents, token: CancellationToken): Promise<modes.DocumentSymbol[] | undefined>;
989
	$provideCodeLenses(handle: number, resource: UriComponents, token: CancellationToken): Promise<CodeLensDto[]>;
990
	$resolveCodeLens(handle: number, symbol: CodeLensDto, token: CancellationToken): Promise<CodeLensDto | undefined>;
991
	$provideCodeInsets(handle: number, resource: UriComponents, token: CancellationToken): Promise<CodeInsetDto[] | undefined>;
R
Rob DeLine 已提交
992
	$resolveCodeInset(handle: number, resource: UriComponents, symbol: CodeInsetDto, token: CancellationToken): Promise<CodeInsetDto>;
J
Johannes Rieken 已提交
993 994 995 996
	$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[]>;
997 998 999 1000 1001 1002 1003
	$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 已提交
1004
	$provideWorkspaceSymbols(handle: number, search: string, token: CancellationToken): Promise<WorkspaceSymbolsDto>;
1005
	$resolveWorkspaceSymbol(handle: number, symbol: WorkspaceSymbolDto, token: CancellationToken): Promise<WorkspaceSymbolDto | undefined>;
1006
	$releaseWorkspaceSymbols(handle: number, id: number): void;
1007 1008
	$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>;
1009
	$provideCompletionItems(handle: number, resource: UriComponents, position: IPosition, context: modes.CompletionContext, token: CancellationToken): Promise<SuggestResultDto | undefined>;
1010
	$resolveCompletionItem(handle: number, resource: UriComponents, position: IPosition, id: ChainedCacheId, token: CancellationToken): Promise<SuggestDataDto | undefined>;
1011
	$releaseCompletionItems(handle: number, id: number): void;
1012
	$provideSignatureHelp(handle: number, resource: UriComponents, position: IPosition, context: modes.SignatureHelpContext, token: CancellationToken): Promise<modes.SignatureHelp | undefined>;
1013
	$provideDocumentLinks(handle: number, resource: UriComponents, token: CancellationToken): Promise<LinksListDto | undefined>;
1014
	$resolveDocumentLink(handle: number, id: ChainedCacheId, token: CancellationToken): Promise<LinkDto | undefined>;
1015
	$releaseDocumentLinks(handle: number, id: number): void;
J
Johannes Rieken 已提交
1016
	$provideDocumentColors(handle: number, resource: UriComponents, token: CancellationToken): Promise<IRawColorInfo[]>;
M
Matt Bierner 已提交
1017 1018
	$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>;
1019
	$provideSelectionRanges(handle: number, resource: UriComponents, positions: IPosition[], token: CancellationToken): Promise<modes.SelectionRange[][]>;
1020 1021
	$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[]][]>;
1022 1023
}

1024 1025
export interface ExtHostQuickOpenShape {
	$onItemSelected(handle: number): void;
M
Matt Bierner 已提交
1026
	$validateInput(input: string): Promise<string | null | undefined>;
1027 1028 1029
	$onDidChangeActive(sessionId: number, handles: number[]): void;
	$onDidChangeSelection(sessionId: number, handles: number[]): void;
	$onDidAccept(sessionId: number): void;
1030
	$onDidChangeValue(sessionId: number, value: string): void;
C
Christof Marti 已提交
1031
	$onDidTriggerButton(sessionId: number, handle: number): void;
1032
	$onDidHide(sessionId: number): void;
1033 1034
}

1035 1036 1037 1038
export interface ShellLaunchConfigDto {
	name?: string;
	executable?: string;
	args?: string[] | string;
1039
	cwd?: string | UriComponents;
1040
	env?: { [key: string]: string | null };
1041 1042
}

1043 1044
export interface ExtHostTerminalServiceShape {
	$acceptTerminalClosed(id: number): void;
1045
	$acceptTerminalOpened(id: number, name: string): void;
1046
	$acceptActiveTerminalChanged(id: number | null): void;
1047
	$acceptTerminalProcessId(id: number, processId: number): void;
A
Alex Dima 已提交
1048
	$acceptTerminalProcessData(id: number, data: string): void;
D
Daniel Imms 已提交
1049
	$acceptTerminalRendererInput(id: number, data: string): void;
1050
	$acceptTerminalTitleChange(id: number, name: string): void;
1051
	$acceptTerminalDimensions(id: number, cols: number, rows: number): void;
1052
	$createProcess(id: number, shellLaunchConfig: ShellLaunchConfigDto, activeWorkspaceRootUri: UriComponents, cols: number, rows: number): void;
D
Daniel Imms 已提交
1053 1054
	$acceptProcessInput(id: number, data: string): void;
	$acceptProcessResize(id: number, cols: number, rows: number): void;
1055
	$acceptProcessShutdown(id: number, immediate: boolean): void;
1056 1057
	$acceptProcessRequestInitialCwd(id: number): void;
	$acceptProcessRequestCwd(id: number): void;
1058
	$acceptProcessRequestLatency(id: number): number;
1059 1060
}

1061
export interface ExtHostSCMShape {
M
Matt Bierner 已提交
1062
	$provideOriginalResource(sourceControlHandle: number, uri: UriComponents, token: CancellationToken): Promise<UriComponents | null>;
A
Alex Dima 已提交
1063
	$onInputBoxValueChange(sourceControlHandle: number, value: string): void;
J
Johannes Rieken 已提交
1064 1065 1066
	$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 已提交
1067 1068
}

1069
export interface ExtHostTaskShape {
J
Johannes Rieken 已提交
1070 1071 1072 1073 1074
	$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 已提交
1075
	$resolveVariables(workspaceFolder: UriComponents, toResolve: { process?: { name: string; cwd?: string }, variables: string[] }): Promise<{ process?: string; variables: { [key: string]: string } }>;
1076 1077
}

1078 1079
export interface IBreakpointDto {
	type: string;
1080
	id?: string;
1081 1082 1083
	enabled: boolean;
	condition?: string;
	hitCondition?: string;
1084 1085 1086 1087 1088
	logMessage?: string;
}

export interface IFunctionBreakpointDto extends IBreakpointDto {
	type: 'function';
1089
	functionName: string;
1090 1091
}

1092
export interface ISourceBreakpointDto extends IBreakpointDto {
1093
	type: 'source';
1094
	uri: UriComponents;
1095 1096
	line: number;
	character: number;
1097 1098
}

1099
export interface IBreakpointsDeltaDto {
1100
	added?: Array<ISourceBreakpointDto | IFunctionBreakpointDto>;
1101
	removed?: string[];
1102
	changed?: Array<ISourceBreakpointDto | IFunctionBreakpointDto>;
1103 1104
}

1105 1106 1107 1108
export interface ISourceMultiBreakpointDto {
	type: 'sourceMulti';
	uri: UriComponents;
	lines: {
1109
		id: string;
1110 1111 1112
		enabled: boolean;
		condition?: string;
		hitCondition?: string;
1113
		logMessage?: string;
1114 1115 1116
		line: number;
		character: number;
	}[];
1117 1118
}

A
Andre Weinand 已提交
1119
export interface IDebugSessionFullDto {
1120 1121 1122
	id: DebugSessionUUID;
	type: string;
	name: string;
1123
	folderUri: UriComponents | undefined;
A
Andre Weinand 已提交
1124
	configuration: IConfig;
1125 1126
}

A
Andre Weinand 已提交
1127 1128
export type IDebugSessionDto = IDebugSessionFullDto | DebugSessionUUID;

1129
export interface ExtHostDebugServiceShape {
J
Johannes Rieken 已提交
1130 1131 1132 1133
	$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>;
1134
	$sendDAMessage(handle: number, message: DebugProtocol.ProtocolMessage): void;
1135
	$resolveDebugConfiguration(handle: number, folder: UriComponents | undefined, debugConfiguration: IConfig): Promise<IConfig | null | undefined>;
J
Johannes Rieken 已提交
1136 1137 1138
	$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>;
1139 1140
	$acceptDebugSessionStarted(session: IDebugSessionDto): void;
	$acceptDebugSessionTerminated(session: IDebugSessionDto): void;
1141
	$acceptDebugSessionActiveChanged(session: IDebugSessionDto | undefined): void;
1142 1143
	$acceptDebugSessionCustomEvent(session: IDebugSessionDto, event: any): void;
	$acceptBreakpointsDelta(delta: IBreakpointsDeltaDto): void;
1144 1145
}

1146

1147 1148 1149 1150 1151 1152
export interface DecorationRequest {
	readonly id: number;
	readonly handle: number;
	readonly uri: UriComponents;
}

1153
export type DecorationData = [number, boolean, string, string, ThemeColor, string];
1154
export type DecorationReply = { [id: number]: DecorationData };
1155 1156

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

1160 1161
export interface ExtHostWindowShape {
	$onDidChangeWindowFocus(value: boolean): void;
1162 1163
}

S
Sandeep Somavarapu 已提交
1164
export interface ExtHostLogServiceShape {
A
Alex Dima 已提交
1165
	$setLevel(level: LogLevel): void;
S
Sandeep Somavarapu 已提交
1166 1167
}

1168 1169 1170 1171
export interface ExtHostOutputServiceShape {
	$setVisibleChannel(channelId: string | null): void;
}

1172 1173 1174 1175
export interface ExtHostProgressShape {
	$acceptProgressCanceled(handle: number): void;
}

M
Matt Bierner 已提交
1176
export interface ExtHostCommentsShape {
1177
	$provideDocumentComments(handle: number, document: UriComponents): Promise<modes.CommentInfo | null>;
1178
	$createNewCommentThread(handle: number, document: UriComponents, range: IRange, text: string): Promise<modes.CommentThread | null>;
1179
	$onCommentWidgetInputChange(commentControllerHandle: number, input: string | undefined): Promise<number | undefined>;
P
Peng Lyu 已提交
1180
	$provideCommentingRanges(commentControllerHandle: number, uriComponents: UriComponents, token: CancellationToken): Promise<IRange[] | undefined>;
P
Peng Lyu 已提交
1181 1182
	$provideReactionGroup(commentControllerHandle: number): Promise<modes.CommentReaction[] | undefined>;
	$toggleReaction(commentControllerHandle: number, threadHandle: number, uri: UriComponents, comment: modes.Comment, reaction: modes.CommentReaction): Promise<void>;
1183
	$createNewCommentWidgetCallback(commentControllerHandle: number, uriComponents: UriComponents, range: IRange, token: CancellationToken): Promise<void>;
1184
	$replyToCommentThread(handle: number, document: UriComponents, range: IRange, commentThread: modes.CommentThread, text: string): Promise<modes.CommentThread | null>;
J
Johannes Rieken 已提交
1185 1186
	$editComment(handle: number, document: UriComponents, comment: modes.Comment, text: string): Promise<void>;
	$deleteComment(handle: number, document: UriComponents, comment: modes.Comment): Promise<void>;
1187 1188 1189
	$startDraft(handle: number, document: UriComponents): Promise<void>;
	$deleteDraft(handle: number, document: UriComponents): Promise<void>;
	$finishDraft(handle: number, document: UriComponents): Promise<void>;
P
Peng Lyu 已提交
1190 1191
	$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>;
1192
	$provideWorkspaceComments(handle: number): Promise<modes.CommentThread[] | null>;
M
Matt Bierner 已提交
1193 1194
}

1195
export interface ExtHostStorageShape {
1196
	$acceptValue(shared: boolean, key: string, value: object | undefined): void;
1197 1198
}

1199 1200 1201
// --- proxy identifiers

export const MainContext = {
1202 1203
	MainThreadClipboard: createMainId<MainThreadClipboardShape>('MainThreadClipboard'),
	MainThreadCommands: createMainId<MainThreadCommandsShape>('MainThreadCommands'),
M
Matt Bierner 已提交
1204
	MainThreadComments: createMainId<MainThreadCommentsShape>('MainThreadComments'),
1205
	MainThreadConfiguration: createMainId<MainThreadConfigurationShape>('MainThreadConfiguration'),
1206
	MainThreadConsole: createMainId<MainThreadConsoleShape>('MainThreadConsole'),
1207
	MainThreadDebugService: createMainId<MainThreadDebugServiceShape>('MainThreadDebugService'),
1208 1209 1210 1211
	MainThreadDecorations: createMainId<MainThreadDecorationsShape>('MainThreadDecorations'),
	MainThreadDiagnostics: createMainId<MainThreadDiagnosticsShape>('MainThreadDiagnostics'),
	MainThreadDialogs: createMainId<MainThreadDiaglogsShape>('MainThreadDiaglogs'),
	MainThreadDocuments: createMainId<MainThreadDocumentsShape>('MainThreadDocuments'),
1212
	MainThreadDocumentContentProviders: createMainId<MainThreadDocumentContentProvidersShape>('MainThreadDocumentContentProviders'),
1213
	MainThreadTextEditors: createMainId<MainThreadTextEditorsShape>('MainThreadTextEditors'),
1214 1215
	MainThreadErrors: createMainId<MainThreadErrorsShape>('MainThreadErrors'),
	MainThreadTreeViews: createMainId<MainThreadTreeViewsShape>('MainThreadTreeViews'),
A
Alex Dima 已提交
1216
	MainThreadKeytar: createMainId<MainThreadKeytarShape>('MainThreadKeytar'),
1217
	MainThreadLanguageFeatures: createMainId<MainThreadLanguageFeaturesShape>('MainThreadLanguageFeatures'),
1218
	MainThreadLanguages: createMainId<MainThreadLanguagesShape>('MainThreadLanguages'),
1219
	MainThreadMessageService: createMainId<MainThreadMessageServiceShape>('MainThreadMessageService'),
1220 1221
	MainThreadOutputService: createMainId<MainThreadOutputServiceShape>('MainThreadOutputService'),
	MainThreadProgress: createMainId<MainThreadProgressShape>('MainThreadProgress'),
1222
	MainThreadQuickOpen: createMainId<MainThreadQuickOpenShape>('MainThreadQuickOpen'),
1223
	MainThreadStatusBar: createMainId<MainThreadStatusBarShape>('MainThreadStatusBar'),
1224
	MainThreadStorage: createMainId<MainThreadStorageShape>('MainThreadStorage'),
1225
	MainThreadTelemetry: createMainId<MainThreadTelemetryShape>('MainThreadTelemetry'),
1226
	MainThreadTerminalService: createMainId<MainThreadTerminalServiceShape>('MainThreadTerminalService'),
M
Matt Bierner 已提交
1227
	MainThreadWebviews: createMainId<MainThreadWebviewsShape>('MainThreadWebviews'),
J
Joao Moreno 已提交
1228
	MainThreadUrls: createMainId<MainThreadUrlsShape>('MainThreadUrls'),
1229
	MainThreadWorkspace: createMainId<MainThreadWorkspaceShape>('MainThreadWorkspace'),
1230
	MainThreadFileSystem: createMainId<MainThreadFileSystemShape>('MainThreadFileSystem'),
1231
	MainThreadExtensionService: createMainId<MainThreadExtensionServiceShape>('MainThreadExtensionService'),
J
Joao Moreno 已提交
1232
	MainThreadSCM: createMainId<MainThreadSCMShape>('MainThreadSCM'),
1233
	MainThreadSearch: createMainId<MainThreadSearchShape>('MainThreadSearch'),
1234
	MainThreadTask: createMainId<MainThreadTaskShape>('MainThreadTask'),
1235
	MainThreadWindow: createMainId<MainThreadWindowShape>('MainThreadWindow'),
1236 1237 1238
};

export const ExtHostContext = {
1239
	ExtHostCommands: createExtId<ExtHostCommandsShape>('ExtHostCommands'),
1240
	ExtHostConfiguration: createExtId<ExtHostConfigurationShape>('ExtHostConfiguration'),
1241
	ExtHostDiagnostics: createExtId<ExtHostDiagnosticsShape>('ExtHostDiagnostics'),
1242
	ExtHostDebugService: createExtId<ExtHostDebugServiceShape>('ExtHostDebugService'),
J
Johannes Rieken 已提交
1243
	ExtHostDecorations: createExtId<ExtHostDecorationsShape>('ExtHostDecorations'),
1244
	ExtHostDocumentsAndEditors: createExtId<ExtHostDocumentsAndEditorsShape>('ExtHostDocumentsAndEditors'),
1245
	ExtHostDocuments: createExtId<ExtHostDocumentsShape>('ExtHostDocuments'),
J
Johannes Rieken 已提交
1246
	ExtHostDocumentContentProviders: createExtId<ExtHostDocumentContentProvidersShape>('ExtHostDocumentContentProviders'),
J
Johannes Rieken 已提交
1247
	ExtHostDocumentSaveParticipant: createExtId<ExtHostDocumentSaveParticipantShape>('ExtHostDocumentSaveParticipant'),
J
Johannes Rieken 已提交
1248
	ExtHostEditors: createExtId<ExtHostEditorsShape>('ExtHostEditors'),
1249
	ExtHostTreeViews: createExtId<ExtHostTreeViewsShape>('ExtHostTreeViews'),
J
Johannes Rieken 已提交
1250
	ExtHostFileSystem: createExtId<ExtHostFileSystemShape>('ExtHostFileSystem'),
J
Johannes Rieken 已提交
1251
	ExtHostFileSystemEventService: createExtId<ExtHostFileSystemEventServiceShape>('ExtHostFileSystemEventService'),
1252
	ExtHostHeapService: createExtId<ExtHostHeapServiceShape>('ExtHostHeapMonitor'),
1253
	ExtHostLanguageFeatures: createExtId<ExtHostLanguageFeaturesShape>('ExtHostLanguageFeatures'),
1254 1255
	ExtHostQuickOpen: createExtId<ExtHostQuickOpenShape>('ExtHostQuickOpen'),
	ExtHostExtensionService: createExtId<ExtHostExtensionServiceShape>('ExtHostExtensionService'),
1256
	ExtHostLogService: createExtId<ExtHostLogServiceShape>('ExtHostLogService'),
1257
	ExtHostTerminalService: createExtId<ExtHostTerminalServiceShape>('ExtHostTerminalService'),
J
Joao Moreno 已提交
1258
	ExtHostSCM: createExtId<ExtHostSCMShape>('ExtHostSCM'),
1259
	ExtHostSearch: createExtId<ExtHostSearchShape>('ExtHostSearch'),
1260
	ExtHostTask: createExtId<ExtHostTaskShape>('ExtHostTask'),
1261
	ExtHostWorkspace: createExtId<ExtHostWorkspaceShape>('ExtHostWorkspace'),
1262
	ExtHostWindow: createExtId<ExtHostWindowShape>('ExtHostWindow'),
1263
	ExtHostWebviews: createExtId<ExtHostWebviewsShape>('ExtHostWebviews'),
M
Matt Bierner 已提交
1264
	ExtHostProgress: createMainId<ExtHostProgressShape>('ExtHostProgress'),
1265
	ExtHostComments: createMainId<ExtHostCommentsShape>('ExtHostComments'),
1266
	ExtHostStorage: createMainId<ExtHostStorageShape>('ExtHostStorage'),
1267 1268
	ExtHostUrls: createExtId<ExtHostUrlsShape>('ExtHostUrls'),
	ExtHostOutputService: createMainId<ExtHostOutputServiceShape>('ExtHostOutputService'),
1269
};