Skip to content

Commit

Permalink
Merge pull request #1085 from julia-vscode/sp/more-textdocument-fixes
Browse files Browse the repository at this point in the history
More TextDocument fixes
  • Loading branch information
davidanthoff committed May 17, 2022
2 parents f51abc6 + 5ab5dfa commit 93a1a32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/requests/textdocument.jl
Expand Up @@ -320,7 +320,7 @@ function is_parentof(parent_path, child_path, server)
isa(err, Base.IOError) || isa(err, Base.SystemError) || rethrow()
return false
end
pdoc = Document(puri, content, false, server)
pdoc = Document(TextDocument(puri, content, 0), false, server)
setdocument!(server, puri, pdoc)
CSTParser.parse(get_text(pdoc), true)
if headof(pdoc.cst) === :file
Expand Down
2 changes: 1 addition & 1 deletion src/requests/workspace.jl
Expand Up @@ -26,7 +26,7 @@ function workspace_didChangeWatchedFiles_notification(params::DidChangeWatchedFi
continue
end

set_text!(doc, content)
set_text_document!(doc, TextDocument(uri, content, 0))
set_is_workspace_file(doc, true)
parse_all(doc, server)
end
Expand Down

0 comments on commit 93a1a32

Please sign in to comment.