提交 cd2a827f 编写于 作者: I isidor

breakpointEditorContribution: do not listen before a debug adapter is registered

上级 da1b4248
......@@ -35,6 +35,7 @@ import { isSafari } from 'vs/base/browser/browser';
import { registerThemingParticipant, themeColorFromId } from 'vs/platform/theme/common/themeService';
import { registerColor } from 'vs/platform/theme/common/colorRegistry';
import { ILabelService } from 'vs/platform/label/common/label';
import { debugAdapterRegisteredEmitter } from 'vs/workbench/contrib/debug/browser/debugConfigurationManager';
const $ = dom.$;
......@@ -167,8 +168,11 @@ export class BreakpointEditorContribution implements IBreakpointEditorContributi
@ILabelService private readonly labelService: ILabelService
) {
this.breakpointWidgetVisible = CONTEXT_BREAKPOINT_WIDGET_VISIBLE.bindTo(contextKeyService);
this.registerListeners();
this.setDecorationsScheduler = new RunOnceScheduler(() => this.setDecorations(), 30);
debugAdapterRegisteredEmitter.event(() => {
this.registerListeners();
this.setDecorationsScheduler.schedule();
});
}
private registerListeners(): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册