소스 검색

Merge pull request #2118 from microsoft/ts_amd

Adds support for both quotes in the TS side
Alexandru Dima 4 년 전
부모
커밋
ffca8b9634
1개의 변경된 파일2개의 추가작업 그리고 18개의 파일을 삭제
  1. 2 18
      gulpfile.js

+ 2 - 18
gulpfile.js

@@ -185,24 +185,8 @@ function addPluginContribs(type) {
 			var contribContents = fs.readFileSync(contribPath).toString();
 
 			contribContents = contribContents.replace(
-				`define('vs/language/css/fillers/monaco-editor-core',[],`,
-				`define('vs/language/css/fillers/monaco-editor-core',['vs/editor/editor.api'],`,
-			);
-			contribContents = contribContents.replace(
-				`define('vs/language/html/fillers/monaco-editor-core',[],`,
-				`define('vs/language/html/fillers/monaco-editor-core',['vs/editor/editor.api'],`,
-			);
-			contribContents = contribContents.replace(
-				`define('vs/language/json/fillers/monaco-editor-core',[],`,
-				`define('vs/language/json/fillers/monaco-editor-core',['vs/editor/editor.api'],`,
-			);
-			contribContents = contribContents.replace(
-				`define('vs/language/typescript/fillers/monaco-editor-core',[],`,
-				`define('vs/language/typescript/fillers/monaco-editor-core',['vs/editor/editor.api'],`,
-			);
-			contribContents = contribContents.replace(
-				`define('vs/basic-languages/fillers/monaco-editor-core',[],`,
-				`define('vs/basic-languages/fillers/monaco-editor-core',['vs/editor/editor.api'],`,
+				/define\((['"][a-z\/\-]+\/fillers\/monaco-editor-core['"]),\[\],/,
+				'define($1,[\'vs/editor/editor.api\'],'
 			);
 
 			extraContent.push(contribContents);