Skip to content

Commit

Permalink
self review
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Apr 28, 2023
1 parent 3dfb522 commit f247d04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions extension/src/commands/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Disposable } from '../class/dispose'
type Command = (...args: Args) => unknown | Promise<unknown>

export const AvailableCommands = Object.assign(
{ EXP_PUSH: 'expPush' } as const,
{},
DvcExecutorCommands,
DvcReaderCommands,
DvcRunnerCommands,
Expand All @@ -30,7 +30,7 @@ export const AvailableCommands = Object.assign(
typeof DvcRunnerCommands &
typeof DvcViewerCommands &
typeof GitExecutorCommands &
typeof GitReaderCommands & { EXP_PUSH: 'expPush' }
typeof GitReaderCommands
export type CommandId =
(typeof AvailableCommands)[keyof typeof AvailableCommands]

Expand Down
6 changes: 3 additions & 3 deletions extension/src/experiments/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ export const getShareExperimentToStudioCommand =
return commands.executeCommand(RegisteredCommands.SETUP_SHOW)
}

return Toast.showProgress('Pushing Experiment', async progress => {
return Toast.showProgress('Sharing', async progress => {
progress.report({ increment: 0 })

progress.report({ increment: 25, message: 'Pushing experiment...' })
progress.report({ increment: 25, message: 'Running exp push...' })

await Toast.runCommandAndIncrementProgress(
() =>
Expand All @@ -131,6 +131,6 @@ export const getShareExperimentToStudioCommand =
75
)

return Toast.delayProgressClosing()
return Toast.delayProgressClosing(15000)
})
}
4 changes: 2 additions & 2 deletions extension/src/vscode/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export class Toast {
})
}

static delayProgressClosing() {
return delay(5000)
static delayProgressClosing(ms = 5000) {
return delay(ms)
}

private static waitForResponse(
Expand Down

0 comments on commit f247d04

Please sign in to comment.