Skip to content

Commit 8a92dea

Browse files
authored
Merge pull request #832 from julia-vscode/fix
parse entire file when checking is_parentof
2 parents dfe48e0 + 083b0a4 commit 8a92dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/requests/textdocument.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ function is_parentof(parent_path, child_path, server)
433433
end
434434
pdoc = Document(puri, content, false, server)
435435
setdocument!(server, URI2(puri), pdoc)
436-
CSTParser.parse(get_text(pdoc))
436+
CSTParser.parse(get_text(pdoc), true)
437437
if typof(pdoc.cst) === CSTParser.FileH
438438
pdoc.cst.val = getpath(pdoc)
439439
set_doc(pdoc.cst, pdoc)

0 commit comments

Comments
 (0)