From 9e62a05bc7c5dbb74d165e06f7c3a5f3c7549096 Mon Sep 17 00:00:00 2001 From: Samuel Toriel Date: Sun, 2 Dec 2018 18:23:40 -0700 Subject: [PATCH] [fix] #27649 pin intellisense documentation widget to top (#62115) Fixes: #27649 Long docs when cursor is near the bottom will jump to the top to allow for more space, but if the next suggestion docs are smaller it will jump back down creating a jarring experience when flipping through suggestions quickly. Pin the widget to the top if it flips to the top once so that the experience is more fluid. This is just one way we might handle it. Open to suggestions as this is my first PR to VSCode. --- .../editor/contrib/suggest/suggestWidget.ts | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/vs/editor/contrib/suggest/suggestWidget.ts b/src/vs/editor/contrib/suggest/suggestWidget.ts index fabad1d6bd2..22449644c67 100644 --- a/src/vs/editor/contrib/suggest/suggestWidget.ts +++ b/src/vs/editor/contrib/suggest/suggestWidget.ts @@ -439,6 +439,9 @@ export class SuggestWidget implements IContentWidget, IListVirtualDelegate