Skip to content

wait for git init #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
wait for git init
  • Loading branch information
ShMcK committed Apr 5, 2020
commit c3f2e5a5bda60d86034c08cf86d4175b7e548728
6 changes: 3 additions & 3 deletions src/actions/tutorialConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ const tutorialConfig = async (
handleError({
title: error.message,
description:
'Be sure you install Git. See the docs for help https://git-scm.com/book/en/v2/Getting-Started-Installing-Git',
'Make sure you install Git. See the docs for help https://git-scm.com/book/en/v2/Getting-Started-Installing-Git',
})
})

// TODO if remote not already set
await git.setupRemote(config.repo.uri).catch((error) => {
onError(error)
handleError({ title: error.message, description: 'Remove your current Git project and restarting' })
handleError({ title: error.message, description: 'Remove your current Git project and reload the editor' })
})
}

vscode.commands.executeCommand(COMMANDS.CONFIG_TEST_RUNNER, config.testRunner)
await vscode.commands.executeCommand(COMMANDS.CONFIG_TEST_RUNNER, config.testRunner)

// verify if file test should run based on document saved
const shouldRunTest = (document: vscode.TextDocument): boolean => {
Expand Down
2 changes: 1 addition & 1 deletion src/channel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Channel implements Channel {
case 'EDITOR_TUTORIAL_CONFIG':
const data: TT.Tutorial = action.payload.tutorial
// setup tutorial config (save watcher, test runner, etc)
this.context.setTutorial(this.workspaceState, data)
await this.context.setTutorial(this.workspaceState, data)

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

Expand Down