Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Adopt latest monaco-editor-core
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Jun 30, 2017
1 parent ecfce90 commit e294277
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions test/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand All @@ -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() {};
Expand Down
5 changes: 5 additions & 0 deletions test/css.mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
define('vs/css', [], {
load: function(name, req, load) {
load({});
}
});
15 changes: 15 additions & 0 deletions test/nls.mock.js
Original file line number Diff line number Diff line change
@@ -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({});
}
});

0 comments on commit e294277

Please sign in to comment.