@lvce-editor/title-bar-worker 4.6.1 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/titleBarWorkerMain.js +22 -2
- package/package.json +1 -1
|
@@ -1605,6 +1605,7 @@ const SourceControl = 'Source Control';
|
|
|
1605
1605
|
const Terminal$1 = 'Terminal';
|
|
1606
1606
|
const ToggleDeveloperTools = 'Toggle Developer Tools';
|
|
1607
1607
|
const View$1 = 'View';
|
|
1608
|
+
const ViewLicense = 'View License';
|
|
1608
1609
|
const WordWrap = 'Word Wrap';
|
|
1609
1610
|
const Extensions = 'Extensions';
|
|
1610
1611
|
const AddCursorAbove = 'Add Cursor Above';
|
|
@@ -1937,7 +1938,7 @@ const getMenuEntries$e = () => {
|
|
|
1937
1938
|
id: 'fullScreen',
|
|
1938
1939
|
keyboardShortCut: 'F11',
|
|
1939
1940
|
label: fullScreen()
|
|
1940
|
-
}, entry('zenMode', 'Zen Mode', 'Ctrl+K Z'), entry('centeredLayout', 'Centered Layout'), menuEntrySeparator, checkedEntry('menuBar', 'Menu Bar'), commandEntry('primarySideBar', 'Primary Side Bar', 'Layout.toggleSideBar', 'Ctrl+B'), commandEntry('secondarySideBar', 'Secondary Side Bar', 'Layout.toggleSecondarySideBar', 'Ctrl+Alt+B'), commandEntry('statusBar', 'Status Bar', 'Layout.toggleStatusBar', '', Checked), commandEntry('panel', 'Panel', 'Layout.togglePanel', 'Ctrl+J', Checked), menuEntrySeparator,
|
|
1941
|
+
}, entry('zenMode', 'Zen Mode', 'Ctrl+K Z'), entry('centeredLayout', 'Centered Layout'), menuEntrySeparator, checkedEntry('menuBar', 'Menu Bar'), commandEntry('primarySideBar', 'Primary Side Bar', 'Layout.toggleSideBar', 'Ctrl+B'), commandEntry('secondarySideBar', 'Secondary Side Bar', 'Layout.toggleSecondarySideBar', 'Ctrl+Alt+B'), commandEntry('statusBar', 'Status Bar', 'Layout.toggleStatusBar', '', Checked), commandEntry('panel', 'Panel', 'Layout.togglePanel', 'Ctrl+J', Checked), menuEntrySeparator, commandEntry('movePrimarySideBarLeft', 'Move Primary Side Bar Left', 'Layout.moveSideBarLeft'), entry('activityBarPosition', 'Activity Bar Position'), entry('panelPosition', 'Panel Position'), entry('alignPanel', 'Align Panel'), entry('tabBar', 'Tab Bar'), entry('editorActionsPosition', 'Editor Actions Position'), menuEntrySeparator, entry('minimap', 'Minimap'), entry('breadcrumbs', 'Breadcrumbs'), entry('stickyScroll', 'Sticky Scroll'), entry('renderWhitespace', 'Render Whitespace'), checkedEntry('renderControlCharacters', 'Render Control Characters'), menuEntrySeparator, commandEntry('zoomIn', 'Zoom In', 'Window.zoomIn', 'Ctrl+='), commandEntry('zoomOut', 'Zoom Out', 'Window.zoomOut', 'Ctrl+-'), commandEntry('resetZoom', 'Reset Zoom', 'Window.zoomReset', 'Ctrl+NumPad0')];
|
|
1941
1942
|
};
|
|
1942
1943
|
|
|
1943
1944
|
const cut = () => {
|
|
@@ -2130,6 +2131,7 @@ const getMenuEntries$c = () => {
|
|
|
2130
2131
|
*/
|
|
2131
2132
|
const UiStrings = {
|
|
2132
2133
|
AutoSave: 'Auto Save',
|
|
2134
|
+
CloseFolder: 'Close Folder',
|
|
2133
2135
|
Exit: 'Exit',
|
|
2134
2136
|
NewFile: 'New File',
|
|
2135
2137
|
NewWindow: 'New Window',
|
|
@@ -2137,10 +2139,14 @@ const UiStrings = {
|
|
|
2137
2139
|
OpenFolder: 'Open Folder',
|
|
2138
2140
|
OpenRecent: 'Open Recent',
|
|
2139
2141
|
Save: 'Save',
|
|
2140
|
-
SaveAll: 'Save All'
|
|
2142
|
+
SaveAll: 'Save All'
|
|
2143
|
+
};
|
|
2141
2144
|
const autoSave = () => {
|
|
2142
2145
|
return i18nString(UiStrings.AutoSave);
|
|
2143
2146
|
};
|
|
2147
|
+
const closeFolder = () => {
|
|
2148
|
+
return i18nString(UiStrings.CloseFolder);
|
|
2149
|
+
};
|
|
2144
2150
|
const newFile = () => {
|
|
2145
2151
|
return i18nString(UiStrings.NewFile);
|
|
2146
2152
|
};
|
|
@@ -2236,6 +2242,11 @@ const getMenuEntries$b = async (platform, autoSave$1, hasActiveTextEditor = fals
|
|
|
2236
2242
|
flags: isAutoSaveEnabled(autoSaveValue) ? Checked : Unchecked,
|
|
2237
2243
|
id: 'autoSave',
|
|
2238
2244
|
label: autoSave()
|
|
2245
|
+
}, menuEntrySeparator, {
|
|
2246
|
+
command: 'Workspace.close',
|
|
2247
|
+
flags: RestoreFocus,
|
|
2248
|
+
id: 'closeFolder',
|
|
2249
|
+
label: closeFolder()
|
|
2239
2250
|
}];
|
|
2240
2251
|
if (platform === Electron) {
|
|
2241
2252
|
entries.push(menuEntrySeparator, {
|
|
@@ -2293,6 +2304,9 @@ const toggleDeveloperTools = () => {
|
|
|
2293
2304
|
const openProcessExplorer = () => {
|
|
2294
2305
|
return i18nString(OpenProcessExplorer);
|
|
2295
2306
|
};
|
|
2307
|
+
const viewLicense = () => {
|
|
2308
|
+
return i18nString(ViewLicense);
|
|
2309
|
+
};
|
|
2296
2310
|
const about = () => {
|
|
2297
2311
|
return i18nString(About);
|
|
2298
2312
|
};
|
|
@@ -2320,6 +2334,12 @@ const getMenuEntries$9 = async platform => {
|
|
|
2320
2334
|
if (entries.length > 0) {
|
|
2321
2335
|
entries.push(menuEntrySeparator);
|
|
2322
2336
|
}
|
|
2337
|
+
entries.push({
|
|
2338
|
+
command: 'License.openLicense',
|
|
2339
|
+
flags: None,
|
|
2340
|
+
id: 'viewLicense',
|
|
2341
|
+
label: viewLicense()
|
|
2342
|
+
});
|
|
2323
2343
|
entries.push({
|
|
2324
2344
|
command: 'About.showAbout',
|
|
2325
2345
|
flags: None,
|