Add playground samples

This commit is contained in:
Alex Dima 2016-06-16 16:44:09 +02:00
parent 5cee62a7c0
commit 5e04caa816
27 changed files with 413 additions and 686 deletions

View file

@ -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;',