File tree Expand file tree Collapse file tree 3 files changed +24
-24
lines changed
workbench/contrib/performance/browser Expand file tree Collapse file tree 3 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
- declare enum LoaderEventType {
7
- LoaderAvailable = 1 ,
8
-
9
- BeginLoadingScript = 10 ,
10
- EndLoadingScriptOK = 11 ,
11
- EndLoadingScriptError = 12 ,
12
-
13
- BeginInvokeFactory = 21 ,
14
- EndInvokeFactory = 22 ,
15
-
16
- NodeBeginEvaluatingScript = 31 ,
17
- NodeEndEvaluatingScript = 32 ,
18
-
19
- NodeBeginNativeRequire = 33 ,
20
- NodeEndNativeRequire = 34 ,
21
-
22
- CachedDataFound = 60 ,
23
- CachedDataMissed = 61 ,
24
- CachedDataRejected = 62 ,
25
- CachedDataCreated = 63 ,
26
- }
27
-
28
6
declare class LoaderEvent {
29
- readonly type : LoaderEventType ;
7
+ readonly type : number ;
30
8
readonly timestamp : number ;
31
9
readonly detail : string ;
32
10
}
Original file line number Diff line number Diff line change @@ -10,6 +10,28 @@ export const isESM = false;
10
10
// export const isESM = true;
11
11
// ESM-uncomment-end
12
12
13
+ export const enum LoaderEventType {
14
+ LoaderAvailable = 1 ,
15
+
16
+ BeginLoadingScript = 10 ,
17
+ EndLoadingScriptOK = 11 ,
18
+ EndLoadingScriptError = 12 ,
19
+
20
+ BeginInvokeFactory = 21 ,
21
+ EndInvokeFactory = 22 ,
22
+
23
+ NodeBeginEvaluatingScript = 31 ,
24
+ NodeEndEvaluatingScript = 32 ,
25
+
26
+ NodeBeginNativeRequire = 33 ,
27
+ NodeEndNativeRequire = 34 ,
28
+
29
+ CachedDataFound = 60 ,
30
+ CachedDataMissed = 61 ,
31
+ CachedDataRejected = 62 ,
32
+ CachedDataCreated = 63 ,
33
+ }
34
+
13
35
export abstract class LoaderStats {
14
36
abstract get amdLoad ( ) : [ string , number ] [ ] ;
15
37
abstract get amdInvoke ( ) : [ string , number ] [ ] ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { IExtensionService } from 'vs/workbench/services/extensions/common/exten
17
17
import { IDisposable , dispose } from 'vs/base/common/lifecycle' ;
18
18
import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService' ;
19
19
import { writeTransientState } from 'vs/workbench/contrib/codeEditor/browser/toggleWordWrap' ;
20
- import { LoaderStats , isESM } from 'vs/base/common/amd' ;
20
+ import { LoaderEventType , LoaderStats , isESM } from 'vs/base/common/amd' ;
21
21
import { IProductService } from 'vs/platform/product/common/productService' ;
22
22
import { ITextFileService } from 'vs/workbench/services/textfile/common/textfiles' ;
23
23
import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
You can’t perform that action at this time.
0 commit comments