Functions
Exported functions
JuliaWorkspaces.add_file! — Functionadd_file!(jw::JuliaWorkspace, file::TextFile)Add a file to the workspace. If the file already exists, it will throw an error.
JuliaWorkspaces.remove_file! — Functionremove_file!(jw::JuliaWorkspace, uri::URI)Remove a file from the workspace. If the file does not exist, it will throw an error.
JuliaWorkspaces.remove_all_children! — Functionremove_all_children!(jw::JuliaWorkspace, uri::URI)Remove all children of a folder from the workspace.
JuliaWorkspaces.get_text_files — Functionget_text_files(jw::JuliaWorkspace)Get all text files from the workspace.
Returns
- A set of URIs.
JuliaWorkspaces.get_julia_files — Functionget_julia_files(jw::JuliaWorkspace)Get all Julia files from the workspace.
Returns
- A set of URIs.
JuliaWorkspaces.has_file — Functionhas_file(jw, uri)Check if a file exists in the workspace.
JuliaWorkspaces.get_text_file — Functionget_text_file(jw::JuliaWorkspace, uri::URI)Get a text file from the workspace. If the file does not exist, it will throw an error.
Returns
- A
TextFilestruct.
JuliaWorkspaces.get_julia_syntax_tree — Functionget_julia_syntax_tree(jw::JuliaWorkspace, uri::URI)Get the syntax tree of a Julia file from the workspace.
Returns
- The tuple
(tree, diagnostics), wheretreeis the syntax tree anddiagnosticsis a vector ofDiagnosticstructs.
JuliaWorkspaces.get_toml_syntax_tree — Functionget_toml_syntax_tree(jw::JuliaWorkspace, uri::URI)Get the syntax tree of a TOML file from the workspace.
JuliaWorkspaces.get_diagnostic — Functionget_diagnostic(jw::JuliaWorkspace, uri::URI)Get the diagnostics of a file from the workspace.
Returns
- A vector of
Diagnosticstructs.
JuliaWorkspaces.get_packages — Functionget_packages(jw::JuliaWorkspace)Get all packages from the workspace.
Returns
- A set of URIs.
JuliaWorkspaces.get_projects — Functionget_projects(jw::JuliaWorkspace)Get all projects from the workspace.
Returns
- A set of URIs.
JuliaWorkspaces.get_test_items — Functionget_test_items(jw::JuliaWorkspace, uri::URI)Get the test items that belong to a given URI of a workspace.
Returns
- an instance of the struct
TestDetails
get_test_items(jw::JuliaWorkspace)Get all test items of the workspace jw.
Returns
- an instance of the struct
TestDetails
JuliaWorkspaces.get_test_env — Functionget_test_env(jw::JuliaWorkspace, uri::URI)Get the test environment that belongs to the given uri of the workspace jw.
Returns
- an instance of the struct
JuliaTestEnv
Private functions
JuliaWorkspaces.get_files — Functionget_files(jw::JuliaWorkspace)Get all files from the workspace.
Returns
- A set of URIs.
JuliaWorkspaces.get_diagnostics — Functionget_diagnostics(jw::JuliaWorkspace)Get all diagnostics from the workspace.
Returns
- A vector of
Diagnosticstructs.
JuliaWorkspaces.update_file! — Functionupdate_file!(jw::JuliaWorkspace, file::TextFile)Update a file in the workspace. If the file does not exist, it will throw an error.
URI helper functions (submodule URIs2)
JuliaWorkspaces.URIs2.unescapeuri — Functionunescapeuri(str)Percent-decode a string according to the URI escaping rules.
JuliaWorkspaces.URIs2.escapeuri — Functionescapeuri(x)Apply URI percent-encoding to escape special characters in x.
JuliaWorkspaces.URIs2._bytes — Function_bytes(s::String)Get a Vector{UInt8}, a vector of bytes of a string.
JuliaWorkspaces.URIs2.escapepath — Functionescapepath(path)Escape the path portion of a URI, given the string path containing embedded / characters which separate the path segments.