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);
         }
     }
 }
Example #2
0
 private void Awake()
 {
     instance = this;
 }