Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
checkRemoteConnects
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Apr 10, 2020
commit d7a5e42c9c7ea777a5c3d1a41202a3d4222754a3
8 changes: 7 additions & 1 deletion src/channel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import tutorialConfig from '../actions/tutorialConfig'
import { COMMANDS } from '../editor/commands'
import logger from '../services/logger'
import Context from './context'
import { version as gitVersion } from '../services/git'
import { version as gitVersion, checkRemoteConnects } from '../services/git'
import { openWorkspace, checkWorkspaceEmpty } from '../services/workspace'

interface Channel {
Expand Down Expand Up @@ -88,6 +88,12 @@ class Channel implements Channel {

await tutorialConfig({ config: data.config }, onError)

try {
await checkRemoteConnects(data.config.repo)
} catch (error) {
this.send({ type: 'GIT_REMOTE_FAILED', payload: { message: error.message } })
}

// report back to the webview that setup is complete
this.send({ type: 'TUTORIAL_CONFIGURED' })
return
Expand Down