You've already forked godot
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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user