Example #1
0
 public EditorScript Add(IEditorScript child)
 {
   if (_children == null)
     _children = new List<IEditorScript>();
   _children.Add(child);
   return this;
 }
Example #2
0
 public async Task Execute(IEditorScript script)
 {
   this.SoapAction = script.Action;
   var text = await script.GetScript();
   inputEditor.Document.Insert(0, text + Environment.NewLine + Environment.NewLine);
   if (script.AutoRun)
     Submit(text, script.PreferredOutput);
 }
 public void Execute(IEditorScript script)
 {
   this.SoapAction = script.Action;
   inputEditor.Document.Insert(0, script.Script + Environment.NewLine + Environment.NewLine);
   if (script.AutoRun)
     Submit(script.Script, script.PreferredOutput);
 }
Example #4
0
 private void PrimeIntellisenseProviders(IEditorScript script) {
     // Prime variable provider
     UIThreadHelper.Instance.Invoke(() => {
         var broker = ExportProvider.GetExportedValue<ICompletionBroker>();
         broker.TriggerCompletion(script.View);
         broker.DismissAllSessions(script.View);
     });
 }