diff options
author | geequlim <geequlim@gmail.com> | 2019-10-04 20:53:40 +0800 |
---|---|---|
committer | geequlim <geequlim@gmail.com> | 2019-10-04 23:00:33 +0800 |
commit | e199488bc7f8c37e14ea414fd7986272b50f40ff (patch) | |
tree | 6a494e0ddc79297f97beb154c617941400e8ba83 /modules/gdscript/language_server/lsp.hpp | |
parent | 39813939fc7248226ae698ee727d87d1901f6c3a (diff) | |
download | redot-engine-e199488bc7f8c37e14ea414fd7986272b50f40ff.tar.gz |
Add custom api `textDocument/nativeSymbol` to allow inspect native symbols from LSP clients
Diffstat (limited to 'modules/gdscript/language_server/lsp.hpp')
-rw-r--r-- | modules/gdscript/language_server/lsp.hpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/gdscript/language_server/lsp.hpp b/modules/gdscript/language_server/lsp.hpp index fb970206c7..a70382121c 100644 --- a/modules/gdscript/language_server/lsp.hpp +++ b/modules/gdscript/language_server/lsp.hpp @@ -1134,7 +1134,7 @@ struct DocumentSymbol { */ Vector<DocumentSymbol> children; - _FORCE_INLINE_ Dictionary to_json(bool with_doc = false) const { + Dictionary to_json(bool with_doc = false) const { Dictionary dict; dict["name"] = name; dict["detail"] = detail; @@ -1233,6 +1233,17 @@ struct DocumentSymbol { } }; +struct NativeSymbolInspectParams { + + String native_class; + String symbol_name; + + void load(const Dictionary &p_params) { + native_class = p_params["native_class"]; + symbol_name = p_params["symbol_name"]; + } +}; + /** * Enum of known range kinds */ |