|
4 | 4 | *--------------------------------------------------------------------------------------------*/ |
5 | 5 |
|
6 | 6 | import { DisposableStore } from 'vs/base/common/lifecycle'; |
7 | | -import { URI as uri } from 'vs/base/common/uri'; |
| 7 | +import { URI as uri, UriComponents } from 'vs/base/common/uri'; |
8 | 8 | import { IDebugService, IConfig, IDebugConfigurationProvider, IBreakpoint, IFunctionBreakpoint, IBreakpointData, IDebugAdapter, IDebugAdapterDescriptorFactory, IDebugSession, IDebugAdapterFactory, IDataBreakpoint, IDebugSessionOptions } from 'vs/workbench/contrib/debug/common/debug'; |
9 | 9 | import { |
10 | 10 | ExtHostContext, ExtHostDebugServiceShape, MainThreadDebugServiceShape, DebugSessionUUID, MainContext, |
11 | | - IExtHostContext, IBreakpointsDeltaDto, ISourceMultiBreakpointDto, ISourceBreakpointDto, IFunctionBreakpointDto, IDebugSessionDto, IDataBreakpointDto, IStartDebuggingOptions |
| 11 | + IExtHostContext, IBreakpointsDeltaDto, ISourceMultiBreakpointDto, ISourceBreakpointDto, IFunctionBreakpointDto, IDebugSessionDto, IDataBreakpointDto, IStartDebuggingOptions, IDebugConfiguration |
12 | 12 | } from 'vs/workbench/api/common/extHost.protocol'; |
13 | 13 | import { extHostNamedCustomer } from 'vs/workbench/api/common/extHostCustomers'; |
14 | 14 | import severity from 'vs/base/common/severity'; |
@@ -218,15 +218,15 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb |
218 | 218 | return undefined; |
219 | 219 | } |
220 | 220 |
|
221 | | - public $startDebugging(options: IStartDebuggingOptions): Promise<boolean> { |
222 | | - const folderUri = options.folder ? uri.revive(options.folder) : undefined; |
| 221 | + public $startDebugging(folder: UriComponents | undefined, nameOrConfig: string | IDebugConfiguration, options: IStartDebuggingOptions): Promise<boolean> { |
| 222 | + const folderUri = folder ? uri.revive(folder) : undefined; |
223 | 223 | const launch = this.debugService.getConfigurationManager().getLaunch(folderUri); |
224 | 224 | const debugOptions: IDebugSessionOptions = { |
225 | 225 | noDebug: false, |
226 | 226 | parentSession: this.getSession(options.parentSessionID), |
227 | 227 | repl: options.repl |
228 | 228 | }; |
229 | | - return this.debugService.startDebugging(launch, options.nameOrConfig, debugOptions).then(success => { |
| 229 | + return this.debugService.startDebugging(launch, nameOrConfig, debugOptions).then(success => { |
230 | 230 | return success; |
231 | 231 | }, err => { |
232 | 232 | return Promise.reject(new Error(err && err.message ? err.message : 'cannot start debugging')); |
|
0 commit comments