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.
EditorOption.lineHeight
1 parent 519df4f commit 2347ccbCopy full SHA for 2347ccb
src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.ts
@@ -152,7 +152,8 @@ export class DictationWidget extends Disposable implements IContentWidget {
152
}
153
154
beforeRender(): IDimension | null {
155
- const lineHeight = this.editor.getOption(EditorOption.lineHeight);
+ const position = this.editor.getPosition();
156
+ const lineHeight = position ? this.editor.getLineHeightForPosition(position) : this.editor.getOption(EditorOption.lineHeight);
157
const width = this.editor.getLayoutInfo().contentWidth * 0.7;
158
159
this.domNode.style.setProperty('--vscode-editor-dictation-widget-height', `${lineHeight}px`);
0 commit comments