Merge pull request #135917 from laurentlb/master

Make 'expandLineSelection' a proper action.
This commit is contained in:
Alexandru Dima 2021-11-22 22:31:57 +01:00 committed by GitHub
commit 9456805138
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@ import { Range } from 'vs/editor/common/core/range';
import { Handler, ScrollType } from 'vs/editor/common/editorCommon';
import { EditorContextKeys } from 'vs/editor/common/editorContextKeys';
import { VerticalRevealType } from 'vs/editor/common/view/viewEvents';
import { MenuId } from 'vs/platform/actions/common/actions';
import { ICommandHandlerDescription } from 'vs/platform/commands/common/commands';
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
@ -1527,7 +1528,13 @@ export namespace CoreNavigationCommands {
weight: CORE_WEIGHT,
kbExpr: EditorContextKeys.textInputFocus,
primary: KeyMod.CtrlCmd | KeyCode.KeyL
}
},
menuOpts: [{
menuId: MenuId.CommandPalette,
group: '',
title: nls.localize('expandLineSelection', "Expand Line Selection"),
order: 1
}]
});
}