11'use strict' ;
22import { commands , ConfigurationTarget , MessageItem , Uri , window } from 'vscode' ;
33import { Commands } from './commands' ;
4- import { configuration , KeyMap } from './configuration' ;
4+ import { configuration } from './configuration' ;
55import { BuiltInCommands , CommandContext , setCommandContext } from './constants' ;
6- import { Container } from './container' ;
76import { GitCommit } from './git/gitService' ;
87import { Logger } from './logger' ;
98
@@ -15,7 +14,6 @@ export enum SuppressedMessages {
1514 GitVersionWarning = 'suppressGitVersionWarning' ,
1615 LineUncommittedWarning = 'suppressLineUncommittedWarning' ,
1716 NoRepositoryWarning = 'suppressNoRepositoryWarning' ,
18- ShowKeyBindingsNotice = 'suppressShowKeyBindingsNotice' ,
1917 SupportGitLensNotification = 'suppressSupportGitLensNotification'
2018}
2119
@@ -83,44 +81,6 @@ export class Messages {
8381 ) ;
8482 }
8583
86- static async showKeyBindingsInfoMessage ( ) : Promise < MessageItem | undefined > {
87- if (
88- Container . config . keymap !== KeyMap . Alternate ||
89- Container . config . advanced . messages . suppressShowKeyBindingsNotice
90- ) {
91- return undefined ;
92- }
93-
94- const actions : MessageItem [ ] = [
95- { title : 'Keep Shortcuts' , isCloseAffordance : true } ,
96- { title : 'Switch Shortcuts' } ,
97- { title : 'No Shortcuts' }
98- ] ;
99- const result = await Messages . showMessage (
100- 'info' ,
101- `GitLens is using keyboard shortcuts which can conflict with menu mnemonics and different keyboard layouts. To avoid such conflicts, it is recommended to switch to the new default keyboard shortcuts.` ,
102- SuppressedMessages . ShowKeyBindingsNotice ,
103- null ,
104- ...actions
105- ) ;
106-
107- switch ( result ) {
108- case actions [ 1 ] :
109- await configuration . update (
110- configuration . name ( 'keymap' ) . value ,
111- KeyMap . Chorded ,
112- ConfigurationTarget . Global
113- ) ;
114- break ;
115-
116- case actions [ 2 ] :
117- await configuration . update ( configuration . name ( 'keymap' ) . value , KeyMap . None , ConfigurationTarget . Global ) ;
118- break ;
119- }
120-
121- return result ;
122- }
123-
12484 static showLineUncommittedWarningMessage ( message : string ) : Promise < MessageItem | undefined > {
12585 return Messages . showMessage (
12686 'warn' ,
0 commit comments