mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
Minor edits
This commit is contained in:
parent
db327beb63
commit
1b39474886
3 changed files with 6 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue