Skip to content

Commit 88e4854

Browse files
committed
fix: return right away if the element is not created
1 parent 7396906 commit 88e4854

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/datatip-manager.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,13 @@ export class DataTipManager {
420420
* @return a composite object to release references at a later stage
421421
*/
422422
mountDataTipWithMarker(editor: TextEditor, range: Range, position: Point, view: ViewContainer): CompositeDisposable {
423+
424+
// TODO do we need this?
425+
if (!view.element) {
426+
// if the element is not created return right away
427+
return this.dataTipMarkerDisposables
428+
}
429+
423430
let disposables = new CompositeDisposable()
424431

425432
// Highlight the text indicated by the datatip's range.

0 commit comments

Comments
 (0)