Skip to content

Commit c21ea2c

Browse files
tsmaederlaemmleint
authored andcommitted
Reacto to editor model changing. (eclipse-theia#15509)
Fixes, eclipse-theia#15498, eclipse-theia#15497, eclipse-theia#15496 Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
1 parent 590ab91 commit c21ea2c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/debug/src/browser/editor/debug-breakpoint-widget.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ export class DebugBreakpointWidget implements Disposable {
160160
}
161161
}));
162162
this.toDispose.push(this.zone.onDidLayoutChange(dimension => this.layout(dimension)));
163+
this.toDispose.push(this.editor.getControl().onDidChangeModel(() => {
164+
this.zone.hide();
165+
}));
163166
this.toDispose.push(input.getControl().onDidChangeModelContent(() => {
164167
const heightInLines = (input.getControl().getModel()?.getLineCount() || 0) + 1;
165168
this.zone.layout(heightInLines);

packages/debug/src/browser/editor/debug-editor-model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export class DebugEditorModel implements Disposable {
132132
if (model) {
133133
this.toDisposeOnModelChange.push(model.onDidChangeDecorations(() => this.updateBreakpoints()));
134134
}
135+
this.update();
135136
this.render();
136137
}
137138

0 commit comments

Comments
 (0)