(callListener = false)
| 119 | // nothing to do, since file watchers keep everything updated |
| 120 | } |
| 121 | public dispose(callListener = false): void { |
| 122 | this.isPackageDir = false; |
| 123 | while(this.fileWatchers.length){ |
| 124 | this.fileWatchers.pop()?.close(); |
| 125 | } |
| 126 | this.isDisposed = true; |
| 127 | if(callListener){ |
| 128 | this.callPreviewListener(); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | // Is only called once as part of the constructor |
| 133 | // It is expected that this instance will be disposed if this method returns false |
no outgoing calls
no test coverage detected