(path)
| 53 | this.memoryOperationGeneration = 0; |
| 54 | this.memoryOperationAbortControllers = new Set(); |
| 55 | } |
| 56 | |
| 57 | async openToFile(path) { |
| 58 | if (!path) return; |
| 59 | const dir = path.indexOf('/') !== -1 ? path.slice(0, path.indexOf('/')) : null; |
| 60 | if (dir) this.expandedDirs.add(dir); |
| 61 | const opened = await this.open(); |
| 62 | if (!opened) return; |
| 63 | await this._selectFile(path); |
| 64 | } |
| 65 |
no test coverage detected