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
constvalue=/* set from `myEditor.getModel()`: */`function hello() { alert('Hello world!'); functi abc() { abc = 123 return asdf(); }};`;monaco.languages.registerCodeActionProvider("javascript",{provideCodeActions: (model,range,context,token)=>{constactions=context.markers.map(error=>{return{title: `My quickfix`,// Name of quickfixdiagnostics: [error],kind: "abc",edit: {edits: [{resource: model.uri,textEdit: {range: error,text: "replacement text"// text to replace with},versionId: 1}]},isPreferred: true};});return{actions: actions,dispose: ()=>{}}}});// Hover on each property to see its docs!constmyEditor=monaco.editor.create(document.getElementById("container"),{
value,language: "javascript",automaticLayout: true,lightbulb: {enabled: monaco.editor.ShowLightbulbIconMode.On},});monaco.editor.EditorZoom.setZoomLevel(20)
Reproduction Steps
Click on the error code (functi)
Notice the size of the lightBulb on the left
Actual (Problematic) Behavior
Expected Behavior
If I don't use setZoomLevel, but instead set the zoom of the whole browser tab, the size looks correct:
Additional Context
No response
The text was updated successfully, but these errors were encountered:
lishibo
changed the title
[Bug] editor.EditorZoom.setZoomLevel doesn't set the lightBulb correctly
[Bug] editor.EditorZoom.setZoomLevel doesn't set the scale for lightBulb icon
May 6, 2024
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
Playground repro
Monaco Editor Playground Code
Reproduction Steps
functi
)Actual (Problematic) Behavior
Expected Behavior
If I don't use
setZoomLevel
, but instead set the zoom of the whole browser tab, the size looks correct:Additional Context
No response
The text was updated successfully, but these errors were encountered: