no "Change All Occurrences" when there is a rename provider

This commit is contained in:
Johannes Rieken 2019-11-07 16:59:59 +01:00
parent 9563176cd1
commit 5c27cdccf8

View file

@ -759,7 +759,7 @@ export class CompatChangeAll extends MultiCursorSelectionControllerAction {
id: 'editor.action.changeAll',
label: nls.localize('changeAll.label', "Change All Occurrences"),
alias: 'Change All Occurrences',
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.editorTextFocus),
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.editorTextFocus, EditorContextKeys.hasRenameProvider.toNegated()),
kbOpts: {
kbExpr: EditorContextKeys.editorTextFocus,
primary: KeyMod.CtrlCmd | KeyCode.F2,