Skip to content

Commit 00b91ce

Browse files
authored
1 parent 133b4e5 commit 00b91ce

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/vs/workbench/contrib/inlineChat/electron-sandbox/inlineChatQuickVoice.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,9 @@ class QuickVoiceWidget implements IContentWidget {
151151
return null;
152152
}
153153
const selection = this._editor.getSelection();
154-
// const position = this._editor.getPosition();
155154
return {
156-
position: selection.getPosition(),
157-
preference: [
158-
selection.getPosition().equals(selection.getStartPosition()) ? ContentWidgetPositionPreference.ABOVE : ContentWidgetPositionPreference.BELOW,
159-
ContentWidgetPositionPreference.EXACT
160-
]
155+
position: selection.getStartPosition(),
156+
preference: [ContentWidgetPositionPreference.ABOVE, ContentWidgetPositionPreference.EXACT]
161157
};
162158
}
163159

0 commit comments

Comments
 (0)