Inline values provider isn't called with new view port when scrolling editor content

fixes #119559
This commit is contained in:
isidor 2021-03-29 15:26:34 +02:00
parent 2bf76afac6
commit 13bbe762f5
No known key found for this signature in database
GPG key ID: F9280366A8370105

View file

@ -250,7 +250,15 @@ export class DebugEditorContribution implements IDebugEditorContribution {
DebugEditorContribution.MEMOIZER.clear();
await this.updateInlineValueDecorations(stackFrame);
}));
this.toDispose.push(this.editor.onDidScrollChange(() => this.hideHoverWidget));
this.toDispose.push(this.editor.onDidScrollChange(() => {
this.hideHoverWidget();
// Inline value provider should get called on view port change
const model = this.editor.getModel();
if (model && InlineValuesProviderRegistry.has(model)) {
this.updateInlineValuesScheduler.schedule();
}
}));
this.toDispose.push(this.debugService.onDidChangeState((state: State) => {
if (state !== State.Stopped) {
this.toggleExceptionWidget();