/// <summary> /// Called when the current document is saved, /// no matter if the document is a Progress file or not /// </summary> public static void DoNppDocumentSaved() { // the user can open a .txt and save it as a .p DoNppDocumentSwitched(); // update function prototypes if (IsCurrentFileProgress) { ProGenerateCode.UpdateFunctionPrototypesIfNeeded(true); } // if it's a conf file, import it ShareExportConf.TryToImportFile(CurrentFilePath); }
/// <summary> /// Called when the current document is saved, /// no matter if the document is a Progress file or not /// </summary> public static void DoNppDocumentSaved() { // if it's a conf file, import it ShareExportConf.TryToImportFile(Npp.CurrentFileInfo.Path); if (!Npp.CurrentFileInfo.IsProgress) { return; } // Display parser errors if any if (Config.Instance.DisplayParserErrorsOnSave && Npp.CurrentFileInfo.IsCompilable) { ProCodeFormat.DisplayParserErrors(true); } // update function prototypes ProGenerateCode.Factory.UpdateFunctionPrototypesIfNeeded(true); }