mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +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() {
|
constructor() {
|
||||||
let lastState = this.state;
|
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({
|
this.dispose.track({
|
||||||
dispose: reaction(
|
dispose: reaction(
|
||||||
() => ({ state: this.state }),
|
() => ({ state: this.state }),
|
||||||
|
|
@ -195,6 +184,17 @@ export class PlaygroundModel {
|
||||||
let disposable: Disposable | undefined = undefined;
|
let disposable: Disposable | undefined = undefined;
|
||||||
|
|
||||||
waitForLoadedMonaco().then((m) => {
|
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 =
|
const options =
|
||||||
monaco.languages.typescript.javascriptDefaults.getCompilerOptions();
|
monaco.languages.typescript.javascriptDefaults.getCompilerOptions();
|
||||||
monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions(
|
monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue