@codingame/monaco-vscode-performance-service-override 3.2.3 → 4.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": "3.2.3",
3
+ "version": "4.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,6 +18,6 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@3.2.3"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@4.0.0"
22
22
  }
23
23
  }
@@ -16,7 +16,9 @@ let InputLatencyContrib = class InputLatencyContrib extends Disposable {
16
16
  this._logSamples();
17
17
  this._setupListener();
18
18
  }, 60000)));
19
- this._setupListener();
19
+ if (Math.random() <= 0.01) {
20
+ this._setupListener();
21
+ }
20
22
  }
21
23
  _setupListener() {
22
24
  this._listener.value = Event.once(this._editorService.onDidActiveEditorChange)(() => this._scheduler.schedule());
@@ -24,6 +24,7 @@ import { ITerminalService } from 'vscode/vscode/vs/workbench/contrib/terminal/br
24
24
  import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
25
25
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
26
26
  import { getWorkbenchContribution, Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
27
+ import { ICustomEditorLabelService } from 'vscode/vscode/vs/workbench/services/editor/common/customEditorLabelService';
27
28
 
28
29
  var PerfviewContrib_1, PerfviewInput_1;
29
30
  let PerfviewContrib = class PerfviewContrib {
@@ -57,12 +58,12 @@ let PerfviewInput = class PerfviewInput extends TextResourceEditorInput {
57
58
  get typeId() {
58
59
  return PerfviewInput_1.Id;
59
60
  }
60
- constructor(textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService) {
61
+ constructor(textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService) {
61
62
  super(PerfviewContrib.get().getInputUri(), ( localizeWithPath(
62
63
  'vs/workbench/contrib/performance/browser/perfviewEditor',
63
64
  'name',
64
65
  "Startup Performance"
65
- )), undefined, undefined, undefined, textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService);
66
+ )), undefined, undefined, undefined, textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService);
66
67
  }
67
68
  };
68
69
  PerfviewInput = PerfviewInput_1 = ( __decorate([
@@ -72,7 +73,8 @@ PerfviewInput = PerfviewInput_1 = ( __decorate([
72
73
  ( __param(3, IFileService)),
73
74
  ( __param(4, ILabelService)),
74
75
  ( __param(5, IFilesConfigurationService)),
75
- ( __param(6, ITextResourceConfigurationService))
76
+ ( __param(6, ITextResourceConfigurationService)),
77
+ ( __param(7, ICustomEditorLabelService))
76
78
  ], PerfviewInput));
77
79
  let PerfModelContentProvider = class PerfModelContentProvider {
78
80
  constructor(_modelService, _languageService, _editorService, _lifecycleService, _timerService, _extensionService, _productService, _terminalService) {