toggleDirty()

in src/controller/lintController.ts [28:36]


  toggleDirty(event: vscode.TextDocumentChangeEvent) {
    const document = event.document;
    if (document.isDirty) {
      this.dirtyFiles.add(document.uri.fsPath);
      // if the change was an empty undo, it was reset to its natural state
    } else if (event.reason && event.contentChanges) {
      this.dirtyFiles.delete(document.uri.fsPath);
    }
  }