void Connect_DocumentOpened(Document Document) { StaDynParser parser = new StaDynParser(); parser.parseAll(); //Document.Activate(); SourceHelper.refreshHighlighting(Document.FullName); }
public int OnAfterSave(uint docCookie) { //StaDynParser parser = new StaDynParser(); //parser.parseAll(); SourceHelper.refreshHighlighting(); //Must save file again because refreshHighlighting "dirties" the code. string file = FileUtilities.Instance.getCurrentOpenDocumentFilePath(); FileUtilities.Instance.SaveDocument(file); return(VSConstants.S_OK); }