You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 0.41.0 this works. But after upgrade to the latest 0.52.2 it does't.
After some investigation I can see that versions > 0.41.0 gives error in console but not breaking an app and versions > 0.48.0 started to break an app.
It's reproducible in the playground. Try please.
I tried to debug it in the browser and I see that on the error line I have _storageService.onDidChangeValue and it's defined as function, but it still throws an error.
Monaco Editor Playground Code
constvalue=/* set from `myEditor.getModel()`: */`function hello() { alert('Hello world!');}`;// Hover on each property to see its docs!constmyEditor=monaco.editor.create(document.getElementById("container"),{
value,language: "javascript",automaticLayout: true,},{// Note: Overrides inner editor UI configurationstorageService: {get(){},getBoolean(key){// Note: This config is to show property description on property selection automaticallyif(key==="expandSuggestionDocs")returntrue;returnfalse;},remove(){},store(){},onWillSaveState(){},onDidChangeStorage(){},onDidChangeValue(){}}});
Reproduction Steps
Just refresh. Error will be from start.
Actual (Problematic) Behavior
TypeError: _storageService.onDidChangeValue(...) is not a function: undefined
Expected Behavior
No error
Additional Context
I am trying to override storage service to show property description on property selection automatically. This workaround was helpful in the old 0.41.0 version
The text was updated successfully, but these errors were encountered:
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Description
In version
0.41.0
this works. But after upgrade to the latest0.52.2
it does't.After some investigation I can see that versions >
0.41.0
gives error in console but not breaking an app and versions >0.48.0
started to break an app.It's reproducible in the playground. Try please.
I tried to debug it in the browser and I see that on the error line I have
_storageService.onDidChangeValue
and it's defined as function, but it still throws an error.Monaco Editor Playground Code
Reproduction Steps
Just refresh. Error will be from start.
Actual (Problematic) Behavior
TypeError: _storageService.onDidChangeValue(...) is not a function: undefined
Expected Behavior
No error
Additional Context
I am trying to override storage service to show property description on property selection automatically. This workaround was helpful in the old
0.41.0
versionThe text was updated successfully, but these errors were encountered: