We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca92c3a commit b4ae362Copy full SHA for b4ae362
core/autocomplete/ast.ts
@@ -28,6 +28,10 @@ export async function getTreePathAtCursor(
28
while (path[path.length - 1].childCount > 0) {
29
let foundChild = false;
30
for (let child of path[path.length - 1].children) {
31
+ if (child.type == "import_statement") {
32
+ path.push(child);
33
+ }
34
+
35
if (child.startIndex <= cursorIndex && child.endIndex >= cursorIndex) {
36
path.push(child);
37
foundChild = true;
0 commit comments