Skip to content

Commit bf3e635

Browse files
committed
fix: hide datatip view if cursor moved to position without datatip
1 parent 8abd353 commit bf3e635

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/datatip-manager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ module.exports = class DatatipManager {
284284
if (provider) {
285285
const datatip = await provider.datatip(editor, position, evt);
286286

287-
if (datatip) {
287+
if (!datatip) {
288+
this.unmountDataTip();
289+
} else {
288290
// omit update of UI if the range is the same as the current one
289291
if (this.currentMarkerRange != null && datatip.range.intersectsWith(this.currentMarkerRange)) { return; }
290292
// make sure we are still on the same position

0 commit comments

Comments
 (0)