Skip to content

Commit 34fbe9f

Browse files
authored
fix: HoverProvider get_iter crashing (#1003)
1 parent dc0c931 commit 34fbe9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/WorkbenchHoverProvider.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ class WorkbenchHoverProvider extends GObject.Object {
1212
}
1313

1414
findDiagnostics(context) {
15-
const iter = new Gtk.TextIter();
16-
context.get_iter(iter);
15+
const [, iter] = context.get_iter();
1716

1817
const line = iter.get_line();
1918
// Looks like line_offset starts at 0

0 commit comments

Comments
 (0)