@codingame/monaco-vscode-performance-service-override 7.1.0 → 8.0.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-performance-service-override",
3
- "version": "7.1.0",
3
+ "version": "8.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@7.1.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@8.0.0"
30
30
  }
31
31
  }
@@ -1,4 +1,4 @@
1
- import { localize2WithPath } from 'vscode/vscode/vs/nls';
1
+ import { localize2 } from 'vscode/vscode/vs/nls';
2
2
  import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
3
3
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
4
4
  import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
@@ -12,7 +12,6 @@ import { InstantiationService, Trace } from 'vscode/vscode/vs/platform/instantia
12
12
  import { EventProfiling } from 'vscode/vscode/vs/base/common/event';
13
13
  import { InputLatencyContrib } from './inputLatencyContrib.js';
14
14
 
15
- const _moduleId = "vs/workbench/contrib/performance/browser/performance.contribution";
16
15
  registerWorkbenchContribution2(PerfviewContrib.ID, PerfviewContrib, { lazy: true });
17
16
  ( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(PerfviewInput.Id, class {
18
17
  canSerialize() {
@@ -29,7 +28,7 @@ registerAction2(class extends Action2 {
29
28
  constructor() {
30
29
  super({
31
30
  id: 'perfview.show',
32
- title: ( localize2WithPath(_moduleId, 0, 'Startup Performance')),
31
+ title: ( localize2(2202, 'Startup Performance')),
33
32
  category: Categories.Developer,
34
33
  f1: true
35
34
  });
@@ -44,7 +43,7 @@ registerAction2(class PrintServiceCycles extends Action2 {
44
43
  constructor() {
45
44
  super({
46
45
  id: 'perf.insta.printAsyncCycles',
47
- title: ( localize2WithPath(_moduleId, 1, 'Print Service Cycles')),
46
+ title: ( localize2(2203, 'Print Service Cycles')),
48
47
  category: Categories.Developer,
49
48
  f1: true
50
49
  });
@@ -66,7 +65,7 @@ registerAction2(class PrintServiceTraces extends Action2 {
66
65
  constructor() {
67
66
  super({
68
67
  id: 'perf.insta.printTraces',
69
- title: ( localize2WithPath(_moduleId, 2, 'Print Service Traces')),
68
+ title: ( localize2(2204, 'Print Service Traces')),
70
69
  category: Categories.Developer,
71
70
  f1: true
72
71
  });
@@ -85,7 +84,7 @@ registerAction2(class PrintEventProfiling extends Action2 {
85
84
  constructor() {
86
85
  super({
87
86
  id: 'perf.event.profiling',
88
- title: ( localize2WithPath(_moduleId, 3, 'Print Emitter Profiles')),
87
+ title: ( localize2(2205, 'Print Emitter Profiles')),
89
88
  category: Categories.Developer,
90
89
  f1: true
91
90
  });
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { URI } from 'vscode/vscode/vs/base/common/uri';
4
4
  import { TextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
5
5
  import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
@@ -29,7 +29,6 @@ import { getWorkbenchContribution, Extensions } from 'vscode/vscode/vs/workbench
29
29
  import { ICustomEditorLabelService } from 'vscode/vscode/vs/workbench/services/editor/common/customEditorLabelService.service';
30
30
 
31
31
  var PerfviewContrib_1, PerfviewInput_1;
32
- const _moduleId = "vs/workbench/contrib/performance/browser/perfviewEditor";
33
32
  let PerfviewContrib = class PerfviewContrib {
34
33
  static { PerfviewContrib_1 = this; }
35
34
  static get() {
@@ -62,7 +61,7 @@ let PerfviewInput = class PerfviewInput extends TextResourceEditorInput {
62
61
  return PerfviewInput_1.Id;
63
62
  }
64
63
  constructor(textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService) {
65
- super(PerfviewContrib.get().getInputUri(), ( localizeWithPath(_moduleId, 0, "Startup Performance")), undefined, undefined, undefined, textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService);
64
+ super(PerfviewContrib.get().getInputUri(), ( localize(6110, "Startup Performance")), undefined, undefined, undefined, textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService);
66
65
  }
67
66
  };
68
67
  PerfviewInput = PerfviewInput_1 = ( (__decorate([