Resources - 2011-Team-Virgo/ProducDev-extension GitHub Wiki

Useful events

https://code.visualstudio.com/api/references/vscode-api

  • .window.onDidChangeActiveTextEditor - fires whenever the user selects a new file to edit
  • .workspace.onDidChangeTextDocument - fires whenever the user edits a file
  • .workspace.onDidCloseTextDocument | .onDidOpenTextDocument - fires on opening and closing text file, event includes file in question