File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ const tutorialConfig = async (
2727 } )
2828 } )
2929
30+ try {
31+ await git . checkRemoteConnects ( config . repo )
32+ } catch ( error ) {
33+ onError ( error )
34+ handleError ( { title : 'Error connecting to Git repo' , description : error . message } )
35+ }
36+
3037 // TODO if remote not already set
3138 await git . setupRemote ( config . repo . uri ) . catch ( ( error ) => {
3239 onError ( error )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import tutorialConfig from '../actions/tutorialConfig'
88import { COMMANDS } from '../editor/commands'
99import logger from '../services/logger'
1010import Context from './context'
11- import { version as gitVersion , checkRemoteConnects } from '../services/git'
11+ import { version as gitVersion } from '../services/git'
1212import { openWorkspace , checkWorkspaceEmpty } from '../services/workspace'
1313
1414interface Channel {
@@ -86,12 +86,12 @@ class Channel implements Channel {
8686 // setup tutorial config (save watcher, test runner, etc)
8787 await this . context . setTutorial ( this . workspaceState , data )
8888
89- await tutorialConfig ( { config : data . config } , onError )
90-
9189 try {
92- await checkRemoteConnects ( data . config . repo )
90+ // TODO: better handle errors
91+ await tutorialConfig ( { config : data . config } , onError )
9392 } catch ( error ) {
94- this . send ( { type : 'GIT_REMOTE_FAILED' , payload : { message : error . message } } )
93+ // TODO send failure messages back to client
94+ // to show errors in the webview
9595 }
9696
9797 // report back to the webview that setup is complete
You can’t perform that action at this time.
0 commit comments