Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
GDScriptWorkspace
實驗性: This class may be changed or removed in future versions.
繼承: RefCounted < Object
Workspace related language server functionality.
說明
Provides language server functionality related to the workspace.
方法
void |
apply_new_signal(obj: Object, function: String, args: PackedStringArray) |
void |
didDeleteFiles(params: Dictionary) |
generate_script_api(path: String) |
|
get_file_path(uri: String) |
|
get_file_uri(path: String) const |
|
parse_local_script(path: String) |
|
parse_script(path: String, content: String) |
|
void |
publish_diagnostics(path: String) |
方法說明
void apply_new_signal(obj: Object, function: String, args: PackedStringArray) 🔗
已棄用: Might result in unwanted side effects for connected clients.
void didDeleteFiles(params: Dictionary) 🔗
已棄用: Accessing LSP endpoints directly might lead to unwanted side effects. Connect to the server via TCP, like a regular language server client.
Dictionary generate_script_api(path: String) 🔗
Returns the interface of the script in a machine-readable format.
String get_file_path(uri: String) 🔗
Converts a URI to a file path.
String get_file_uri(path: String) const 🔗
Converts a file path to a URI.
Error parse_local_script(path: String) 🔗
已棄用: Might result in unwanted side effects for connected clients.
Error parse_script(path: String, content: String) 🔗
已棄用: Might result in unwanted side effects for connected clients.
void publish_diagnostics(path: String) 🔗
已棄用: Might result in unwanted side effects for connected clients.