提交 c626ef61 编写于 作者: I isidor

fixes #68136

上级 5d514816
...@@ -127,27 +127,20 @@ export class DebugEditorModelManager implements IWorkbenchContribution { ...@@ -127,27 +127,20 @@ export class DebugEditorModelManager implements IWorkbenchContribution {
range range
}); });
if (stackFrame.thread.stoppedDetails && stackFrame.thread.stoppedDetails.reason === 'exception') { result.push({
result.push({ options: DebugEditorModelManager.TOP_STACK_FRAME_DECORATION,
options: DebugEditorModelManager.TOP_STACK_FRAME_EXCEPTION_DECORATION, range: columnUntilEOLRange
range: columnUntilEOLRange });
});
} else {
result.push({
options: DebugEditorModelManager.TOP_STACK_FRAME_DECORATION,
range: columnUntilEOLRange
});
if (this.modelDataMap.has(modelUriStr)) { if (this.modelDataMap.has(modelUriStr)) {
const modelData = this.modelDataMap.get(modelUriStr); const modelData = this.modelDataMap.get(modelUriStr);
if (modelData.topStackFrameRange && modelData.topStackFrameRange.startLineNumber === stackFrame.range.startLineNumber && modelData.topStackFrameRange.startColumn !== stackFrame.range.startColumn) { if (modelData.topStackFrameRange && modelData.topStackFrameRange.startLineNumber === stackFrame.range.startLineNumber && modelData.topStackFrameRange.startColumn !== stackFrame.range.startColumn) {
result.push({ result.push({
options: DebugEditorModelManager.TOP_STACK_FRAME_INLINE_DECORATION, options: DebugEditorModelManager.TOP_STACK_FRAME_INLINE_DECORATION,
range: columnUntilEOLRange range: columnUntilEOLRange
}); });
}
modelData.topStackFrameRange = columnUntilEOLRange;
} }
modelData.topStackFrameRange = columnUntilEOLRange;
} }
} else { } else {
result.push({ result.push({
...@@ -307,13 +300,6 @@ export class DebugEditorModelManager implements IWorkbenchContribution { ...@@ -307,13 +300,6 @@ export class DebugEditorModelManager implements IWorkbenchContribution {
stickiness: DebugEditorModelManager.STICKINESS stickiness: DebugEditorModelManager.STICKINESS
}; };
private static TOP_STACK_FRAME_EXCEPTION_DECORATION: IModelDecorationOptions = {
isWholeLine: true,
inlineClassName: 'debug-remove-token-colors',
className: 'debug-top-stack-frame-exception-line',
stickiness: DebugEditorModelManager.STICKINESS
};
private static TOP_STACK_FRAME_INLINE_DECORATION: IModelDecorationOptions = { private static TOP_STACK_FRAME_INLINE_DECORATION: IModelDecorationOptions = {
beforeContentClassName: 'debug-top-stack-frame-column' beforeContentClassName: 'debug-top-stack-frame-column'
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册