mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 13:43:15 +00:00
Merge pull request #69606 from red1939/bug/vscode_crash
Keep GDScriptAnalyzer alive for whole parse()
This commit is contained in:
commit
18f7461db8
@ -844,8 +844,9 @@ Error ExtendGDScriptParser::parse(const String &p_code, const String &p_path) {
|
||||
lines = p_code.split("\n");
|
||||
|
||||
Error err = GDScriptParser::parse(p_code, p_path, false);
|
||||
GDScriptAnalyzer analyzer(this);
|
||||
|
||||
if (err == OK) {
|
||||
GDScriptAnalyzer analyzer(this);
|
||||
err = analyzer.analyze();
|
||||
}
|
||||
update_diagnostics();
|
||||
|
Loading…
Reference in New Issue
Block a user