MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / removeFile

Method removeFile

static/panes/tree.ts:314–326  ·  view source on GitHub ↗
(fileId: number)

Source from the content-addressed store, hash-verified

312 }
313
314 private removeFile(fileId: number) {
315 const file = this.multifileService.removeFileByFileId(fileId);
316 if (file) {
317 if (file.isOpen) {
318 const editor = this.hub.getEditorById(file.editorId);
319 if (editor) {
320 editor.container.close();
321 }
322 }
323 }
324
325 this.refresh();
326 }
327
328 private removeFileByFilename(filename: string) {
329 const file = this.multifileService.removeFileByFilename(filename);

Callers 2

addRowToTreelistMethod · 0.95
openZipFileMethod · 0.95

Calls 4

refreshMethod · 0.95
removeFileByFileIdMethod · 0.80
getEditorByIdMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected