Add support to run from source using tsc -w

This commit is contained in:
Alex Dima 2022-01-27 16:54:31 +01:00
parent 22c629374e
commit 8f2bc4ac98
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
2 changed files with 17 additions and 0 deletions

View file

@ -207,6 +207,18 @@
loadScript(RESOLVED_CORE.getResolvedPath(PATH_PREFIX) + '/loader.js', function () {
let loaderPathsConfig = {};
window.AMD = true;
if (IS_FILE_PROTOCOL) {
loaderPathsConfig['vs/language/fillers/monaco-editor-core'] =
DIRNAME + '/.././out/amd/fillers/monaco-editor-core-amd';
loaderPathsConfig['vs/fillers/monaco-editor-core'] =
DIRNAME + '/.././out/amd/fillers/monaco-editor-core-amd';
} else {
loaderPathsConfig['vs/language/fillers/monaco-editor-core'] =
PATH_PREFIX + '/monaco-editor/./out/amd/fillers/monaco-editor-core-amd';
loaderPathsConfig['vs/fillers/monaco-editor-core'] =
PATH_PREFIX + '/monaco-editor/./out/amd/fillers/monaco-editor-core-amd';
}
if (!RESOLVED_CORE.isRelease()) {
RESOLVED_PLUGINS.forEach(function (plugin) {
plugin.generateLoaderConfig(loaderPathsConfig, PATH_PREFIX);