We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee4417 commit c73d58bCopy full SHA for c73d58b
src/leanmonaco.ts
@@ -143,15 +143,18 @@ export class LeanMonaco {
143
document.fonts.add(fontFile);
144
await fontFile.load()
145
146
- if (this.disposed) return;
+ this.updateVSCodeOptions(options.vscode ?? {})
147
148
- updateUserConfiguration(JSON.stringify({
149
- "[lean4]": options.vscode
150
- }))
+ if (this.disposed) return;
151
152
this.ready()
153
}
154
+ updateVSCodeOptions(vsCodeOptions: { [id: string]: any }){
+ updateUserConfiguration(JSON.stringify({
155
+ "[lean4]": vsCodeOptions
156
+ }))
157
+ }
158
159
setInfoviewElement(infoviewEl: HTMLElement){
160
if (this.iframeWebviewFactory) this.iframeWebviewFactory.setInfoviewElement(infoviewEl)
0 commit comments