File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/vs/editor/contrib/codeAction/browser Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,8 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
222
222
) ;
223
223
224
224
renderDisposables . add ( this . codeActionList . value . onDidChangeSelection ( e => this . _onListSelection ( e ) ) ) ;
225
+ renderDisposables . add ( this . _editor . onDidLayoutChange ( e => this . hideCodeActionWidget ( ) ) ) ;
226
+
225
227
226
228
// Populating the list widget and tracking enabled options.
227
229
inputArray . forEach ( ( item , index ) => {
@@ -256,7 +258,7 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
256
258
// resize observer - can be used in the future since list widget supports dynamic height but not width
257
259
const maxWidth = Math . max ( ...arr ) ;
258
260
259
- // 40 is the additional padding for the list widget (26px left, 26px right)
261
+ // 40 is the additional padding for the list widget (20 left, 20 right)
260
262
renderMenu . style . width = maxWidth + 52 + 'px' ;
261
263
this . codeActionList . value ?. layout ( height , maxWidth ) ;
262
264
You can’t perform that action at this time.
0 commit comments