Skip to content

Commit

Permalink
minor thing
Browse files Browse the repository at this point in the history
  • Loading branch information
maruth-stripe committed Apr 29, 2024
1 parent 56d2b25 commit b3845fe
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
4 changes: 3 additions & 1 deletion docs/monaco/lib/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/monaco/lib/client.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/monaco/lib/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/monaco/lib/main.bundle.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/monaco/lib/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/monaco/lib/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion docs/monaco/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ let lastValue = editor.getValue();
typecheck(lastValue, new URLSearchParams(window.location.search).getAll('arg'));
let prog = surround(lastValue);
console.log('evaluation', prog);
vm.eval(prog);
if (vm) {
vm.eval(prog);
}

// install Monaco language client services
MonacoServices.install(editor);
Expand Down
5 changes: 3 additions & 2 deletions docs/monaco/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* ------------------------------------------------------------------------------------------ */
require('./page');
require('monaco-editor-core');
require('setimmediate');
(self as any).MonacoEnvironment = {
getWorkerUrl: () => './monaco/lib/editor.worker.bundle.js'
}
getWorkerUrl: () => './monaco/lib/editor.worker.bundle.js',
};
require('./client');

0 comments on commit b3845fe

Please sign in to comment.