Minor edits
parent
db327beb63
commit
1b39474886
|
@ -832,6 +832,8 @@ function createSimpleServer(rootDir, port) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gulp.task('generate-test-samples', taskSeries(generateTestSamplesTask));
|
||||||
|
|
||||||
gulp.task('simpleserver', taskSeries(generateTestSamplesTask, function() {
|
gulp.task('simpleserver', taskSeries(generateTestSamplesTask, function() {
|
||||||
const SERVER_ROOT = path.normalize(path.join(__dirname, '../'));
|
const SERVER_ROOT = path.normalize(path.join(__dirname, '../'));
|
||||||
createSimpleServer(SERVER_ROOT, 8080);
|
createSimpleServer(SERVER_ROOT, 8080);
|
||||||
|
|
|
@ -63,8 +63,8 @@ var libSource = [
|
||||||
].join('\n');
|
].join('\n');
|
||||||
var libUri = 'ts:filename/facts.d.ts';
|
var libUri = 'ts:filename/facts.d.ts';
|
||||||
monaco.languages.typescript.javascriptDefaults.addExtraLib(libSource, libUri);
|
monaco.languages.typescript.javascriptDefaults.addExtraLib(libSource, libUri);
|
||||||
// When resolving definitions and references, editor will try to use created models.
|
// When resolving definitions and references, the editor will try to use created models.
|
||||||
// Following line allows "peek definition/references" commands to work with library.
|
// Creating a model for the library allows "peek definition/references" commands to work with the library.
|
||||||
monaco.editor.createModel(libSource, 'typescript', monaco.Uri.parse(libUri));
|
monaco.editor.createModel(libSource, 'typescript', monaco.Uri.parse(libUri));
|
||||||
|
|
||||||
var jsCode = [
|
var jsCode = [
|
||||||
|
|
|
@ -26,8 +26,8 @@ var libSource = [
|
||||||
].join('\n');
|
].join('\n');
|
||||||
var libUri = 'ts:filename/facts.d.ts';
|
var libUri = 'ts:filename/facts.d.ts';
|
||||||
monaco.languages.typescript.javascriptDefaults.addExtraLib(libSource, libUri);
|
monaco.languages.typescript.javascriptDefaults.addExtraLib(libSource, libUri);
|
||||||
// When resolving definitions and references, editor will try to use created models.
|
// When resolving definitions and references, the editor will try to use created models.
|
||||||
// Following line allows "peek definition/references" commands to work with library.
|
// Creating a model for the library allows "peek definition/references" commands to work with the library.
|
||||||
monaco.editor.createModel(libSource, 'typescript', monaco.Uri.parse(libUri));
|
monaco.editor.createModel(libSource, 'typescript', monaco.Uri.parse(libUri));
|
||||||
|
|
||||||
var jsCode = [
|
var jsCode = [
|
||||||
|
|
Loading…
Reference in New Issue