mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
fixes #119488
This commit is contained in:
@@ -658,7 +658,7 @@ class StackFramesRenderer implements ICompressibleTreeRenderer<IStackFrame, Fuzz
|
||||
data.stackFrame.classList.toggle('disabled', !stackFrame.source || !stackFrame.source.available || isDeemphasized(stackFrame));
|
||||
data.stackFrame.classList.toggle('label', stackFrame.presentationHint === 'label');
|
||||
data.stackFrame.classList.toggle('subtle', stackFrame.presentationHint === 'subtle');
|
||||
const hasActions = !!stackFrame.thread.session.capabilities.supportsRestartFrame && stackFrame.presentationHint !== 'label' && stackFrame.presentationHint !== 'subtle';
|
||||
const hasActions = !!stackFrame.thread.session.capabilities.supportsRestartFrame && stackFrame.presentationHint !== 'label' && stackFrame.presentationHint !== 'subtle' && stackFrame.canRestart;
|
||||
data.stackFrame.classList.toggle('has-actions', hasActions);
|
||||
|
||||
data.file.title = stackFrame.source.inMemory ? stackFrame.source.uri.path : this.labelService.getUriLabel(stackFrame.source.uri);
|
||||
@@ -680,7 +680,7 @@ class StackFramesRenderer implements ICompressibleTreeRenderer<IStackFrame, Fuzz
|
||||
data.actionBar.clear();
|
||||
this.callStackItemType.set('stackFrame');
|
||||
if (hasActions) {
|
||||
const action = new Action('debug.callStack.restartFrame', localize('restartFrame', "Restart Frame"), ThemeIcon.asClassName(icons.debugRestartFrame), stackFrame.canRestart, async () => {
|
||||
const action = new Action('debug.callStack.restartFrame', localize('restartFrame', "Restart Frame"), ThemeIcon.asClassName(icons.debugRestartFrame), true, async () => {
|
||||
try {
|
||||
await stackFrame.restart();
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user