提交 7ae54ca2 编写于 作者: I isidor

breakpoint widget: use same mode for coloring as the underlying editor

上级 835a1ce6
......@@ -221,6 +221,9 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
this.input = <IActiveCodeEditor>scopedInstatiationService.createInstance(CodeEditorWidget, container, options, codeEditorWidgetOptions);
CONTEXT_IN_BREAKPOINT_WIDGET.bindTo(scopedContextKeyService).set(true);
const model = this.modelService.createModel('', null, uri.parse(`${DEBUG_SCHEME}:${this.editor.getId()}:breakpointinput`), true);
if (this.editor.hasModel()) {
model.setMode(this.editor.getModel().getLanguageIdentifier());
}
this.input.setModel(model);
this.toDispose.push(model);
const setDecorations = () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册