summaryrefslogtreecommitdiff
path: root/modules/gdscript/language_server/gdscript_workspace.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2020-06-12 14:19:29 -0300
committerGeorge Marques <george@gmarqu.es>2020-07-20 11:38:40 -0300
commitb6a2628c48ce7639e5f42caf43525fc2b9dae450 (patch)
tree8f1ffee85a94eef0e90450ef5cd64ba7f0b8c800 /modules/gdscript/language_server/gdscript_workspace.cpp
parentdadfcd8aba8df696f7c608866a34b4e5ee55a0bf (diff)
Reenable GDScript LSP server
Diffstat (limited to 'modules/gdscript/language_server/gdscript_workspace.cpp')
-rw-r--r--modules/gdscript/language_server/gdscript_workspace.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/gdscript/language_server/gdscript_workspace.cpp b/modules/gdscript/language_server/gdscript_workspace.cpp
index 1e2637e7e1..776193e37c 100644
--- a/modules/gdscript/language_server/gdscript_workspace.cpp
+++ b/modules/gdscript/language_server/gdscript_workspace.cpp
@@ -28,9 +28,6 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
-// FIXME: Reenable LSP.
-#if 0
-
#include "gdscript_workspace.h"
#include "../gdscript.h"
@@ -121,7 +118,7 @@ void GDScriptWorkspace::reload_all_workspace_scripts() {
Map<String, ExtendGDScriptParser *>::Element *S = parse_results.find(path);
String err_msg = "Failed parse script " + path;
if (S) {
- err_msg += "\n" + S->get()->get_error();
+ err_msg += "\n" + S->get()->get_errors()[0].message;
}
ERR_CONTINUE_MSG(err != OK, err_msg);
}
@@ -621,5 +618,3 @@ GDScriptWorkspace::~GDScriptWorkspace() {
remove_cache_parser(E->get());
}
}
-
-#endif