Skip to content

Commit cc06e19

Browse files
committed
Introduce DebugSessionOptions.noDebug
microsoft#99743
1 parent 61dcbfc commit cc06e19

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/vs/vscode.proposed.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,13 @@ declare module 'vscode' {
851851

852852
//#region debug
853853

854+
export interface DebugSessionOptions {
855+
/**
856+
* Controls whether this session should run without debugging, thus ignoring breakpoints.
857+
*/
858+
noDebug?: boolean;
859+
}
860+
854861
// deprecated debug API
855862

856863
export interface DebugConfigurationProvider {

src/vs/workbench/api/browser/mainThreadDebugService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
229229
const folderUri = folder ? uri.revive(folder) : undefined;
230230
const launch = this.debugService.getConfigurationManager().getLaunch(folderUri);
231231
const debugOptions: IDebugSessionOptions = {
232-
noDebug: false,
232+
noDebug: options.noDebug,
233233
parentSession: this.getSession(options.parentSessionID),
234234
repl: options.repl
235235
};

src/vs/workbench/api/common/extHost.protocol.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ export interface IDebugConfiguration {
851851
export interface IStartDebuggingOptions {
852852
parentSessionID?: DebugSessionUUID;
853853
repl?: IDebugSessionReplMode;
854+
noDebug?: boolean;
854855
}
855856

856857
export interface MainThreadDebugServiceShape extends IDisposable {

src/vs/workbench/api/common/extHostDebugService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ export class ExtHostDebugServiceBase implements IExtHostDebugService, ExtHostDeb
295295
public startDebugging(folder: vscode.WorkspaceFolder | undefined, nameOrConfig: string | vscode.DebugConfiguration, options: vscode.DebugSessionOptions): Promise<boolean> {
296296
return this._debugServiceProxy.$startDebugging(folder ? folder.uri : undefined, nameOrConfig, {
297297
parentSessionID: options.parentSession ? options.parentSession.id : undefined,
298-
repl: options.consoleMode === DebugConsoleMode.MergeWithParent ? 'mergeWithParent' : 'separate'
298+
repl: options.consoleMode === DebugConsoleMode.MergeWithParent ? 'mergeWithParent' : 'separate',
299+
noDebug: options.noDebug
299300
});
300301
}
301302

0 commit comments

Comments
 (0)