(filePath: string)
| 154 | } |
| 155 | |
| 156 | async saveFile(filePath: string) { |
| 157 | const documents = this.#editorStore.documents.get(); |
| 158 | const document = documents[filePath]; |
| 159 | |
| 160 | if (document === undefined) { |
| 161 | return; |
| 162 | } |
| 163 | |
| 164 | await this.#filesStore.saveFile(filePath, document.value); |
| 165 | |
| 166 | const newUnsavedFiles = new Set(this.unsavedFiles.get()); |
| 167 | newUnsavedFiles.delete(filePath); |
| 168 | |
| 169 | this.unsavedFiles.set(newUnsavedFiles); |
| 170 | } |
| 171 | |
| 172 | async saveCurrentDocument() { |
| 173 | const currentDocument = this.currentDocument.get(); |
no outgoing calls
no test coverage detected