mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
Adopt latest monaco-editor-core
This commit is contained in:
parent
ecfce903c4
commit
e294277b7e
4 changed files with 24 additions and 1 deletions
|
|
@ -26,7 +26,7 @@
|
|||
"jsdom-no-contextify": "^3.1.0",
|
||||
"merge-stream": "^1.0.1",
|
||||
"mocha": "^3.4.2",
|
||||
"monaco-editor-core": "^0.8.0",
|
||||
"monaco-editor-core": "^0.9.0",
|
||||
"object-assign": "^4.1.1",
|
||||
"rimraf": "^2.6.1",
|
||||
"typescript": "2.3.4"
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ var jsdom = require('jsdom-no-contextify');
|
|||
requirejs.config({
|
||||
baseUrl: '',
|
||||
paths: {
|
||||
'vs/css': 'test/css.mock',
|
||||
'vs/nls': 'test/nls.mock',
|
||||
// 'vs': '../vscode/out/vs'
|
||||
'vs': 'node_modules/monaco-editor-core/dev/vs'
|
||||
},
|
||||
|
|
@ -15,6 +17,7 @@ global.document.queryCommandSupported = function() {};
|
|||
global.self = global.window = global.document.parentWindow;
|
||||
global.navigator = global.window.navigator;
|
||||
global.window.require = requirejs;
|
||||
global.doNotInitLoader = true;
|
||||
|
||||
function MyWorker() {}
|
||||
MyWorker.prototype.postMessage = function() {};
|
||||
|
|
|
|||
5
test/css.mock.js
Normal file
5
test/css.mock.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
define('vs/css', [], {
|
||||
load: function(name, req, load) {
|
||||
load({});
|
||||
}
|
||||
});
|
||||
15
test/nls.mock.js
Normal file
15
test/nls.mock.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
define('vs/nls', [], {
|
||||
create: function() {
|
||||
return {
|
||||
localize: function() {
|
||||
return 'NO_LOCALIZATION_FOR_YOU';
|
||||
}
|
||||
};
|
||||
},
|
||||
localize: function() {
|
||||
return 'NO_LOCALIZATION_FOR_YOU';
|
||||
},
|
||||
load: function(name, req, load) {
|
||||
load({});
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue