mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
Merge pull request #3901 from microsoft/hediet/b/remaining-felidae
Fixes broken website.
This commit is contained in:
commit
2f51994ab5
1 changed files with 11 additions and 11 deletions
|
|
@ -148,17 +148,6 @@ export class PlaygroundModel {
|
|||
constructor() {
|
||||
let lastState = this.state;
|
||||
|
||||
this.dispose.track(
|
||||
monaco.editor.addEditorAction({
|
||||
id: "reload",
|
||||
label: "Reload",
|
||||
run: (editor, ...args) => {
|
||||
this.reload();
|
||||
},
|
||||
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter],
|
||||
})
|
||||
);
|
||||
|
||||
this.dispose.track({
|
||||
dispose: reaction(
|
||||
() => ({ state: this.state }),
|
||||
|
|
@ -195,6 +184,17 @@ export class PlaygroundModel {
|
|||
let disposable: Disposable | undefined = undefined;
|
||||
|
||||
waitForLoadedMonaco().then((m) => {
|
||||
this.dispose.track(
|
||||
monaco.editor.addEditorAction({
|
||||
id: "reload",
|
||||
label: "Reload",
|
||||
run: (editor, ...args) => {
|
||||
this.reload();
|
||||
},
|
||||
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter],
|
||||
})
|
||||
);
|
||||
|
||||
const options =
|
||||
monaco.languages.typescript.javascriptDefaults.getCompilerOptions();
|
||||
monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue