提交 9a34865c 编写于 作者: I isidor

debug: make conditional breakpoints orange for now.

上级 670f60ff
......@@ -255,7 +255,8 @@ export class DebugEditorModelManager implements IWorkbenchContribution {
return breakpoints.map((breakpoint) => {
return {
options: (!breakpoint.enabled || !activated) ? DebugEditorModelManager.BREAKPOINT_DISABLED_DECORATION :
debugActive && !breakpoint.verified ? DebugEditorModelManager.BREAKPOINT_UNVERIFIED_DECORATION : DebugEditorModelManager.BREAKPOINT_DECORATION,
debugActive && !breakpoint.verified ? DebugEditorModelManager.BREAKPOINT_UNVERIFIED_DECORATION :
breakpoint.condition ? DebugEditorModelManager.CONDITIONAL_BREAKPOINT_DECORATION : DebugEditorModelManager.BREAKPOINT_DECORATION,
range: createRange(breakpoint.lineNumber, 1, breakpoint.lineNumber, 2)
};
});
......@@ -268,6 +269,11 @@ export class DebugEditorModelManager implements IWorkbenchContribution {
stickiness: editorcommon.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
};
private static CONDITIONAL_BREAKPOINT_DECORATION: editorcommon.IModelDecorationOptions = {
glyphMarginClassName: 'debug-breakpoint-conditional-glyph',
stickiness: editorcommon.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
};
private static BREAKPOINT_DISABLED_DECORATION: editorcommon.IModelDecorationOptions = {
glyphMarginClassName: 'debug-breakpoint-glyph-disabled',
stickiness: editorcommon.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
......
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="#E89208"><circle cx="8" cy="8" r="5"/></g></g></svg>
\ No newline at end of file
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="#E89208"><circle cx="8" cy="8" r="5"/></g></g></svg>
\ No newline at end of file
......@@ -49,6 +49,10 @@
background: url('breakpoint.svg') center center no-repeat;
}
.monaco-editor .debug-breakpoint-conditional-glyph {
background: url('breakpoint-conditional.svg') center center no-repeat;
}
.monaco-editor .debug-top-stack-frame-glyph.debug-breakpoint-glyph {
background: url('current-and-breakpoint.svg') center center no-repeat;
}
......@@ -271,6 +275,10 @@
background: url('breakpoint-dark.svg') center center no-repeat;
}
.monaco-editor.vs-dark .debug-breakpoint-conditional-glyph {
background: url('breakpoint-conditional-dark.svg') center center no-repeat;
}
.monaco-editor.vs-dark .debug-breakpoint-glyph-disabled {
background: url('breakpoint-disabled-dark.svg') center center no-repeat;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册