static void UpdateContext(TypeScriptContext context, ITextEditor editor)
 {
     if (IsFileInsideProject(editor.FileName)) {
         UpdateAllOpenFiles(context);
     } else {
         context.UpdateFile(editor.FileName, editor.Document.Text);
     }
 }
 static void UpdateContext(TypeScriptContext context, FileName fileName)
 {
     ITextBuffer fileContent = GetFileContent(fileName);
     context.UpdateFile(fileName, fileContent.Text);
 }
 protected void UpdateFile(TypeScriptContext context, FileName fileName)
 {
     context.UpdateFile(fileName, TypeScriptService.GetFileContents(fileName));
 }