@codingame/monaco-vscode-performance-service-override 23.3.0 → 24.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-performance-service-override",
3
- "version": "23.3.0",
3
+ "version": "24.1.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - performance service-override",
6
6
  "keywords": [],
@@ -15,10 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-16b9b017-9377-5198-9904-c344b3b2ad14-common": "23.3.0",
19
- "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.3.0",
20
- "@codingame/monaco-vscode-api": "23.3.0",
21
- "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "23.3.0"
18
+ "@codingame/monaco-vscode-api": "24.1.0"
22
19
  },
23
20
  "main": "index.js",
24
21
  "module": "index.js",
@@ -1,13 +1,15 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
2
3
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
3
4
  import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
4
5
  import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
5
6
  export declare class InputLatencyContrib extends Disposable implements IWorkbenchContribution {
7
+ private readonly _configurationService;
6
8
  private readonly _editorService;
7
9
  private readonly _telemetryService;
8
10
  private readonly _listener;
9
11
  private readonly _scheduler;
10
- constructor(_editorService: IEditorService, _telemetryService: ITelemetryService);
12
+ constructor(_configurationService: IConfigurationService, _editorService: IEditorService, _telemetryService: ITelemetryService);
11
13
  private _setupListener;
12
14
  private _logSamples;
13
15
  }
@@ -4,12 +4,14 @@ import { inputLatency } from '@codingame/monaco-vscode-api/vscode/vs/base/browse
4
4
  import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
5
5
  import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
6
6
  import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
+ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
7
8
  import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
8
9
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
9
10
 
10
11
  let InputLatencyContrib = class InputLatencyContrib extends Disposable {
11
- constructor(_editorService, _telemetryService) {
12
+ constructor(_configurationService, _editorService, _telemetryService) {
12
13
  super();
14
+ this._configurationService = _configurationService;
13
15
  this._editorService = _editorService;
14
16
  this._telemetryService = _telemetryService;
15
17
  this._listener = this._register(( new MutableDisposable()));
@@ -34,13 +36,15 @@ let InputLatencyContrib = class InputLatencyContrib extends Disposable {
34
36
  input: measurements.input,
35
37
  render: measurements.render,
36
38
  total: measurements.total,
37
- sampleCount: measurements.sampleCount
39
+ sampleCount: measurements.sampleCount,
40
+ gpuAcceleration: this._configurationService.getValue('editor.experimentalGpuAcceleration') === 'on'
38
41
  });
39
42
  }
40
43
  };
41
44
  InputLatencyContrib = ( __decorate([
42
- ( __param(0, IEditorService)),
43
- ( __param(1, ITelemetryService))
45
+ ( __param(0, IConfigurationService)),
46
+ ( __param(1, IEditorService)),
47
+ ( __param(2, ITelemetryService))
44
48
  ], InputLatencyContrib));
45
49
 
46
50
  export { InputLatencyContrib };
@@ -32,7 +32,7 @@ registerAction2(class extends Action2 {
32
32
  constructor() {
33
33
  super({
34
34
  id: 'perfview.show',
35
- title: ( localize2(9664, 'Startup Performance')),
35
+ title: ( localize2(9799, 'Startup Performance')),
36
36
  category: Categories.Developer,
37
37
  f1: true
38
38
  });
@@ -47,7 +47,7 @@ registerAction2(class PrintServiceCycles extends Action2 {
47
47
  constructor() {
48
48
  super({
49
49
  id: 'perf.insta.printAsyncCycles',
50
- title: ( localize2(9665, 'Print Service Cycles')),
50
+ title: ( localize2(9800, 'Print Service Cycles')),
51
51
  category: Categories.Developer,
52
52
  f1: true
53
53
  });
@@ -69,7 +69,7 @@ registerAction2(class PrintServiceTraces extends Action2 {
69
69
  constructor() {
70
70
  super({
71
71
  id: 'perf.insta.printTraces',
72
- title: ( localize2(9666, 'Print Service Traces')),
72
+ title: ( localize2(9801, 'Print Service Traces')),
73
73
  category: Categories.Developer,
74
74
  f1: true
75
75
  });
@@ -88,7 +88,7 @@ registerAction2(class PrintEventProfiling extends Action2 {
88
88
  constructor() {
89
89
  super({
90
90
  id: 'perf.event.profiling',
91
- title: ( localize2(9667, 'Print Emitter Profiles')),
91
+ title: ( localize2(9802, 'Print Emitter Profiles')),
92
92
  category: Categories.Developer,
93
93
  f1: true
94
94
  });
@@ -1,5 +1,5 @@
1
1
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
2
- import { TextResourceEditorInput } from "@codingame/monaco-vscode-16b9b017-9377-5198-9904-c344b3b2ad14-common/vscode/vs/workbench/common/editor/textResourceEditorInput";
2
+ import { TextResourceEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/textResourceEditorInput";
3
3
  import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service";
4
4
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
5
5
  import { ITextFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service";
@@ -2,7 +2,7 @@
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
4
  import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
5
- import { TextResourceEditorInput } from '@codingame/monaco-vscode-16b9b017-9377-5198-9904-c344b3b2ad14-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
5
+ import { TextResourceEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/textResourceEditorInput';
6
6
  import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
7
7
  import { LifecyclePhase, StartupKindToString } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
8
8
  import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
@@ -63,7 +63,7 @@ let PerfviewInput = class PerfviewInput extends TextResourceEditorInput {
63
63
  return PerfviewInput_1.Id;
64
64
  }
65
65
  constructor(textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService) {
66
- super(PerfviewContrib.get().getInputUri(), ( localize(9668, "Startup Performance")), undefined, undefined, undefined, textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService);
66
+ super(PerfviewContrib.get().getInputUri(), ( localize(9803, "Startup Performance")), undefined, undefined, undefined, textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService);
67
67
  }
68
68
  };
69
69
  PerfviewInput = PerfviewInput_1 = ( __decorate([
@@ -6,7 +6,7 @@ import { IPaneCompositePartService } from "@codingame/monaco-vscode-api/vscode/v
6
6
  import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
7
7
  import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
8
8
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
9
- import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
9
+ import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service";
10
10
  import { ITimerService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/timer/browser/timerService.service";
11
11
  import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
12
12
  export declare abstract class StartupTimings {
@@ -4,7 +4,7 @@ import { isCodeEditor } from '@codingame/monaco-vscode-api/vscode/vs/editor/brow
4
4
  import { StartupKind, StartupKindToString } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
5
5
  import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
6
6
  import { IUpdateService } from '@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update.service';
7
- import { VIEWLET_ID } from '@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common/vscode/vs/workbench/contrib/files/common/files';
7
+ import { VIEWLET_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/common/files';
8
8
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
9
9
  import { IWorkspaceTrustManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
10
10
  import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
@@ -12,7 +12,7 @@ import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/wo
12
12
  import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
13
13
  import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
14
14
  import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
15
- import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
15
+ import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
16
16
  import { ITimerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/timer/browser/timerService.service';
17
17
  import { posix } from '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
18
18
  import { hash } from '@codingame/monaco-vscode-api/vscode/vs/base/common/hash';