0.8.3. prep

This commit is contained in:
Alex Dima 2017-03-03 17:45:02 +01:00
parent cd24ba4660
commit 3d272380ab
5 changed files with 8 additions and 4 deletions

View file

@ -28,7 +28,7 @@ define(['./samples-all.generated'], function(ALL_SAMPLES) {
name: name,
mimeType: mimeType,
loadText: function() {
return monaco.Promise.as(XHR_SAMPLES[modelUrl]);
return monaco.Promise.as(XHR_SAMPLES[modelUrl]).then(textModifier);
}
});
}
@ -66,6 +66,7 @@ define(['./samples-all.generated'], function(ALL_SAMPLES) {
addXHRSample('Z___jquery-min.js', 'run-editor-jquery-min-js.txt', 'text/javascript');
addXHRSample('Z___scrolling-strategy.js', 'run-editor-sample-js.txt', 'text/plain', function(text) {
console.log('here I am');
var lines = text.split('\n');
var newLines = lines.slice(0);