diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index bb36ee09add..bb260eb969a 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -3691,7 +3691,7 @@ declare module 'vscode' { } /** - * The execution of a task happens as a external process + * The execution of a task happens as an external process * without shell interaction. */ export class ProcessExecution { @@ -5423,8 +5423,8 @@ declare module 'vscode' { readonly id: string; /** - * The debug session's type from the debug configuration. - */ + * The debug session's type from the debug configuration. + */ readonly type: string; /** @@ -5464,10 +5464,10 @@ declare module 'vscode' { export namespace debug { /** - * Create a new debug session based on the given configuration. + * Start a debug session based on the given configuration. * @param configuration */ - export function createDebugSession(configuration: DebugConfiguration): Thenable; + export function startDebugSession(configuration: DebugConfiguration): Thenable; /** * The currently active debug session or `undefined`. The active debug session is the one diff --git a/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts b/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts index f79a00d97e6..0f3e4050c5d 100644 --- a/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts +++ b/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts @@ -43,7 +43,7 @@ export class MainThreadDebugService extends MainThreadDebugServiceShape { this._toDispose = dispose(this._toDispose); } - public $createDebugSession(configuration: IConfig): TPromise { + public $startDebugSession(configuration: IConfig): TPromise { if (configuration.request !== 'launch' && configuration.request !== 'attach') { return TPromise.wrapError(new Error(`only 'launch' or 'attach' allowed for 'request' attribute`)); } @@ -53,7 +53,7 @@ export class MainThreadDebugService extends MainThreadDebugServiceShape { } return TPromise.wrapError(new Error('cannot create debug session')); }, err => { - return TPromise.wrapError(err && err.message ? err.message : 'cannot create debug session'); + return TPromise.wrapError(err && err.message ? err.message : 'cannot start debug session'); }); } diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index e0a2cc21959..1c08f1cf6be 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -467,8 +467,8 @@ export function createApiFactory( get activeDebugSession() { return extHostDebugService.activeDebugSession; }, - createDebugSession(config: vscode.DebugConfiguration) { - return extHostDebugService.createDebugSession(config); + startDebugSession(config: vscode.DebugConfiguration) { + return extHostDebugService.startDebugSession(config); }, onDidTerminateDebugSession(listener, thisArg?, disposables?) { return extHostDebugService.onDidTerminateDebugSession(listener, thisArg, disposables); diff --git a/src/vs/workbench/api/node/extHost.protocol.ts b/src/vs/workbench/api/node/extHost.protocol.ts index 1437d4f91ef..f724fae276a 100644 --- a/src/vs/workbench/api/node/extHost.protocol.ts +++ b/src/vs/workbench/api/node/extHost.protocol.ts @@ -345,7 +345,7 @@ export abstract class MainThreadSCMShape { export type DebugSessionUUID = string; export abstract class MainThreadDebugServiceShape { - $createDebugSession(config: vscode.DebugConfiguration): TPromise { throw ni(); } + $startDebugSession(config: vscode.DebugConfiguration): TPromise { throw ni(); } $customDebugAdapterRequest(id: DebugSessionUUID, command: string, args: any): TPromise { throw ni(); } } diff --git a/src/vs/workbench/api/node/extHostDebugService.ts b/src/vs/workbench/api/node/extHostDebugService.ts index b4eaf56447d..0e591c82529 100644 --- a/src/vs/workbench/api/node/extHostDebugService.ts +++ b/src/vs/workbench/api/node/extHostDebugService.ts @@ -41,9 +41,9 @@ export class ExtHostDebugService extends ExtHostDebugServiceShape { this._debugServiceProxy = threadService.get(MainContext.MainThreadDebugService); } - public createDebugSession(config: vscode.DebugConfiguration): TPromise { + public startDebugSession(config: vscode.DebugConfiguration): TPromise { - return this._debugServiceProxy.$createDebugSession(config).then((id: DebugSessionUUID) => { + return this._debugServiceProxy.$startDebugSession(config).then((id: DebugSessionUUID) => { const debugSession = new ExtHostDebugSession(this._debugServiceProxy, id, config.type, config.name); this._debugSessions.set(id, debugSession); return debugSession;