Minor edits

pull/2112/head
Alex Dima 2020-09-17 22:23:21 +02:00
parent db327beb63
commit 1b39474886
No known key found for this signature in database
GPG Key ID: 6E58D7B045760DA0
3 changed files with 6 additions and 4 deletions

View File

@ -832,6 +832,8 @@ function createSimpleServer(rootDir, port) {
});
}
gulp.task('generate-test-samples', taskSeries(generateTestSamplesTask));
gulp.task('simpleserver', taskSeries(generateTestSamplesTask, function() {
const SERVER_ROOT = path.normalize(path.join(__dirname, '../'));
createSimpleServer(SERVER_ROOT, 8080);

View File

@ -63,8 +63,8 @@ var libSource = [
].join('\n');
var libUri = 'ts:filename/facts.d.ts';
monaco.languages.typescript.javascriptDefaults.addExtraLib(libSource, libUri);
// When resolving definitions and references, editor will try to use created models.
// Following line allows "peek definition/references" commands to work with library.
// When resolving definitions and references, the editor will try to use created models.
// 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));
var jsCode = [

View File

@ -26,8 +26,8 @@ var libSource = [
].join('\n');
var libUri = 'ts:filename/facts.d.ts';
monaco.languages.typescript.javascriptDefaults.addExtraLib(libSource, libUri);
// When resolving definitions and references, editor will try to use created models.
// Following line allows "peek definition/references" commands to work with library.
// When resolving definitions and references, the editor will try to use created models.
// 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));
var jsCode = [