MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getTabCloseSelectionOptions

Function getTabCloseSelectionOptions

src/lib/commands.js:23–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21import showFileInfo from "./showFileInfo";
22
23function getTabCloseSelectionOptions() {
24 return {
25 unsavedWarning:
26 strings["unsaved selected tabs warning"] ||
27 "Some selected tabs are not saved. Choose what to do.",
28 saveLabel: strings["save selected tabs"] || "Save selected tabs",
29 closeLabel: strings["close selected tabs"] || "Close selected tabs",
30 saveWarning:
31 strings["save selected tabs warning"] ||
32 "Are you sure you want to save and close the selected tabs?",
33 closeWarning:
34 strings["close selected tabs warning"] ||
35 "Are you sure you want to close the selected tabs? You will lose the unsaved changes and this action cannot be reversed.",
36 };
37}
38
39function resolveReferenceFile(referenceFile) {
40 const { activeFile, getFile } = editorManager;

Callers 3

"close-tabs-to-left"Function · 0.85
"close-tabs-to-right"Function · 0.85
"close-other-tabs"Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected