Guest User

Untitled

a guest
Feb 17th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. var setting: vscode.Uri = vscode.Uri.parse("untitled:" + "C:summary.txt");
  2. vscode.workspace.openTextDocument(setting).then((a: vscode.TextDocument) => {
  3. vscode.window.showTextDocument(a, 1, false);
  4. }, (error: any) => {
  5. console.error(error);
  6. debugger;
  7. });
  8.  
  9. ...
  10. var setting: vscode.Uri = vscode.Uri.parse("untitled:" + "C:summary.txt");
  11. vscode.workspace.openTextDocument(setting).then((a: vscode.TextDocument) => {
  12. vscode.window.showTextDocument(a, 1, false).then(e => {
  13. e.edit(edit => {
  14. edit.insert(new vscode.Position(0, 0), "Your advertisement here");
  15. });
  16. });
  17. }, (error: any) => {
  18. console.error(error);
  19. debugger;
  20. });
  21. ...
Add Comment
Please, Sign In to add comment