@codingame/monaco-vscode-timeline-service-override
Advanced tools
Comparing version 8.0.3 to 8.0.4
{ | ||
"name": "@codingame/monaco-vscode-timeline-service-override", | ||
"version": "8.0.3", | ||
"version": "8.0.4", | ||
"keywords": [], | ||
@@ -29,4 +29,4 @@ "author": { | ||
"dependencies": { | ||
"vscode": "npm:@codingame/monaco-vscode-api@8.0.3" | ||
"vscode": "npm:@codingame/monaco-vscode-api@8.0.4" | ||
} | ||
} |
@@ -26,5 +26,5 @@ import { localize } from 'vscode/vscode/vs/nls'; | ||
const LOCAL_HISTORY_MENU_CONTEXT_KEY = ( (ContextKeyExpr.equals('timelineItem', LOCAL_HISTORY_MENU_CONTEXT_VALUE))); | ||
const LOCAL_HISTORY_ICON_ENTRY = registerIcon('localHistory-icon', Codicon.circleOutline, ( localize(10517, "Icon for a local history entry in the timeline view."))); | ||
const LOCAL_HISTORY_ICON_RESTORE = registerIcon('localHistory-restore', Codicon.check, ( localize(10518, "Icon for restoring contents of a local history entry."))); | ||
const LOCAL_HISTORY_ICON_ENTRY = registerIcon('localHistory-icon', Codicon.circleOutline, ( localize(10529, "Icon for a local history entry in the timeline view."))); | ||
const LOCAL_HISTORY_ICON_RESTORE = registerIcon('localHistory-restore', Codicon.check, ( localize(10530, "Icon for restoring contents of a local history entry."))); | ||
export { LOCAL_HISTORY_ICON_ENTRY, LOCAL_HISTORY_ICON_RESTORE, LOCAL_HISTORY_MENU_CONTEXT_KEY, LOCAL_HISTORY_MENU_CONTEXT_VALUE, getLocalHistoryDateFormatter }; |
@@ -30,5 +30,5 @@ import { localize2, localize } from 'vscode/vscode/vs/nls'; | ||
const LOCAL_HISTORY_CATEGORY = ( localize2(6666, 'Local History')); | ||
const LOCAL_HISTORY_CATEGORY = ( localize2(6711, 'Local History')); | ||
const CTX_LOCAL_HISTORY_ENABLED = ( (ContextKeyExpr.has('config.workbench.localHistory.enabled'))); | ||
const COMPARE_WITH_FILE_LABEL = ( localize2(6667, 'Compare with File')); | ||
const COMPARE_WITH_FILE_LABEL = ( localize2(6712, 'Compare with File')); | ||
registerAction2(class extends Action2 { | ||
@@ -60,3 +60,3 @@ constructor() { | ||
id: 'workbench.action.localHistory.compareWithPrevious', | ||
title: ( localize2(6668, 'Compare with Previous')), | ||
title: ( localize2(6713, 'Compare with Previous')), | ||
menu: { | ||
@@ -89,3 +89,3 @@ id: MenuId.TimelineItemContext, | ||
id: 'workbench.action.localHistory.selectForCompare', | ||
title: ( localize2(6669, 'Select for Compare')), | ||
title: ( localize2(6714, 'Select for Compare')), | ||
menu: { | ||
@@ -113,3 +113,3 @@ id: MenuId.TimelineItemContext, | ||
id: 'workbench.action.localHistory.compareWithSelected', | ||
title: ( localize2(6670, 'Compare with Selected')), | ||
title: ( localize2(6715, 'Compare with Selected')), | ||
menu: { | ||
@@ -143,3 +143,3 @@ id: MenuId.TimelineItemContext, | ||
id: 'workbench.action.localHistory.open', | ||
title: ( localize2(6671, 'Show Contents')), | ||
title: ( localize2(6716, 'Show Contents')), | ||
menu: { | ||
@@ -162,3 +162,3 @@ id: MenuId.TimelineItemContext, | ||
}); | ||
const RESTORE_CONTENTS_LABEL = ( localize2(6672, 'Restore Contents')); | ||
const RESTORE_CONTENTS_LABEL = ( localize2(6717, 'Restore Contents')); | ||
registerAction2(class extends Action2 { | ||
@@ -200,3 +200,3 @@ constructor() { | ||
}); | ||
const restoreSaveSource = SaveSourceRegistry.registerSource('localHistoryRestore.source', ( localize(6673, "File Restored"))); | ||
const restoreSaveSource = SaveSourceRegistry.registerSource('localHistoryRestore.source', ( localize(6718, "File Restored"))); | ||
async function restore(accessor, item) { | ||
@@ -213,8 +213,8 @@ const fileService = accessor.get(IFileService); | ||
message: ( localize( | ||
6674, | ||
6719, | ||
"Do you want to restore the contents of '{0}'?", | ||
basename(entry.workingCopy.resource) | ||
)), | ||
detail: ( localize(6675, "Restoring will discard any unsaved changes.")), | ||
primaryButton: ( localize(6676, "&&Restore")) | ||
detail: ( localize(6720, "Restoring will discard any unsaved changes.")), | ||
primaryButton: ( localize(6721, "&&Restore")) | ||
}); | ||
@@ -236,3 +236,3 @@ if (!confirmed) { | ||
catch (error) { | ||
await dialogService.error(( localize(6677, "Unable to restore '{0}'.", basename(entry.workingCopy.resource))), toErrorMessage(error)); | ||
await dialogService.error(( localize(6722, "Unable to restore '{0}'.", basename(entry.workingCopy.resource))), toErrorMessage(error)); | ||
return; | ||
@@ -257,3 +257,3 @@ } | ||
id: 'workbench.action.localHistory.restoreViaPicker', | ||
title: ( localize2(6678, 'Find Entry to Restore')), | ||
title: ( localize2(6723, 'Find Entry to Restore')), | ||
f1: true, | ||
@@ -280,3 +280,3 @@ category: LOCAL_HISTORY_CATEGORY, | ||
resourcePicker.busy = false; | ||
resourcePicker.placeholder = ( localize(6679, "Select the file to show local history for")); | ||
resourcePicker.placeholder = ( localize(6724, "Select the file to show local history for")); | ||
resourcePicker.matchOnLabel = true; | ||
@@ -303,3 +303,3 @@ resourcePicker.matchOnDescription = true; | ||
entryPicker.busy = false; | ||
entryPicker.placeholder = ( localize(6680, "Select the local history entry to open")); | ||
entryPicker.placeholder = ( localize(6725, "Select the local history entry to open")); | ||
entryPicker.matchOnLabel = true; | ||
@@ -325,3 +325,3 @@ entryPicker.matchOnDescription = true; | ||
}); | ||
MenuRegistry.appendMenuItem(MenuId.TimelineTitle, { command: { id: 'workbench.action.localHistory.restoreViaPicker', title: ( localize2(6681, 'Local History: Find Entry to Restore...')) }, group: 'submenu', order: 1, when: CTX_LOCAL_HISTORY_ENABLED }); | ||
MenuRegistry.appendMenuItem(MenuId.TimelineTitle, { command: { id: 'workbench.action.localHistory.restoreViaPicker', title: ( localize2(6726, 'Local History: Find Entry to Restore...')) }, group: 'submenu', order: 1, when: CTX_LOCAL_HISTORY_ENABLED }); | ||
registerAction2(class extends Action2 { | ||
@@ -331,3 +331,3 @@ constructor() { | ||
id: 'workbench.action.localHistory.rename', | ||
title: ( localize2(6682, 'Rename')), | ||
title: ( localize2(6727, 'Rename')), | ||
menu: { | ||
@@ -347,5 +347,5 @@ id: MenuId.TimelineItemContext, | ||
const inputBox = quickInputService.createInputBox(); | ||
inputBox.title = ( localize(6683, "Rename Local History Entry")); | ||
inputBox.title = ( localize(6728, "Rename Local History Entry")); | ||
inputBox.ignoreFocusOut = true; | ||
inputBox.placeholder = ( localize(6684, "Enter the new name of the local history entry")); | ||
inputBox.placeholder = ( localize(6729, "Enter the new name of the local history entry")); | ||
inputBox.value = SaveSourceRegistry.getSourceLabel(entry.source); | ||
@@ -366,3 +366,3 @@ inputBox.show(); | ||
id: 'workbench.action.localHistory.delete', | ||
title: ( localize2(6685, 'Delete')), | ||
title: ( localize2(6730, 'Delete')), | ||
menu: { | ||
@@ -385,3 +385,3 @@ id: MenuId.TimelineItemContext, | ||
message: ( localize( | ||
6686, | ||
6731, | ||
"Do you want to delete the local history entry of '{0}' from {1}?", | ||
@@ -391,4 +391,4 @@ entry.workingCopy.name, | ||
)), | ||
detail: ( localize(6687, "This action is irreversible!")), | ||
primaryButton: ( localize(6688, "&&Delete")), | ||
detail: ( localize(6732, "This action is irreversible!")), | ||
primaryButton: ( localize(6733, "&&Delete")), | ||
}); | ||
@@ -407,3 +407,3 @@ if (!confirmed) { | ||
id: 'workbench.action.localHistory.deleteAll', | ||
title: ( localize2(6689, 'Delete All')), | ||
title: ( localize2(6734, 'Delete All')), | ||
f1: true, | ||
@@ -419,5 +419,5 @@ category: LOCAL_HISTORY_CATEGORY, | ||
type: 'warning', | ||
message: ( localize(6690, "Do you want to delete all entries of all files in local history?")), | ||
detail: ( localize(6691, "This action is irreversible!")), | ||
primaryButton: ( localize(6692, "&&Delete All")), | ||
message: ( localize(6735, "Do you want to delete all entries of all files in local history?")), | ||
detail: ( localize(6736, "This action is irreversible!")), | ||
primaryButton: ( localize(6737, "&&Delete All")), | ||
}); | ||
@@ -434,3 +434,3 @@ if (!confirmed) { | ||
id: 'workbench.action.localHistory.create', | ||
title: ( localize2(6693, 'Create Entry')), | ||
title: ( localize2(6738, 'Create Entry')), | ||
f1: true, | ||
@@ -452,6 +452,6 @@ category: LOCAL_HISTORY_CATEGORY, | ||
const inputBox = quickInputService.createInputBox(); | ||
inputBox.title = ( localize(6694, "Create Local History Entry")); | ||
inputBox.title = ( localize(6739, "Create Local History Entry")); | ||
inputBox.ignoreFocusOut = true; | ||
inputBox.placeholder = ( localize( | ||
6695, | ||
6740, | ||
"Enter the new name of the local history entry for '{0}'", | ||
@@ -475,3 +475,3 @@ labelService.getUriBasenameLabel(resource) | ||
label: ( localize( | ||
6696, | ||
6741, | ||
"{0} ({1} • {2})", | ||
@@ -497,3 +497,3 @@ entry.workingCopy.name, | ||
label = ( localize( | ||
6697, | ||
6742, | ||
"{0} ({1} • {2}) ↔ {3}", | ||
@@ -510,3 +510,3 @@ arg1.workingCopy.name, | ||
label = ( localize( | ||
6698, | ||
6743, | ||
"{0} ({1} • {2}) ↔ {3} ({4} • {5})", | ||
@@ -513,0 +513,0 @@ arg1.workingCopy.name, |
@@ -178,3 +178,3 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js'; | ||
get label() { | ||
return this.loading ? ( localize(6649, "Loading...")) : ( localize(6650, "Load more")); | ||
return this.loading ? ( localize(6694, "Loading...")) : ( localize(6695, "Load more")); | ||
} | ||
@@ -188,3 +188,3 @@ get themeIcon() { | ||
let TimelinePane = class TimelinePane extends ViewPane { | ||
static { this.TITLE = ( localize2(6651, "Timeline")); } | ||
static { this.TITLE = ( localize2(6696, "Timeline")); } | ||
constructor(options, keybindingService, contextMenuService, contextKeyService, configurationService, storageService, viewDescriptorService, instantiationService, editorService, commandService, progressService, timelineService, openerService, themeService, telemetryService, hoverService, labelService, uriIdentityService, extensionService) { | ||
@@ -625,3 +625,3 @@ super({ ...options, titleMenuId: MenuId.TimelineTitle }, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService); | ||
this.updateFilename(undefined); | ||
this.message = ( localize(6652, "The active editor cannot provide timeline information.")); | ||
this.message = ( localize(6697, "The active editor cannot provide timeline information.")); | ||
} | ||
@@ -636,3 +636,3 @@ else if (this._isEmpty) { | ||
if (this.timelineService.getSources().filter(({ id }) => !( (this.excludedSources.has(id)))).length === 0) { | ||
this.message = ( localize(6653, "All timeline sources have been filtered out.")); | ||
this.message = ( localize(6698, "All timeline sources have been filtered out.")); | ||
} | ||
@@ -642,3 +642,3 @@ else { | ||
this.message = ( localize( | ||
6654, | ||
6699, | ||
"Local History will track recent changes as you save them unless the file has been excluded or is too large." | ||
@@ -648,10 +648,10 @@ )); | ||
else if (this.excludedSources.size > 0) { | ||
this.message = ( localize(6655, "No filtered timeline information was provided.")); | ||
this.message = ( localize(6700, "No filtered timeline information was provided.")); | ||
} | ||
else { | ||
this.message = ( localize(6656, "No timeline information was provided.")); | ||
this.message = ( localize(6701, "No timeline information was provided.")); | ||
} | ||
} | ||
if (!scmProviderCount || scmProviderCount === 0) { | ||
this.message += ' ' + ( localize(6657, "Source Control has not been configured.")); | ||
this.message += ' ' + ( localize(6702, "Source Control has not been configured.")); | ||
} | ||
@@ -713,3 +713,3 @@ } | ||
this.$message.classList.add('timeline-subtle'); | ||
this.message = ( localize(6652, "The active editor cannot provide timeline information.")); | ||
this.message = ( localize(6697, "The active editor cannot provide timeline information.")); | ||
this.$tree = document.createElement('div'); | ||
@@ -731,3 +731,3 @@ this.$tree.classList.add('customview-tree', 'file-icon-themable-tree', 'hide-arrows'); | ||
} | ||
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(6658, "{0}: {1}", element.relativeTimeFullWord ?? '', element.label)); | ||
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(6703, "{0}: {1}", element.relativeTimeFullWord ?? '', element.label)); | ||
}, | ||
@@ -741,3 +741,3 @@ getRole(element) { | ||
getWidgetAriaLabel() { | ||
return ( localize(6651, "Timeline")); | ||
return ( localize(6696, "Timeline")); | ||
} | ||
@@ -803,3 +803,3 @@ }, | ||
this.updateFilename(file); | ||
this.message = file ? ( localize(6659, "Loading timeline for {0}...", file)) : ''; | ||
this.message = file ? ( localize(6704, "Loading timeline for {0}...", file)) : ''; | ||
} | ||
@@ -992,5 +992,5 @@ onContextMenu(commands, treeEvent) { | ||
], TimelineTreeRenderer))); | ||
const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(6660, 'Icon for the refresh timeline action.'))); | ||
const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(6661, 'Icon for the pin timeline action.'))); | ||
const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(6662, 'Icon for the unpin timeline action.'))); | ||
const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(6705, 'Icon for the refresh timeline action.'))); | ||
const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(6706, 'Icon for the pin timeline action.'))); | ||
const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(6707, 'Icon for the unpin timeline action.'))); | ||
let TimelinePaneCommands = class TimelinePaneCommands extends Disposable { | ||
@@ -1009,5 +1009,5 @@ constructor(pane, timelineService, storageService, contextKeyService, menuService) { | ||
id: 'timeline.refresh', | ||
title: ( localize2(6663, "Refresh")), | ||
title: ( localize2(6708, "Refresh")), | ||
icon: timelineRefresh, | ||
category: ( localize2(6651, "Timeline")), | ||
category: ( localize2(6696, "Timeline")), | ||
menu: { | ||
@@ -1028,5 +1028,5 @@ id: MenuId.TimelineTitle, | ||
id: 'timeline.toggleFollowActiveEditor', | ||
title: ( localize2(6664, 'Pin the Current Timeline')), | ||
title: ( localize2(6709, 'Pin the Current Timeline')), | ||
icon: timelinePin, | ||
category: ( localize2(6651, "Timeline")), | ||
category: ( localize2(6696, "Timeline")), | ||
}, | ||
@@ -1040,5 +1040,5 @@ group: 'navigation', | ||
id: 'timeline.toggleFollowActiveEditor', | ||
title: ( localize2(6665, 'Unpin the Current Timeline')), | ||
title: ( localize2(6710, 'Unpin the Current Timeline')), | ||
icon: timelineUnpin, | ||
category: ( localize2(6651, "Timeline")), | ||
category: ( localize2(6696, "Timeline")), | ||
}, | ||
@@ -1045,0 +1045,0 @@ group: 'navigation', |
+ Added@codingame/monaco-vscode-api@8.0.4(transitive)
+ Added@codingame/monaco-vscode-base-service-override@8.0.4(transitive)
+ Added@codingame/monaco-vscode-environment-service-override@8.0.4(transitive)
+ Added@codingame/monaco-vscode-extensions-service-override@8.0.4(transitive)
+ Added@codingame/monaco-vscode-files-service-override@8.0.4(transitive)
+ Added@codingame/monaco-vscode-host-service-override@8.0.4(transitive)
+ Added@codingame/monaco-vscode-layout-service-override@8.0.4(transitive)
+ Added@codingame/monaco-vscode-quickaccess-service-override@8.0.4(transitive)
- Removed@codingame/monaco-vscode-api@8.0.3(transitive)
- Removed@codingame/monaco-vscode-base-service-override@8.0.3(transitive)
- Removed@codingame/monaco-vscode-environment-service-override@8.0.3(transitive)
- Removed@codingame/monaco-vscode-extensions-service-override@8.0.3(transitive)
- Removed@codingame/monaco-vscode-files-service-override@8.0.3(transitive)
- Removed@codingame/monaco-vscode-host-service-override@8.0.3(transitive)
- Removed@codingame/monaco-vscode-layout-service-override@8.0.3(transitive)
- Removed@codingame/monaco-vscode-quickaccess-service-override@8.0.3(transitive)