@@ -346,8 +346,6 @@ export class ImportComponent implements OnInit, OnDestroy {
346346 if ( this . uploader === undefined ) {
347347 this . initializeUploader ( ) ;
348348 }
349- this . configureMonacoEnvironment ( ) ;
350-
351349 // Subscribe to theme changes to update Monaco editor theme
352350 this . subscriptions . push (
353351 this . themeSvc . theme$ . subscribe ( ( ) => {
@@ -367,26 +365,6 @@ export class ImportComponent implements OnInit, OnDestroy {
367365 }
368366 }
369367
370- private configureMonacoEnvironment ( ) {
371- // Configure Monaco Editor environment to load assets from correct path
372- ( window as any ) . MonacoEnvironment = {
373- getWorkerUrl : function ( moduleId : string , label : string ) {
374- if ( label === 'json' ) {
375- return './assets/monaco/vs/language/json/jsonWorker.js' ;
376- }
377- if ( label === 'css' || label === 'scss' || label === 'less' ) {
378- return './assets/monaco/vs/language/css/cssWorker.js' ;
379- }
380- if ( label === 'html' || label === 'handlebars' || label === 'razor' ) {
381- return './assets/monaco/vs/language/html/htmlWorker.js' ;
382- }
383- if ( label === 'typescript' || label === 'javascript' ) {
384- return './assets/monaco/vs/language/typescript/tsWorker.js' ;
385- }
386- return './assets/monaco/vs/base/worker/workerMain.js' ;
387- }
388- } ;
389- }
390368
391369 private initializeUploader ( ) {
392370 this . referenceUrl = this . configSvc . refDocUrl ;
0 commit comments