mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Fix test page paths
This commit is contained in:
parent
cc15298334
commit
becf53e270
1 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var paths = {
|
var paths = {
|
||||||
'vs/language/typescript': '../out',
|
'vs/language/typescript': '../release/dev',
|
||||||
'vs': '../node_modules/monaco-editor-core/dev/vs'
|
'vs': '../node_modules/monaco-editor-core/dev/vs'
|
||||||
};
|
};
|
||||||
if (document.location.protocol === 'http:') {
|
if (document.location.protocol === 'http:') {
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
let testIndex = document.location.pathname.indexOf('/test/');
|
let testIndex = document.location.pathname.indexOf('/test/');
|
||||||
if (testIndex !== -1) {
|
if (testIndex !== -1) {
|
||||||
let prefix = document.location.pathname.substr(0, testIndex);
|
let prefix = document.location.pathname.substr(0, testIndex);
|
||||||
paths['vs/language/typescript'] = prefix + '/out';
|
paths['vs/language/typescript'] = prefix + '/release/dev';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var require = {
|
var require = {
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
require([
|
require([
|
||||||
'vs/language/typescript/src/monaco.contribution'
|
'vs/language/typescript/monaco.contribution'
|
||||||
], function() {
|
], function() {
|
||||||
var editor = monaco.editor.create(document.getElementById('container'), {
|
var editor = monaco.editor.create(document.getElementById('container'), {
|
||||||
value: [
|
value: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue