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

Method removeFileByFilename

static/panes/tree.ts:328–340  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

326 }
327
328 private removeFileByFilename(filename: string) {
329 const file = this.multifileService.removeFileByFilename(filename);
330 if (file) {
331 if (file.isOpen) {
332 const editor = this.hub.getEditorById(file.editorId);
333 if (editor) {
334 editor.container.close();
335 }
336 }
337 }
338
339 this.refresh();
340 }
341
342 private addRowToTreelist(file: MultifileFile) {
343 const item = $(this.rowTemplate.children()[0].cloneNode(true));

Callers 1

askForOverwriteAndDoMethod · 0.95

Calls 3

refreshMethod · 0.95
getEditorByIdMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected