Functions

Exported functions

JuliaWorkspaces.add_file!Function
add_file!(jw::JuliaWorkspace, file::TextFile)

Add a file to the workspace. If the file already exists, it will throw an error.

source
JuliaWorkspaces.remove_file!Function
remove_file!(jw::JuliaWorkspace, uri::URI)

Remove a file from the workspace. If the file does not exist, it will throw an error.

source
JuliaWorkspaces.get_julia_syntax_treeFunction
get_julia_syntax_tree(jw::JuliaWorkspace, uri::URI)

Get the syntax tree of a Julia file from the workspace.

Returns

  • The tuple (tree, diagnostics), where tree is the syntax tree and diagnostics is a vector of Diagnostic structs.
source
JuliaWorkspaces.get_diagnosticFunction
get_diagnostic(jw::JuliaWorkspace, uri::URI)

Get the diagnostics of a file from the workspace.

Returns

  • A vector of Diagnostic structs.
source

Private functions

JuliaWorkspaces.update_file!Function
update_file!(jw::JuliaWorkspace, file::TextFile)

Update a file in the workspace. If the file does not exist, it will throw an error.

source

URI helper functions (submodule URIs2)