@codingame/monaco-vscode-performance-service-override 20.3.1 → 20.4.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": "20.
|
|
3
|
+
"version": "20.4.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,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "20.
|
|
19
|
-
"@codingame/monaco-vscode-api": "20.
|
|
20
|
-
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.
|
|
21
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.
|
|
18
|
+
"@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "20.4.0",
|
|
19
|
+
"@codingame/monaco-vscode-api": "20.4.0",
|
|
20
|
+
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.4.0",
|
|
21
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.4.0"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"module": "index.js",
|
|
@@ -28,6 +28,7 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
|
|
|
28
28
|
import { getWorkbenchContribution, Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
29
29
|
import { ICustomEditorLabelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/customEditorLabelService.service';
|
|
30
30
|
import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
31
|
+
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
31
32
|
|
|
32
33
|
var PerfviewContrib_1, PerfviewInput_1;
|
|
33
34
|
let PerfviewContrib = class PerfviewContrib {
|
|
@@ -252,7 +253,7 @@ let PerfModelContentProvider = class PerfModelContentProvider {
|
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
255
|
_addResourceTimingStats(md) {
|
|
255
|
-
const stats = ( performance.getEntriesByType('resource').map(entry => {
|
|
256
|
+
const stats = ( mainWindow.performance.getEntriesByType('resource').map(entry => {
|
|
256
257
|
return [entry.name, entry.duration];
|
|
257
258
|
}));
|
|
258
259
|
if (!stats.length) {
|
|
@@ -16,6 +16,7 @@ import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-34
|
|
|
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';
|
|
19
|
+
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
19
20
|
|
|
20
21
|
let StartupTimings = class StartupTimings {
|
|
21
22
|
constructor(_editorService, _paneCompositeService, _lifecycleService, _updateService, _workspaceTrustService) {
|
|
@@ -97,7 +98,7 @@ BrowserStartupTimings = ( __decorate([
|
|
|
97
98
|
], BrowserStartupTimings));
|
|
98
99
|
let BrowserResourcePerformanceMarks = class BrowserResourcePerformanceMarks {
|
|
99
100
|
constructor(telemetryService) {
|
|
100
|
-
for (const item of performance.getEntriesByType('resource')) {
|
|
101
|
+
for (const item of mainWindow.performance.getEntriesByType('resource')) {
|
|
101
102
|
try {
|
|
102
103
|
const url = ( new URL(item.name));
|
|
103
104
|
const name = posix.basename(url.pathname);
|