@codingame/monaco-vscode-timeline-service-override 2.0.3 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-timeline-service-override",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,7 +18,7 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@2.0.3",
21
+ "vscode": "npm:@codingame/monaco-vscode-api@2.1.0",
22
22
  "vscode-marked": "npm:marked@=3.0.2"
23
23
  }
24
24
  }
@@ -1,4 +1,4 @@
1
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
1
+ import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
2
2
  import { URI } from 'vscode/vscode/vs/base/common/uri';
3
3
  import { Event } from 'vscode/vscode/vs/base/common/event';
4
4
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
@@ -27,16 +27,16 @@ import { LOCAL_HISTORY_MENU_CONTEXT_KEY, LOCAL_HISTORY_ICON_RESTORE, getLocalHis
27
27
  import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService';
28
28
  import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
29
29
 
30
- const LOCAL_HISTORY_CATEGORY = { value: ( localizeWithPath(
30
+ const LOCAL_HISTORY_CATEGORY = ( localize2WithPath(
31
31
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
32
32
  'localHistory.category',
33
- "Local History"
34
- )), original: 'Local History' };
35
- const COMPARE_WITH_FILE_LABEL = { value: ( localizeWithPath(
33
+ 'Local History'
34
+ ));
35
+ const COMPARE_WITH_FILE_LABEL = ( localize2WithPath(
36
36
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
37
37
  'localHistory.compareWithFile',
38
- "Compare with File"
39
- )), original: 'Compare with File' };
38
+ 'Compare with File'
39
+ ));
40
40
  registerAction2(class extends Action2 {
41
41
  constructor() {
42
42
  super({
@@ -63,11 +63,11 @@ registerAction2(class extends Action2 {
63
63
  constructor() {
64
64
  super({
65
65
  id: 'workbench.action.localHistory.compareWithPrevious',
66
- title: { value: ( localizeWithPath(
66
+ title: ( localize2WithPath(
67
67
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
68
68
  'localHistory.compareWithPrevious',
69
- "Compare with Previous"
70
- )), original: 'Compare with Previous' },
69
+ 'Compare with Previous'
70
+ )),
71
71
  menu: {
72
72
  id: MenuId.TimelineItemContext,
73
73
  group: '1_compare',
@@ -95,11 +95,11 @@ registerAction2(class extends Action2 {
95
95
  constructor() {
96
96
  super({
97
97
  id: 'workbench.action.localHistory.selectForCompare',
98
- title: { value: ( localizeWithPath(
98
+ title: ( localize2WithPath(
99
99
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
100
100
  'localHistory.selectForCompare',
101
- "Select for Compare"
102
- )), original: 'Select for Compare' },
101
+ 'Select for Compare'
102
+ )),
103
103
  menu: {
104
104
  id: MenuId.TimelineItemContext,
105
105
  group: '2_compare_with',
@@ -122,11 +122,11 @@ registerAction2(class extends Action2 {
122
122
  constructor() {
123
123
  super({
124
124
  id: 'workbench.action.localHistory.compareWithSelected',
125
- title: { value: ( localizeWithPath(
125
+ title: ( localize2WithPath(
126
126
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
127
127
  'localHistory.compareWithSelected',
128
- "Compare with Selected"
129
- )), original: 'Compare with Selected' },
128
+ 'Compare with Selected'
129
+ )),
130
130
  menu: {
131
131
  id: MenuId.TimelineItemContext,
132
132
  group: '2_compare_with',
@@ -155,11 +155,11 @@ registerAction2(class extends Action2 {
155
155
  constructor() {
156
156
  super({
157
157
  id: 'workbench.action.localHistory.open',
158
- title: { value: ( localizeWithPath(
158
+ title: ( localize2WithPath(
159
159
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
160
160
  'localHistory.open',
161
- "Show Contents"
162
- )), original: 'Show Contents' },
161
+ 'Show Contents'
162
+ )),
163
163
  menu: {
164
164
  id: MenuId.TimelineItemContext,
165
165
  group: '3_contents',
@@ -177,11 +177,11 @@ registerAction2(class extends Action2 {
177
177
  }
178
178
  }
179
179
  });
180
- const RESTORE_CONTENTS_LABEL = { value: ( localizeWithPath(
180
+ const RESTORE_CONTENTS_LABEL = ( localize2WithPath(
181
181
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
182
182
  'localHistory.restore',
183
- "Restore Contents"
184
- )), original: 'Restore Contents' };
183
+ 'Restore Contents'
184
+ ));
185
185
  registerAction2(class extends Action2 {
186
186
  constructor() {
187
187
  super({
@@ -290,11 +290,11 @@ registerAction2(class extends Action2 {
290
290
  constructor() {
291
291
  super({
292
292
  id: 'workbench.action.localHistory.restoreViaPicker',
293
- title: { value: ( localizeWithPath(
293
+ title: ( localize2WithPath(
294
294
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
295
295
  'localHistory.restoreViaPicker',
296
- "Find Entry to Restore"
297
- )), original: 'Find Entry to Restore' },
296
+ 'Find Entry to Restore'
297
+ )),
298
298
  f1: true,
299
299
  category: LOCAL_HISTORY_CATEGORY
300
300
  });
@@ -366,20 +366,20 @@ registerAction2(class extends Action2 {
366
366
  return openEntry(selectedItem.entry, editorService);
367
367
  }
368
368
  });
369
- MenuRegistry.appendMenuItem(MenuId.TimelineTitle, { command: { id: 'workbench.action.localHistory.restoreViaPicker', title: { value: ( localizeWithPath(
369
+ MenuRegistry.appendMenuItem(MenuId.TimelineTitle, { command: { id: 'workbench.action.localHistory.restoreViaPicker', title: ( localize2WithPath(
370
370
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
371
371
  'localHistory.restoreViaPickerMenu',
372
- "Local History: Find Entry to Restore..."
373
- )), original: 'Local History: Find Entry to Restore...' } }, group: 'submenu', order: 1 });
372
+ 'Local History: Find Entry to Restore...'
373
+ )) }, group: 'submenu', order: 1 });
374
374
  registerAction2(class extends Action2 {
375
375
  constructor() {
376
376
  super({
377
377
  id: 'workbench.action.localHistory.rename',
378
- title: { value: ( localizeWithPath(
378
+ title: ( localize2WithPath(
379
379
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
380
380
  'localHistory.rename',
381
- "Rename"
382
- )), original: 'Rename' },
381
+ 'Rename'
382
+ )),
383
383
  menu: {
384
384
  id: MenuId.TimelineItemContext,
385
385
  group: '5_edit',
@@ -420,11 +420,11 @@ registerAction2(class extends Action2 {
420
420
  constructor() {
421
421
  super({
422
422
  id: 'workbench.action.localHistory.delete',
423
- title: { value: ( localizeWithPath(
423
+ title: ( localize2WithPath(
424
424
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
425
425
  'localHistory.delete',
426
- "Delete"
427
- )), original: 'Delete' },
426
+ 'Delete'
427
+ )),
428
428
  menu: {
429
429
  id: MenuId.TimelineItemContext,
430
430
  group: '5_edit',
@@ -471,11 +471,11 @@ registerAction2(class extends Action2 {
471
471
  constructor() {
472
472
  super({
473
473
  id: 'workbench.action.localHistory.deleteAll',
474
- title: { value: ( localizeWithPath(
474
+ title: ( localize2WithPath(
475
475
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
476
476
  'localHistory.deleteAll',
477
- "Delete All"
478
- )), original: 'Delete All' },
477
+ 'Delete All'
478
+ )),
479
479
  f1: true,
480
480
  category: LOCAL_HISTORY_CATEGORY
481
481
  });
@@ -511,11 +511,11 @@ registerAction2(class extends Action2 {
511
511
  constructor() {
512
512
  super({
513
513
  id: 'workbench.action.localHistory.create',
514
- title: { value: ( localizeWithPath(
514
+ title: ( localize2WithPath(
515
515
  'vs/workbench/contrib/localHistory/browser/localHistoryCommands',
516
516
  'localHistory.create',
517
- "Create Entry"
518
- )), original: 'Create Entry' },
517
+ 'Create Entry'
518
+ )),
519
519
  f1: true,
520
520
  category: LOCAL_HISTORY_CATEGORY,
521
521
  precondition: ActiveEditorContext
@@ -42,7 +42,7 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
42
42
  import { API_OPEN_EDITOR_COMMAND_ID, API_OPEN_DIFF_EDITOR_COMMAND_ID } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
43
43
  import { isString } from 'vscode/vscode/vs/base/common/types';
44
44
  import { renderMarkdownAsPlaintext } from 'vscode/vscode/vs/base/browser/markdownRenderer';
45
- import { IHoverService } from 'vscode/vscode/vs/workbench/services/hover/browser/hover';
45
+ import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover';
46
46
  import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity';
47
47
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
48
48
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
@@ -1052,13 +1052,13 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
1052
1052
  constructor() {
1053
1053
  super({
1054
1054
  id: 'timeline.refresh',
1055
- title: { value: ( localizeWithPath('vs/workbench/contrib/timeline/browser/timelinePane', 'refresh', "Refresh")), original: 'Refresh' },
1055
+ title: ( localize2WithPath('vs/workbench/contrib/timeline/browser/timelinePane', 'refresh', "Refresh")),
1056
1056
  icon: timelineRefresh,
1057
- category: { value: ( localizeWithPath(
1057
+ category: ( localize2WithPath(
1058
1058
  'vs/workbench/contrib/timeline/browser/timelinePane',
1059
1059
  'timeline',
1060
1060
  "Timeline"
1061
- )), original: 'Timeline' },
1061
+ )),
1062
1062
  menu: {
1063
1063
  id: MenuId.TimelineTitle,
1064
1064
  group: 'navigation',
@@ -1074,17 +1074,17 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
1074
1074
  this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
1075
1075
  command: {
1076
1076
  id: 'timeline.toggleFollowActiveEditor',
1077
- title: { value: ( localizeWithPath(
1077
+ title: ( localize2WithPath(
1078
1078
  'vs/workbench/contrib/timeline/browser/timelinePane',
1079
1079
  'timeline.toggleFollowActiveEditorCommand.follow',
1080
- "Pin the Current Timeline"
1081
- )), original: 'Pin the Current Timeline' },
1080
+ 'Pin the Current Timeline'
1081
+ )),
1082
1082
  icon: timelinePin,
1083
- category: { value: ( localizeWithPath(
1083
+ category: ( localize2WithPath(
1084
1084
  'vs/workbench/contrib/timeline/browser/timelinePane',
1085
1085
  'timeline',
1086
1086
  "Timeline"
1087
- )), original: 'Timeline' },
1087
+ )),
1088
1088
  },
1089
1089
  group: 'navigation',
1090
1090
  order: 98,
@@ -1093,17 +1093,17 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
1093
1093
  this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
1094
1094
  command: {
1095
1095
  id: 'timeline.toggleFollowActiveEditor',
1096
- title: { value: ( localizeWithPath(
1096
+ title: ( localize2WithPath(
1097
1097
  'vs/workbench/contrib/timeline/browser/timelinePane',
1098
1098
  'timeline.toggleFollowActiveEditorCommand.unfollow',
1099
- "Unpin the Current Timeline"
1100
- )), original: 'Unpin the Current Timeline' },
1099
+ 'Unpin the Current Timeline'
1100
+ )),
1101
1101
  icon: timelineUnpin,
1102
- category: { value: ( localizeWithPath(
1102
+ category: ( localize2WithPath(
1103
1103
  'vs/workbench/contrib/timeline/browser/timelinePane',
1104
1104
  'timeline',
1105
1105
  "Timeline"
1106
- )), original: 'Timeline' },
1106
+ )),
1107
1107
  },
1108
1108
  group: 'navigation',
1109
1109
  order: 98,
@@ -2,7 +2,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
2
2
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
3
3
  import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
4
4
  import { TimelinePaneId } from 'vscode/vscode/vs/workbench/contrib/timeline/common/timeline';
5
- import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
5
+ import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
6
6
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
7
7
  import { RawContextKey, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
8
8