File tree Expand file tree Collapse file tree
src/vs/editor/browser/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,17 +195,17 @@ export class SnoozeInlineCompletion extends Action2 {
195195 const inlineCompletionsService = accessor . get ( IInlineCompletionsService ) ;
196196 const storageService = accessor . get ( IStorageService ) ;
197197
198- let durationMinutes : number | undefined ;
198+ let durationMs : number | undefined ;
199199 if ( args . length > 0 && typeof args [ 0 ] === 'number' ) {
200- durationMinutes = args [ 0 ] ;
200+ durationMs = args [ 0 ] * 60_000 ;
201201 }
202202
203- if ( ! durationMinutes ) {
204- durationMinutes = await this . getDurationFromUser ( quickInputService , storageService ) ;
203+ if ( ! durationMs ) {
204+ durationMs = await this . getDurationFromUser ( quickInputService , storageService ) ;
205205 }
206206
207- if ( durationMinutes ) {
208- inlineCompletionsService . setSnoozeDuration ( durationMinutes ) ;
207+ if ( durationMs ) {
208+ inlineCompletionsService . setSnoozeDuration ( durationMs ) ;
209209 }
210210 }
211211
You can’t perform that action at this time.
0 commit comments