mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Implement DocumentLink of GDScript LSP Server
This commit is contained in:
parent
d1a6964d39
commit
6a8303f82f
7 changed files with 99 additions and 4 deletions
|
@ -475,6 +475,15 @@ void GDScriptWorkspace::resolve_related_symbols(const lsp::TextDocumentPositionP
|
|||
}
|
||||
}
|
||||
|
||||
void GDScriptWorkspace::resolve_document_links(const String &p_uri, List<lsp::DocumentLink> &r_list) {
|
||||
if (const ExtendGDScriptParser *parser = get_parse_successed_script(get_file_path(p_uri))) {
|
||||
const List<lsp::DocumentLink> &links = parser->get_document_links();
|
||||
for (const List<lsp::DocumentLink>::Element *E = links.front(); E; E = E->next()) {
|
||||
r_list.push_back(E->get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Dictionary GDScriptWorkspace::generate_script_api(const String &p_path) {
|
||||
Dictionary api;
|
||||
if (const ExtendGDScriptParser *parser = get_parse_successed_script(p_path)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue