private void OnSave(object sender, TextDocumentFileActionEventArgs e) { if (e.FileActionType == FileActionTypes.ContentSavedToDisk) { if (YarnPackage.Options != null && YarnPackage.Options.InstallOnSave) { string cwd = Path.GetDirectoryName(e.FilePath); YarnHelper.Install(cwd); } } }
private void Awake() { instance = this; }