Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0829c4b

Browse files
authored
Fix intellisense popping up in the wrong spot when first typing in a cell (#8018)
1 parent c264305 commit 0829c4b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

news/2 Fixes/8009.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix intellisense popping up in the wrong spot when first typing in a cell.

src/datascience-ui/react-common/monacoEditor.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ export class MonacoEditor extends React.Component<IMonacoEditorProps, IMonacoEdi
370370
`position: absolute; left: ${rect.left}px; top: ${rect.top}px; width:${width ? width : rect.width}px`);
371371
}
372372
}
373+
} else {
374+
// If widget parent isn't set yet, try again later
375+
this.updateWidgetParent(this.state.editor);
376+
this.throttledUpdateWidgetPosition(width);
373377
}
374378
}
375379

0 commit comments

Comments
 (0)