diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts index 9578d2f3d77..aa3549be39d 100644 --- a/src/vs/workbench/api/common/extHost.api.impl.ts +++ b/src/vs/workbench/api/common/extHost.api.impl.ts @@ -1693,8 +1693,8 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I InteractiveSessionVoteDirection: extHostTypes.InteractiveSessionVoteDirection, ChatCopyKind: extHostTypes.ChatCopyKind, InteractiveEditorResponseFeedbackKind: extHostTypes.InteractiveEditorResponseFeedbackKind, - StackFrame: extHostTypes.StackFrame, - Thread: extHostTypes.Thread, + DebugStackFrame: extHostTypes.DebugStackFrame, + DebugThread: extHostTypes.DebugThread, RelatedInformationType: extHostTypes.RelatedInformationType, SpeechToTextStatus: extHostTypes.SpeechToTextStatus, PartialAcceptTriggerKind: extHostTypes.PartialAcceptTriggerKind, diff --git a/src/vs/workbench/api/common/extHostDebugService.ts b/src/vs/workbench/api/common/extHostDebugService.ts index e38d3ee11b1..2970a9c3729 100644 --- a/src/vs/workbench/api/common/extHostDebugService.ts +++ b/src/vs/workbench/api/common/extHostDebugService.ts @@ -15,7 +15,7 @@ import { DebugSessionUUID, ExtHostDebugServiceShape, IBreakpointsDeltaDto, IThre import { IExtHostEditorTabs } from 'vs/workbench/api/common/extHostEditorTabs'; import { IExtHostExtensionService } from 'vs/workbench/api/common/extHostExtensionService'; import { IExtHostRpcService } from 'vs/workbench/api/common/extHostRpcService'; -import { Breakpoint, DataBreakpoint, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConsoleMode, Disposable, FunctionBreakpoint, Location, Position, setBreakpointId, SourceBreakpoint, Thread, StackFrame, ThemeIcon } from 'vs/workbench/api/common/extHostTypes'; +import { Breakpoint, DataBreakpoint, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConsoleMode, Disposable, FunctionBreakpoint, Location, Position, setBreakpointId, SourceBreakpoint, DebugThread, DebugStackFrame, ThemeIcon } from 'vs/workbench/api/common/extHostTypes'; import { IExtHostWorkspace } from 'vs/workbench/api/common/extHostWorkspace'; import { AbstractDebugAdapter } from 'vs/workbench/contrib/debug/common/abstractDebugAdapter'; import { MainThreadDebugVisualization, IAdapterDescriptor, IConfig, IDebugAdapter, IDebugAdapterExecutable, IDebugAdapterNamedPipeServer, IDebugAdapterServer, IDebugVisualization, IDebugVisualizationContext, IDebuggerContribution, DebugVisualizationType, IDebugVisualizationTreeItem } from 'vs/workbench/contrib/debug/common/debug'; @@ -44,8 +44,8 @@ export interface IExtHostDebugService extends ExtHostDebugServiceShape { onDidReceiveDebugSessionCustomEvent: Event; onDidChangeBreakpoints: Event; breakpoints: vscode.Breakpoint[]; - onDidChangeActiveStackItem: Event; - activeStackItem: vscode.Thread | vscode.StackFrame | undefined; + onDidChangeActiveStackItem: Event; + activeStackItem: vscode.DebugThread | vscode.DebugStackFrame | undefined; addBreakpoints(breakpoints0: readonly vscode.Breakpoint[]): Promise; removeBreakpoints(breakpoints0: readonly vscode.Breakpoint[]): Promise; @@ -97,8 +97,8 @@ export abstract class ExtHostDebugServiceBase implements IExtHostDebugService, E private readonly _onDidChangeBreakpoints: Emitter; - private _activeStackItem: vscode.Thread | vscode.StackFrame | undefined; - private readonly _onDidChangeActiveStackItem: Emitter; + private _activeStackItem: vscode.DebugThread | vscode.DebugStackFrame | undefined; + private readonly _onDidChangeActiveStackItem: Emitter; private _debugAdapters: Map; private _debugAdaptersTrackers: Map; @@ -144,7 +144,7 @@ export abstract class ExtHostDebugServiceBase implements IExtHostDebugService, E this._onDidChangeBreakpoints = new Emitter(); - this._onDidChangeActiveStackItem = new Emitter(); + this._onDidChangeActiveStackItem = new Emitter(); this._activeDebugConsole = new ExtHostDebugConsole(this._debugServiceProxy); @@ -278,11 +278,11 @@ export abstract class ExtHostDebugServiceBase implements IExtHostDebugService, E // extension debug API - get activeStackItem(): vscode.Thread | vscode.StackFrame | undefined { + get activeStackItem(): vscode.DebugThread | vscode.DebugStackFrame | undefined { return this._activeStackItem; } - get onDidChangeActiveStackItem(): Event { + get onDidChangeActiveStackItem(): Event { return this._onDidChangeActiveStackItem.event; } @@ -769,13 +769,13 @@ export abstract class ExtHostDebugServiceBase implements IExtHostDebugService, E } public async $acceptStackFrameFocus(focusDto: IThreadFocusDto | IStackFrameFocusDto | undefined): Promise { - let focus: vscode.Thread | vscode.StackFrame | undefined; + let focus: vscode.DebugThread | vscode.DebugStackFrame | undefined; if (focusDto) { const session = await this.getSession(focusDto.sessionId); if (focusDto.kind === 'thread') { - focus = new Thread(session.api, focusDto.threadId); + focus = new DebugThread(session.api, focusDto.threadId); } else { - focus = new StackFrame(session.api, focusDto.threadId, focusDto.frameId); + focus = new DebugStackFrame(session.api, focusDto.threadId, focusDto.frameId); } } diff --git a/src/vs/workbench/api/common/extHostTypes.ts b/src/vs/workbench/api/common/extHostTypes.ts index 32a0e30022c..71cd622ed18 100644 --- a/src/vs/workbench/api/common/extHostTypes.ts +++ b/src/vs/workbench/api/common/extHostTypes.ts @@ -3099,14 +3099,14 @@ export class DebugAdapterInlineImplementation implements vscode.DebugAdapterInli } -export class StackFrame implements vscode.StackFrame { +export class DebugStackFrame implements vscode.DebugStackFrame { constructor( public readonly session: vscode.DebugSession, readonly threadId: number, readonly frameId: number) { } } -export class Thread implements vscode.Thread { +export class DebugThread implements vscode.DebugThread { constructor( public readonly session: vscode.DebugSession, readonly threadId: number) { } diff --git a/src/vscode-dts/vscode.proposed.debugFocus.d.ts b/src/vscode-dts/vscode.proposed.debugFocus.d.ts index 92c9ad01f2b..636cb4745f4 100644 --- a/src/vscode-dts/vscode.proposed.debugFocus.d.ts +++ b/src/vscode-dts/vscode.proposed.debugFocus.d.ts @@ -7,7 +7,7 @@ declare module 'vscode' { // See https://github.com/microsoft/vscode/issues/63943 - export class Thread { + export class DebugThread { /** * Create a ThreadFocus * @param session @@ -26,7 +26,7 @@ declare module 'vscode' { readonly threadId: number; } - export class StackFrame { + export class DebugStackFrame { /** * Create a StackFrameFocus * @param session @@ -56,11 +56,11 @@ declare module 'vscode' { * The currently focused thread or stack frame, or `undefined` if no * thread or stack is focused. */ - export const activeStackItem: Thread | StackFrame | undefined; + export const activeStackItem: DebugThread | DebugStackFrame | undefined; /** * An event which fires when the {@link debug.activeStackItem} has changed. */ - export const onDidChangeActiveStackItem: Event; + export const onDidChangeActiveStackItem: Event; } }