1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Add custom api textDocument/nativeSymbol to allow inspect native symbols from LSP clients

This commit is contained in:
geequlim
2019-10-04 20:53:40 +08:00
parent 39813939fc
commit e199488bc7
6 changed files with 58 additions and 5 deletions

View File

@@ -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
*/