File tree 2 files changed +5
-25
lines changed
2 files changed +5
-25
lines changed Original file line number Diff line number Diff line change
1
+ import 'monaco-editor/esm/vs/language/typescript/monaco.contribution' ;
2
+ import 'monaco-editor/esm/vs/language/css/monaco.contribution' ;
3
+ import 'monaco-editor/esm/vs/language/json/monaco.contribution' ;
4
+ import 'monaco-editor/esm/vs/language/html/monaco.contribution' ;
5
+ import 'monaco-editor/esm/vs/basic-languages/monaco.contribution' ;
1
6
/**
2
7
* This module is overwrite the original monaco-editor/esm/vs/editor/editor.main.js
3
8
*/
Original file line number Diff line number Diff line change 65
65
] ,
66
66
} ) ;
67
67
}
68
-
69
- ( < any > self ) . MonacoEnvironment = {
70
- getWorkerUrl : function ( moduleId , label ) {
71
- switch ( label ) {
72
- case 'css' : {
73
- return './css.worker.js' ;
74
- }
75
- case 'typescript' : {
76
- return './typescript.worker.js' ;
77
- }
78
- case 'javascript' : {
79
- return './javascript.worker.js' ;
80
- }
81
- case 'html' : {
82
- return './html.worker.js' ;
83
- }
84
- case 'json' : {
85
- return './json.worker.js' ;
86
- }
87
- default : {
88
- return './editor.worker.js' ;
89
- }
90
- }
91
- } ,
92
- } ;
You can’t perform that action at this time.
0 commit comments