mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
debug: tighten down debugFocus API proposal (#207006)
* debug: tighten down debugFocus API proposal Some bug fixes and reworking to align better with our APIs * fix getter error
This commit is contained in:
@@ -1241,8 +1241,11 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
get breakpoints() {
|
||||
return extHostDebugService.breakpoints;
|
||||
},
|
||||
get stackFrameFocus() {
|
||||
return extHostDebugService.stackFrameFocus;
|
||||
get activeStackItem() {
|
||||
if (!isProposedApiEnabled(extension, 'debugFocus')) {
|
||||
return undefined;
|
||||
}
|
||||
return extHostDebugService.activeStackItem;
|
||||
},
|
||||
registerDebugVisualizationProvider(id, provider) {
|
||||
checkProposedApiEnabled(extension, 'debugVisualization');
|
||||
@@ -1267,9 +1270,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
onDidChangeBreakpoints(listener, thisArgs?, disposables?) {
|
||||
return _asExtensionEvent(extHostDebugService.onDidChangeBreakpoints)(listener, thisArgs, disposables);
|
||||
},
|
||||
onDidChangeStackFrameFocus(listener, thisArg?, disposables?) {
|
||||
onDidChangeActiveStackItem(listener, thisArg?, disposables?) {
|
||||
checkProposedApiEnabled(extension, 'debugFocus');
|
||||
return _asExtensionEvent(extHostDebugService.onDidChangeStackFrameFocus)(listener, thisArg, disposables);
|
||||
return _asExtensionEvent(extHostDebugService.onDidChangeActiveStackItem)(listener, thisArg, disposables);
|
||||
},
|
||||
registerDebugConfigurationProvider(debugType: string, provider: vscode.DebugConfigurationProvider, triggerKind?: vscode.DebugConfigurationProviderTriggerKind) {
|
||||
return extHostDebugService.registerDebugConfigurationProvider(debugType, provider, triggerKind || DebugConfigurationProviderTriggerKind.Initial);
|
||||
@@ -1673,8 +1676,8 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
InteractiveSessionVoteDirection: extHostTypes.InteractiveSessionVoteDirection,
|
||||
ChatCopyKind: extHostTypes.ChatCopyKind,
|
||||
InteractiveEditorResponseFeedbackKind: extHostTypes.InteractiveEditorResponseFeedbackKind,
|
||||
StackFrameFocus: extHostTypes.StackFrameFocus,
|
||||
ThreadFocus: extHostTypes.ThreadFocus,
|
||||
StackFrame: extHostTypes.StackFrame,
|
||||
Thread: extHostTypes.Thread,
|
||||
RelatedInformationType: extHostTypes.RelatedInformationType,
|
||||
SpeechToTextStatus: extHostTypes.SpeechToTextStatus,
|
||||
PartialAcceptTriggerKind: extHostTypes.PartialAcceptTriggerKind,
|
||||
|
||||
Reference in New Issue
Block a user