Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Reacto to editor model changing.
Fixes, #15498, #15497, #15496

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
  • Loading branch information
tsmaeder committed Apr 24, 2025
commit 076c5ff97b1dd61be9cbd882c31c7d37de6f001b
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ export class DebugBreakpointWidget implements Disposable {
}
}));
this.toDispose.push(this.zone.onDidLayoutChange(dimension => this.layout(dimension)));
this.toDispose.push(this.editor.getControl().onDidChangeModel(() => {
this.zone.hide();
}));
this.toDispose.push(input.getControl().onDidChangeModelContent(() => {
const heightInLines = input.getControl().getModel()?.getLineCount() || 0 + 1;
const heightInLines = (input.getControl().getModel()?.getLineCount() || 0) + 1;
this.zone.layout(heightInLines);
this.updatePlaceholder();
}));
Expand Down
1 change: 1 addition & 0 deletions packages/debug/src/browser/editor/debug-editor-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export class DebugEditorModel implements Disposable {
if (model) {
this.toDisposeOnModelChange.push(model.onDidChangeDecorations(() => this.updateBreakpoints()));
}
this.update();
this.render();
}

Expand Down
Loading