private void scintilla_OnBeforeShowingAutoComplete(object sender, EventArgs e) { if (_editorTextModifiedSinceLastCopy) { UpdateScriptObjectWithLatestTextInWindow(); } AutoComplete.ConstructCache(_script); }