@codingame/monaco-vscode-timeline-service-override 17.2.1 → 18.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-timeline-service-override",
3
- "version": "17.2.1",
3
+ "version": "18.0.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - timeline service-override",
6
6
  "keywords": [],
@@ -15,11 +15,11 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "17.2.1",
19
- "@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "17.2.1",
20
- "@codingame/monaco-vscode-api": "17.2.1",
21
- "@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common": "17.2.1",
22
- "@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "17.2.1"
18
+ "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "18.0.1",
19
+ "@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "18.0.1",
20
+ "@codingame/monaco-vscode-api": "18.0.1",
21
+ "@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common": "18.0.1",
22
+ "@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "18.0.1"
23
23
  },
24
24
  "main": "index.js",
25
25
  "module": "index.js",
@@ -10,7 +10,7 @@ let localHistoryDateFormatter = undefined;
10
10
  function getLocalHistoryDateFormatter() {
11
11
  if (!localHistoryDateFormatter) {
12
12
  const options = { year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: 'numeric' };
13
- const formatter = safeIntl.DateTimeFormat(language, options);
13
+ const formatter = safeIntl.DateTimeFormat(language, options).value;
14
14
  localHistoryDateFormatter = {
15
15
  format: date => formatter.format(date)
16
16
  };
@@ -19,7 +19,7 @@ function getLocalHistoryDateFormatter() {
19
19
  }
20
20
  const LOCAL_HISTORY_MENU_CONTEXT_VALUE = 'localHistory:item';
21
21
  const LOCAL_HISTORY_MENU_CONTEXT_KEY = ( ContextKeyExpr.equals('timelineItem', LOCAL_HISTORY_MENU_CONTEXT_VALUE));
22
- const LOCAL_HISTORY_ICON_ENTRY = registerIcon('localHistory-icon', Codicon.circleOutline, ( localize(7449, "Icon for a local history entry in the timeline view.")));
23
- const LOCAL_HISTORY_ICON_RESTORE = registerIcon('localHistory-restore', Codicon.check, ( localize(7450, "Icon for restoring contents of a local history entry.")));
22
+ const LOCAL_HISTORY_ICON_ENTRY = registerIcon('localHistory-icon', Codicon.circleOutline, ( localize(7581, "Icon for a local history entry in the timeline view.")));
23
+ const LOCAL_HISTORY_ICON_RESTORE = registerIcon('localHistory-restore', Codicon.check, ( localize(7582, "Icon for restoring contents of a local history entry.")));
24
24
 
25
25
  export { LOCAL_HISTORY_ICON_ENTRY, LOCAL_HISTORY_ICON_RESTORE, LOCAL_HISTORY_MENU_CONTEXT_KEY, LOCAL_HISTORY_MENU_CONTEXT_VALUE, getLocalHistoryDateFormatter };
@@ -31,9 +31,9 @@ import { ResourceSet } from '@codingame/monaco-vscode-api/vscode/vs/base/common/
31
31
  import { IHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/history/common/history.service';
32
32
  import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
33
33
 
34
- const LOCAL_HISTORY_CATEGORY = ( localize2(7451, 'Local History'));
34
+ const LOCAL_HISTORY_CATEGORY = ( localize2(7583, 'Local History'));
35
35
  const CTX_LOCAL_HISTORY_ENABLED = ( ContextKeyExpr.has('config.workbench.localHistory.enabled'));
36
- const COMPARE_WITH_FILE_LABEL = ( localize2(7452, 'Compare with File'));
36
+ const COMPARE_WITH_FILE_LABEL = ( localize2(7584, 'Compare with File'));
37
37
  registerAction2(class extends Action2 {
38
38
  constructor() {
39
39
  super({
@@ -60,7 +60,7 @@ registerAction2(class extends Action2 {
60
60
  constructor() {
61
61
  super({
62
62
  id: 'workbench.action.localHistory.compareWithPrevious',
63
- title: ( localize2(7453, 'Compare with Previous')),
63
+ title: ( localize2(7585, 'Compare with Previous')),
64
64
  menu: {
65
65
  id: MenuId.TimelineItemContext,
66
66
  group: '1_compare',
@@ -88,7 +88,7 @@ registerAction2(class extends Action2 {
88
88
  constructor() {
89
89
  super({
90
90
  id: 'workbench.action.localHistory.selectForCompare',
91
- title: ( localize2(7454, 'Select for Compare')),
91
+ title: ( localize2(7586, 'Select for Compare')),
92
92
  menu: {
93
93
  id: MenuId.TimelineItemContext,
94
94
  group: '2_compare_with',
@@ -111,7 +111,7 @@ registerAction2(class extends Action2 {
111
111
  constructor() {
112
112
  super({
113
113
  id: 'workbench.action.localHistory.compareWithSelected',
114
- title: ( localize2(7455, 'Compare with Selected')),
114
+ title: ( localize2(7587, 'Compare with Selected')),
115
115
  menu: {
116
116
  id: MenuId.TimelineItemContext,
117
117
  group: '2_compare_with',
@@ -140,7 +140,7 @@ registerAction2(class extends Action2 {
140
140
  constructor() {
141
141
  super({
142
142
  id: 'workbench.action.localHistory.open',
143
- title: ( localize2(7456, 'Show Contents')),
143
+ title: ( localize2(7588, 'Show Contents')),
144
144
  menu: {
145
145
  id: MenuId.TimelineItemContext,
146
146
  group: '3_contents',
@@ -158,7 +158,7 @@ registerAction2(class extends Action2 {
158
158
  }
159
159
  }
160
160
  });
161
- const RESTORE_CONTENTS_LABEL = ( localize2(7457, 'Restore Contents'));
161
+ const RESTORE_CONTENTS_LABEL = ( localize2(7589, 'Restore Contents'));
162
162
  registerAction2(class extends Action2 {
163
163
  constructor() {
164
164
  super({
@@ -195,7 +195,7 @@ registerAction2(class extends Action2 {
195
195
  return restore(accessor, item);
196
196
  }
197
197
  });
198
- const restoreSaveSource = SaveSourceRegistry.registerSource('localHistoryRestore.source', ( localize(7458, "File Restored")));
198
+ const restoreSaveSource = SaveSourceRegistry.registerSource('localHistoryRestore.source', ( localize(7590, "File Restored")));
199
199
  async function restore(accessor, item) {
200
200
  const fileService = accessor.get(IFileService);
201
201
  const dialogService = accessor.get(IDialogService);
@@ -207,12 +207,12 @@ async function restore(accessor, item) {
207
207
  const { confirmed } = await dialogService.confirm({
208
208
  type: 'warning',
209
209
  message: ( localize(
210
- 7459,
210
+ 7591,
211
211
  "Do you want to restore the contents of '{0}'?",
212
212
  basename(entry.workingCopy.resource)
213
213
  )),
214
- detail: ( localize(7460, "Restoring will discard any unsaved changes.")),
215
- primaryButton: ( localize(7461, "&&Restore"))
214
+ detail: ( localize(7592, "Restoring will discard any unsaved changes.")),
215
+ primaryButton: ( localize(7593, "&&Restore"))
216
216
  });
217
217
  if (!confirmed) {
218
218
  return;
@@ -229,7 +229,7 @@ async function restore(accessor, item) {
229
229
  await fileService.cloneFile(entry.location, entry.workingCopy.resource);
230
230
  }
231
231
  catch (error) {
232
- await dialogService.error(( localize(7462, "Unable to restore '{0}'.", basename(entry.workingCopy.resource))), toErrorMessage(error));
232
+ await dialogService.error(( localize(7594, "Unable to restore '{0}'.", basename(entry.workingCopy.resource))), toErrorMessage(error));
233
233
  return;
234
234
  }
235
235
  if (workingCopies) {
@@ -249,7 +249,7 @@ registerAction2(class extends Action2 {
249
249
  constructor() {
250
250
  super({
251
251
  id: 'workbench.action.localHistory.restoreViaPicker',
252
- title: ( localize2(7463, 'Find Entry to Restore')),
252
+ title: ( localize2(7595, 'Find Entry to Restore')),
253
253
  f1: true,
254
254
  category: LOCAL_HISTORY_CATEGORY,
255
255
  precondition: CTX_LOCAL_HISTORY_ENABLED
@@ -282,7 +282,7 @@ registerAction2(class extends Action2 {
282
282
  }
283
283
  resourcesSortedByRecency.push(...[...resources].sort((r1, r2) => r1.fsPath < r2.fsPath ? -1 : 1));
284
284
  resourcePicker.busy = false;
285
- resourcePicker.placeholder = ( localize(7464, "Select the file to show local history for"));
285
+ resourcePicker.placeholder = ( localize(7596, "Select the file to show local history for"));
286
286
  resourcePicker.matchOnLabel = true;
287
287
  resourcePicker.matchOnDescription = true;
288
288
  resourcePicker.items = ( [...resourcesSortedByRecency].map(resource => ({
@@ -306,7 +306,7 @@ registerAction2(class extends Action2 {
306
306
  const entries = await workingCopyHistoryService.getEntries(resource, cts.token);
307
307
  entryPicker.busy = false;
308
308
  entryPicker.canAcceptInBackground = true;
309
- entryPicker.placeholder = ( localize(7465, "Select the local history entry to open"));
309
+ entryPicker.placeholder = ( localize(7597, "Select the local history entry to open"));
310
310
  entryPicker.matchOnLabel = true;
311
311
  entryPicker.matchOnDescription = true;
312
312
  entryPicker.items = ( Array.from(entries).reverse().map(entry => ({
@@ -330,12 +330,12 @@ registerAction2(class extends Action2 {
330
330
  }));
331
331
  }
332
332
  });
333
- MenuRegistry.appendMenuItem(MenuId.TimelineTitle, { command: { id: 'workbench.action.localHistory.restoreViaPicker', title: ( localize2(7466, 'Local History: Find Entry to Restore...')) }, group: 'submenu', order: 1, when: CTX_LOCAL_HISTORY_ENABLED });
333
+ MenuRegistry.appendMenuItem(MenuId.TimelineTitle, { command: { id: 'workbench.action.localHistory.restoreViaPicker', title: ( localize2(7598, 'Local History: Find Entry to Restore...')) }, group: 'submenu', order: 1, when: CTX_LOCAL_HISTORY_ENABLED });
334
334
  registerAction2(class extends Action2 {
335
335
  constructor() {
336
336
  super({
337
337
  id: 'workbench.action.localHistory.rename',
338
- title: ( localize2(7467, 'Rename')),
338
+ title: ( localize2(7599, 'Rename')),
339
339
  menu: {
340
340
  id: MenuId.TimelineItemContext,
341
341
  group: '5_edit',
@@ -351,9 +351,9 @@ registerAction2(class extends Action2 {
351
351
  if (entry) {
352
352
  const disposables = ( new DisposableStore());
353
353
  const inputBox = disposables.add(quickInputService.createInputBox());
354
- inputBox.title = ( localize(7468, "Rename Local History Entry"));
354
+ inputBox.title = ( localize(7600, "Rename Local History Entry"));
355
355
  inputBox.ignoreFocusOut = true;
356
- inputBox.placeholder = ( localize(7469, "Enter the new name of the local history entry"));
356
+ inputBox.placeholder = ( localize(7601, "Enter the new name of the local history entry"));
357
357
  inputBox.value = SaveSourceRegistry.getSourceLabel(entry.source);
358
358
  inputBox.show();
359
359
  disposables.add(inputBox.onDidAccept(() => {
@@ -369,7 +369,7 @@ registerAction2(class extends Action2 {
369
369
  constructor() {
370
370
  super({
371
371
  id: 'workbench.action.localHistory.delete',
372
- title: ( localize2(7470, 'Delete')),
372
+ title: ( localize2(7602, 'Delete')),
373
373
  menu: {
374
374
  id: MenuId.TimelineItemContext,
375
375
  group: '5_edit',
@@ -387,13 +387,13 @@ registerAction2(class extends Action2 {
387
387
  const { confirmed } = await dialogService.confirm({
388
388
  type: 'warning',
389
389
  message: ( localize(
390
- 7471,
390
+ 7603,
391
391
  "Do you want to delete the local history entry of '{0}' from {1}?",
392
392
  entry.workingCopy.name,
393
393
  toLocalHistoryEntryDateLabel(entry.timestamp)
394
394
  )),
395
- detail: ( localize(7472, "This action is irreversible!")),
396
- primaryButton: ( localize(7473, "&&Delete")),
395
+ detail: ( localize(7604, "This action is irreversible!")),
396
+ primaryButton: ( localize(7605, "&&Delete")),
397
397
  });
398
398
  if (!confirmed) {
399
399
  return;
@@ -407,7 +407,7 @@ registerAction2(class extends Action2 {
407
407
  constructor() {
408
408
  super({
409
409
  id: 'workbench.action.localHistory.deleteAll',
410
- title: ( localize2(7474, 'Delete All')),
410
+ title: ( localize2(7606, 'Delete All')),
411
411
  f1: true,
412
412
  category: LOCAL_HISTORY_CATEGORY,
413
413
  precondition: CTX_LOCAL_HISTORY_ENABLED
@@ -418,9 +418,9 @@ registerAction2(class extends Action2 {
418
418
  const workingCopyHistoryService = accessor.get(IWorkingCopyHistoryService);
419
419
  const { confirmed } = await dialogService.confirm({
420
420
  type: 'warning',
421
- message: ( localize(7475, "Do you want to delete all entries of all files in local history?")),
422
- detail: ( localize(7476, "This action is irreversible!")),
423
- primaryButton: ( localize(7477, "&&Delete All")),
421
+ message: ( localize(7607, "Do you want to delete all entries of all files in local history?")),
422
+ detail: ( localize(7608, "This action is irreversible!")),
423
+ primaryButton: ( localize(7609, "&&Delete All")),
424
424
  });
425
425
  if (!confirmed) {
426
426
  return;
@@ -432,7 +432,7 @@ registerAction2(class extends Action2 {
432
432
  constructor() {
433
433
  super({
434
434
  id: 'workbench.action.localHistory.create',
435
- title: ( localize2(7478, 'Create Entry')),
435
+ title: ( localize2(7610, 'Create Entry')),
436
436
  f1: true,
437
437
  category: LOCAL_HISTORY_CATEGORY,
438
438
  precondition: ( ContextKeyExpr.and(CTX_LOCAL_HISTORY_ENABLED, ActiveEditorContext))
@@ -450,10 +450,10 @@ registerAction2(class extends Action2 {
450
450
  }
451
451
  const disposables = ( new DisposableStore());
452
452
  const inputBox = disposables.add(quickInputService.createInputBox());
453
- inputBox.title = ( localize(7479, "Create Local History Entry"));
453
+ inputBox.title = ( localize(7611, "Create Local History Entry"));
454
454
  inputBox.ignoreFocusOut = true;
455
455
  inputBox.placeholder = ( localize(
456
- 7480,
456
+ 7612,
457
457
  "Enter the new name of the local history entry for '{0}'",
458
458
  labelService.getUriBasenameLabel(resource)
459
459
  ));
@@ -472,7 +472,7 @@ async function openEntry(entry, editorService, options) {
472
472
  await editorService.openEditor({
473
473
  resource,
474
474
  label: ( localize(
475
- 7481,
475
+ 7613,
476
476
  "{0} ({1} • {2})",
477
477
  entry.workingCopy.name,
478
478
  SaveSourceRegistry.getSourceLabel(entry.source),
@@ -494,7 +494,7 @@ function toDiffEditorArguments(arg1, arg2, options) {
494
494
  const resource = arg2;
495
495
  modifiedResource = resource;
496
496
  label = ( localize(
497
- 7482,
497
+ 7614,
498
498
  "{0} ({1} • {2}) ↔ {3}",
499
499
  arg1.workingCopy.name,
500
500
  SaveSourceRegistry.getSourceLabel(arg1.source),
@@ -506,7 +506,7 @@ function toDiffEditorArguments(arg1, arg2, options) {
506
506
  const modified = arg2;
507
507
  modifiedResource = LocalHistoryFileSystemProvider.toLocalHistoryFileSystem({ location: modified.location, associatedResource: modified.workingCopy.resource });
508
508
  label = ( localize(
509
- 7483,
509
+ 7615,
510
510
  "{0} ({1} • {2}) ↔ {3} ({4} • {5})",
511
511
  arg1.workingCopy.name,
512
512
  SaveSourceRegistry.getSourceLabel(arg1.source),
@@ -35,7 +35,7 @@ let LocalHistoryTimeline = class LocalHistoryTimeline extends Disposable {
35
35
  this.configurationService = configurationService;
36
36
  this.contextService = contextService;
37
37
  this.id = 'timeline.localHistory';
38
- this.label = ( localize(7484, "Local History"));
38
+ this.label = ( localize(7616, "Local History"));
39
39
  this.scheme = '*';
40
40
  this._onDidChange = this._register(( new Emitter()));
41
41
  this.onDidChange = this._onDidChange.event;
@@ -18,8 +18,8 @@ import { ResourceContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workb
18
18
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
19
19
  import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
20
20
 
21
- const timelineViewIcon = registerIcon('timeline-view-icon', Codicon.history, ( localize(11133, 'View icon of the timeline view.')));
22
- const timelineOpenIcon = registerIcon('timeline-open', Codicon.history, ( localize(11134, 'Icon for the open timeline action.')));
21
+ const timelineViewIcon = registerIcon('timeline-view-icon', Codicon.history, ( localize(11400, 'View icon of the timeline view.')));
22
+ const timelineOpenIcon = registerIcon('timeline-open', Codicon.history, ( localize(11401, 'Icon for the open timeline action.')));
23
23
  class TimelinePaneDescriptor {
24
24
  constructor() {
25
25
  this.id = TimelinePaneId;
@@ -40,14 +40,14 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
40
40
  configurationRegistry.registerConfiguration({
41
41
  id: 'timeline',
42
42
  order: 1001,
43
- title: ( localize(11135, "Timeline")),
43
+ title: ( localize(11402, "Timeline")),
44
44
  type: 'object',
45
45
  properties: {
46
46
  'timeline.pageSize': {
47
47
  type: ['number', 'null'],
48
48
  default: 50,
49
49
  markdownDescription: ( localize(
50
- 11136,
50
+ 11403,
51
51
  "The number of items to show in the Timeline view by default and when loading more items. Setting to `null` will automatically choose a page size based on the visible area of the Timeline view."
52
52
  )),
53
53
  },
@@ -55,7 +55,7 @@ configurationRegistry.registerConfiguration({
55
55
  type: 'boolean',
56
56
  default: true,
57
57
  description: ( localize(
58
- 11137,
58
+ 11404,
59
59
  "Controls whether the Timeline view will load the next page of items when you scroll to the end of the list."
60
60
  )),
61
61
  },
@@ -65,7 +65,7 @@ configurationRegistry.registerConfiguration({
65
65
  var OpenTimelineAction;
66
66
  (function (OpenTimelineAction) {
67
67
  OpenTimelineAction.ID = 'files.openTimeline';
68
- OpenTimelineAction.LABEL = ( localize(11138, "Open Timeline"));
68
+ OpenTimelineAction.LABEL = ( localize(11405, "Open Timeline"));
69
69
  function handler() {
70
70
  return (accessor, arg) => {
71
71
  const service = accessor.get(ITimelineService);
@@ -85,10 +85,10 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, ({
85
85
  },
86
86
  when: ( ContextKeyExpr.and(( ExplorerFolderContext.toNegated()), ResourceContextKey.HasResource, TimelineHasProviderContext))
87
87
  }));
88
- const timelineFilter = registerIcon('timeline-filter', Codicon.filter, ( localize(11139, 'Icon for the filter timeline action.')));
88
+ const timelineFilter = registerIcon('timeline-filter', Codicon.filter, ( localize(11406, 'Icon for the filter timeline action.')));
89
89
  MenuRegistry.appendMenuItem(MenuId.TimelineTitle, {
90
90
  submenu: MenuId.TimelineFilterSubMenu,
91
- title: ( localize(11140, "Filter Timeline")),
91
+ title: ( localize(11407, "Filter Timeline")),
92
92
  group: 'navigation',
93
93
  order: 100,
94
94
  icon: timelineFilter
@@ -1,7 +1,7 @@
1
1
  import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
2
2
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
3
  import { IListVirtualDelegate, IIdentityProvider, IKeyboardNavigationLabelProvider } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
4
- import { ViewPane, IViewPaneOptions } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
4
+ import { ViewPane, IViewPaneOptions } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane";
5
5
  import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
6
6
  import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
7
7
  import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
@@ -18,7 +18,7 @@ import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/l
18
18
  import { escapeRegExpCharacters } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
19
19
  import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
20
20
  import { IconLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabel';
21
- import { ViewPane } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
21
+ import { ViewPane } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane';
22
22
  import { WorkbenchObjectTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
23
23
  import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
24
24
  import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
@@ -179,7 +179,7 @@ class LoadMoreCommand {
179
179
  return this.label;
180
180
  }
181
181
  get label() {
182
- return this.loading ? ( localize(11141, "Loading...")) : ( localize(11142, "Load more"));
182
+ return this.loading ? ( localize(11408, "Loading...")) : ( localize(11409, "Load more"));
183
183
  }
184
184
  get themeIcon() {
185
185
  return undefined;
@@ -189,7 +189,7 @@ const TimelineFollowActiveEditorContext = ( new RawContextKey('timelineFollowAct
189
189
  const TimelineExcludeSources = ( new RawContextKey('timelineExcludeSources', '[]', true));
190
190
  const TimelineViewFocusedContext = ( new RawContextKey('timelineFocused', true));
191
191
  let TimelinePane = class TimelinePane extends ViewPane {
192
- static { this.TITLE = ( localize2(11143, "Timeline")); }
192
+ static { this.TITLE = ( localize2(11410, "Timeline")); }
193
193
  constructor(options, keybindingService, contextMenuService, contextKeyService, configurationService, storageService, viewDescriptorService, instantiationService, editorService, commandService, progressService, timelineService, openerService, themeService, hoverService, labelService, uriIdentityService, extensionService) {
194
194
  super({ ...options, titleMenuId: MenuId.TimelineTitle }, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
195
195
  this.storageService = storageService;
@@ -490,13 +490,13 @@ let TimelinePane = class TimelinePane extends ViewPane {
490
490
  try {
491
491
  response = await this.progressService.withProgress({ location: this.id }, () => request.result);
492
492
  }
493
- finally {
493
+ catch {
494
+ }
495
+ if (!request.tokenSource.token.isCancellationRequested) {
494
496
  this.pendingRequests.get(request.source)?.dispose();
495
497
  this.pendingRequests.delete(request.source);
496
498
  }
497
- if (response === undefined ||
498
- request.tokenSource.token.isCancellationRequested ||
499
- request.uri !== this.uri) {
499
+ if (response === undefined || request.uri !== this.uri) {
500
500
  if (this.pendingRequests.size === 0 && this._pendingRefresh) {
501
501
  this.refresh();
502
502
  }
@@ -632,7 +632,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
632
632
  this._isEmpty = !this.hasVisibleItems;
633
633
  if (this.uri === undefined) {
634
634
  this.updateFilename(undefined);
635
- this.message = ( localize(11144, "The active editor cannot provide timeline information."));
635
+ this.message = ( localize(11411, "The active editor cannot provide timeline information."));
636
636
  }
637
637
  else if (this._isEmpty) {
638
638
  if (this.pendingRequests.size !== 0) {
@@ -642,24 +642,24 @@ let TimelinePane = class TimelinePane extends ViewPane {
642
642
  this.updateFilename(this.labelService.getUriBasenameLabel(this.uri));
643
643
  const scmProviderCount = this.contextKeyService.getContextKeyValue('scm.providerCount');
644
644
  if (this.timelineService.getSources().filter(({ id }) => !( this.excludedSources.has(id))).length === 0) {
645
- this.message = ( localize(11145, "All timeline sources have been filtered out."));
645
+ this.message = ( localize(11412, "All timeline sources have been filtered out."));
646
646
  }
647
647
  else {
648
648
  if (this.configurationService.getValue('workbench.localHistory.enabled') && !( this.excludedSources.has('timeline.localHistory'))) {
649
649
  this.message = ( localize(
650
- 11146,
650
+ 11413,
651
651
  "Local History will track recent changes as you save them unless the file has been excluded or is too large."
652
652
  ));
653
653
  }
654
654
  else if (this.excludedSources.size > 0) {
655
- this.message = ( localize(11147, "No filtered timeline information was provided."));
655
+ this.message = ( localize(11414, "No filtered timeline information was provided."));
656
656
  }
657
657
  else {
658
- this.message = ( localize(11148, "No timeline information was provided."));
658
+ this.message = ( localize(11415, "No timeline information was provided."));
659
659
  }
660
660
  }
661
661
  if (!scmProviderCount || scmProviderCount === 0) {
662
- this.message += ' ' + ( localize(11149, "Source Control has not been configured."));
662
+ this.message += ' ' + ( localize(11416, "Source Control has not been configured."));
663
663
  }
664
664
  }
665
665
  }
@@ -716,7 +716,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
716
716
  container.classList.add('tree-explorer-viewlet-tree-view', 'timeline-tree-view');
717
717
  this.$message = append(this.$container, $('.message'));
718
718
  this.$message.classList.add('timeline-subtle');
719
- this.message = ( localize(11144, "The active editor cannot provide timeline information."));
719
+ this.message = ( localize(11411, "The active editor cannot provide timeline information."));
720
720
  this.$tree = document.createElement('div');
721
721
  this.$tree.classList.add('customview-tree', 'file-icon-themable-tree', 'hide-arrows');
722
722
  container.appendChild(this.$tree);
@@ -733,7 +733,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
733
733
  if (isLoadMoreCommand(element)) {
734
734
  return element.ariaLabel;
735
735
  }
736
- return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(11150, "{0}: {1}", element.relativeTimeFullWord ?? '', element.label));
736
+ return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(11417, "{0}: {1}", element.relativeTimeFullWord ?? '', element.label));
737
737
  },
738
738
  getRole(element) {
739
739
  if (isLoadMoreCommand(element)) {
@@ -742,7 +742,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
742
742
  return element.accessibilityInformation && element.accessibilityInformation.role ? element.accessibilityInformation.role : 'treeitem';
743
743
  },
744
744
  getWidgetAriaLabel() {
745
- return localize(11143, "Timeline");
745
+ return localize(11410, "Timeline");
746
746
  }
747
747
  },
748
748
  keyboardNavigationLabelProvider: ( new TimelineKeyboardNavigationLabelProvider()),
@@ -802,7 +802,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
802
802
  setLoadingUriMessage() {
803
803
  const file = this.uri && this.labelService.getUriBasenameLabel(this.uri);
804
804
  this.updateFilename(file);
805
- this.message = file ? ( localize(11151, "Loading timeline for {0}...", file)) : '';
805
+ this.message = file ? ( localize(11418, "Loading timeline for {0}...", file)) : '';
806
806
  }
807
807
  onContextMenu(commands, treeEvent) {
808
808
  const item = treeEvent.element;
@@ -936,7 +936,7 @@ let TimelineTreeRenderer = class TimelineTreeRenderer {
936
936
  renderTemplate(container) {
937
937
  return ( new TimelineElementTemplate(container, this.actionViewItemProvider, this._hoverDelegate));
938
938
  }
939
- renderElement(node, index, template, height) {
939
+ renderElement(node, index, template) {
940
940
  template.reset();
941
941
  const { element: item } = node;
942
942
  const theme = this.themeService.getColorTheme();
@@ -981,7 +981,7 @@ let TimelineTreeRenderer = class TimelineTreeRenderer {
981
981
  setTimeout(() => this._onDidScrollToEnd.fire(item), 0);
982
982
  }
983
983
  }
984
- disposeElement(element, index, templateData, height) {
984
+ disposeElement(element, index, templateData) {
985
985
  templateData.actionBar.actionRunner.dispose();
986
986
  }
987
987
  disposeTemplate(template) {
@@ -992,9 +992,9 @@ TimelineTreeRenderer = ( __decorate([
992
992
  ( __param(1, IInstantiationService)),
993
993
  ( __param(2, IThemeService))
994
994
  ], TimelineTreeRenderer));
995
- const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(11152, 'Icon for the refresh timeline action.')));
996
- const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(11153, 'Icon for the pin timeline action.')));
997
- const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(11154, 'Icon for the unpin timeline action.')));
995
+ const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(11419, 'Icon for the refresh timeline action.')));
996
+ const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(11420, 'Icon for the pin timeline action.')));
997
+ const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(11421, 'Icon for the unpin timeline action.')));
998
998
  let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
999
999
  constructor(pane, timelineService, storageService, contextKeyService, menuService) {
1000
1000
  super();
@@ -1008,9 +1008,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
1008
1008
  constructor() {
1009
1009
  super({
1010
1010
  id: 'timeline.refresh',
1011
- title: ( localize2(11155, "Refresh")),
1011
+ title: ( localize2(11422, "Refresh")),
1012
1012
  icon: timelineRefresh,
1013
- category: ( localize2(11143, "Timeline")),
1013
+ category: ( localize2(11410, "Timeline")),
1014
1014
  menu: {
1015
1015
  id: MenuId.TimelineTitle,
1016
1016
  group: 'navigation',
@@ -1026,9 +1026,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
1026
1026
  this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
1027
1027
  command: {
1028
1028
  id: 'timeline.toggleFollowActiveEditor',
1029
- title: ( localize2(11156, 'Pin the Current Timeline')),
1029
+ title: ( localize2(11423, 'Pin the Current Timeline')),
1030
1030
  icon: timelinePin,
1031
- category: ( localize2(11143, "Timeline")),
1031
+ category: ( localize2(11410, "Timeline")),
1032
1032
  },
1033
1033
  group: 'navigation',
1034
1034
  order: 98,
@@ -1037,9 +1037,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
1037
1037
  this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
1038
1038
  command: {
1039
1039
  id: 'timeline.toggleFollowActiveEditor',
1040
- title: ( localize2(11157, 'Unpin the Current Timeline')),
1040
+ title: ( localize2(11424, 'Unpin the Current Timeline')),
1041
1041
  icon: timelineUnpin,
1042
- category: ( localize2(11143, "Timeline")),
1042
+ category: ( localize2(11410, "Timeline")),
1043
1043
  },
1044
1044
  group: 'navigation',
1045
1045
  order: 98,