Merge pull request #69606 from red1939/bug/vscode_crash
Keep GDScriptAnalyzer alive for whole parse()
This commit is contained in:
commit
18f7461db8
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue