Skip to content

Commit

Permalink
Merge pull request #37 from Jobsity/fix/monaco-worker
Browse files Browse the repository at this point in the history
Fix/monaco worker
  • Loading branch information
diaspar authored Aug 9, 2018
2 parents bc8d863 + 953eeac commit 48db345
Show file tree
Hide file tree
Showing 13 changed files with 266 additions and 6 deletions.
6 changes: 3 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
</body>
</html>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.13.1/min/vs/loader.js"></script>
<script type="text/javascript" src="%PUBLIC_URL%/vs/loader.js"></script>
<script>
require.config({
paths: {
"vs": 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.13.1/min/vs'
"vs": '../node_modules/monaco-editor/min/vs'
}
});
window.MonacoEnvironment = {
getWorkerUrl: function (workerId, label) {
return "/monaco-editor-worker-loader-proxy.js";
return 'vs/base/worker/workerMain.js';
}
};
</script>
6 changes: 3 additions & 3 deletions public/monaco-editor-worker-loader-proxy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
self.MonacoEnvironment = {
baseUrl: 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.13.1/min/'
}
baseUrl: '../node_modules/monaco-editor/min',
};

importScripts('https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.13.1/min/vs/base/worker/workerMain.js') // eslint-disable-line
importScripts('vs/base/worker/workerMain.js') // eslint-disable-line
161 changes: 161 additions & 0 deletions public/vs/base/worker/workerMain.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/language/css/cssMode.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/language/css/cssWorker.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/language/html/htmlMode.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/language/html/htmlWorker.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/language/json/jsonMode.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/language/json/jsonWorker.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/language/typescript/lib/typescriptServices.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/language/typescript/tsMode.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/language/typescript/tsWorker.js

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions public/vs/loader.js

Large diffs are not rendered by default.

0 comments on commit 48db345

Please sign in to comment.