Skip to content

Commit

Permalink
call update_exports from LSP didSave function
Browse files Browse the repository at this point in the history
exports in the inspector were not properly appearing when a gdscript was saved using an external IDE
this commit adds a call to GDScript::UpdateExports toward the end of GDScriptTextDocument::didSave
  • Loading branch information
awardell authored and Streq committed Feb 9, 2023
1 parent c7adbcd commit 0965e48
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ void GDScriptTextDocument::didSave(const Variant &p_param) {
} else {
scr->reload(true);
}
scr->update_exports();
ScriptEditor::get_singleton()->update_docs_from_script(scr);
}
}
Expand Down

0 comments on commit 0965e48

Please sign in to comment.