mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Add playground samples
This commit is contained in:
parent
5cee62a7c0
commit
5e04caa816
27 changed files with 413 additions and 686 deletions
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
window.onload = function() {
|
||||
require(['vs/editor/editor.main'], function() {
|
||||
xhr('playground/samples/editor.d.ts.txt').then(function(response) {
|
||||
monaco.languages.typescript.javascriptDefaults.addExtraLib(response.responseText, 'editor.d.ts');
|
||||
xhr('playground/monaco.d.ts.txt').then(function(response) {
|
||||
monaco.languages.typescript.javascriptDefaults.addExtraLib(response.responseText, 'monaco.d.ts');
|
||||
monaco.languages.typescript.javascriptDefaults.addExtraLib([
|
||||
'declare var require: {',
|
||||
' toUrl(path: string): string;',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue