Refactor DocData into core and editor (DocTools) parts
This commit is contained in:
parent
d0e7d9b62f
commit
42bfa16996
30 changed files with 390 additions and 261 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include "core/config/project_settings.h"
|
||||
#include "core/io/json.h"
|
||||
#include "core/os/copymem.h"
|
||||
#include "editor/doc_tools.h"
|
||||
#include "editor/editor_log.h"
|
||||
#include "editor/editor_node.h"
|
||||
|
||||
|
|
@ -212,7 +213,7 @@ Dictionary GDScriptLanguageProtocol::initialize(const Dictionary &p_params) {
|
|||
void GDScriptLanguageProtocol::initialized(const Variant &p_params) {
|
||||
lsp::GodotCapabilities capabilities;
|
||||
|
||||
DocData *doc = EditorHelp::get_doc_data();
|
||||
DocTools *doc = EditorHelp::get_doc_data();
|
||||
for (Map<String, DocData::ClassDoc>::Element *E = doc->class_list.front(); E; E = E->next()) {
|
||||
lsp::GodotNativeClassInfo gdclass;
|
||||
gdclass.name = E->get().name;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
#include "../gdscript_parser.h"
|
||||
#include "core/config/project_settings.h"
|
||||
#include "core/object/script_language.h"
|
||||
#include "editor/doc_tools.h"
|
||||
#include "editor/editor_file_system.h"
|
||||
#include "editor/editor_help.h"
|
||||
#include "editor/editor_node.h"
|
||||
|
|
@ -189,7 +190,7 @@ Error GDScriptWorkspace::initialize() {
|
|||
return OK;
|
||||
}
|
||||
|
||||
DocData *doc = EditorHelp::get_doc_data();
|
||||
DocTools *doc = EditorHelp::get_doc_data();
|
||||
for (Map<String, DocData::ClassDoc>::Element *E = doc->class_list.front(); E; E = E->next()) {
|
||||
const DocData::ClassDoc &class_data = E->value();
|
||||
lsp::DocumentSymbol class_symbol;
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@
|
|||
#ifndef GODOT_LSP_H
|
||||
#define GODOT_LSP_H
|
||||
|
||||
#include "core/doc_data.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/templates/list.h"
|
||||
#include "editor/doc_data.h"
|
||||
|
||||
namespace lsp {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue