Skip to content

Commit b4a2db7

Browse files
authored
Support clicking Custom NES Edit new (microsoft#261335)
1 parent 4ac3a9a commit b4a2db7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ export class InlineEditsCustomView extends Disposable implements IInlineEditsVie
255255
justifyContent: 'center',
256256
whiteSpace: 'nowrap',
257257
},
258+
onmousedown: e => {
259+
e.preventDefault(); // This prevents that the editor loses focus
260+
},
258261
onclick: (e) => { this._onDidClick.fire(new StandardMouseEvent(getWindow(e), e)); }
259262
}, [
260263
line

0 commit comments

Comments
 (0)