File tree
27 files changed
+631
-950
lines changed- src
- actions
- services
- git
- node
- sentry
- testRunner
- webview
- web-app
- src
- components
- ErrorBoundary
- Error
- Markdown
- Router
- services
- selectors
- sentry
- state/actions
27 files changed
+631
-950
lines changedLines changed: 354 additions & 869 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
| |||
48 | 50 |
| |
49 | 51 |
| |
50 | 52 |
| |
| 53 | + | |
51 | 54 |
| |
52 | 55 |
| |
53 | 56 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
19 |
| - | |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 |
| - | |
| 31 | + | |
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
12 |
| - | |
| 13 | + | |
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
|
Lines changed: 6 additions & 3 deletions
@@ -4,6 +4,7 @@ import * as vscode from 'vscode'
4
4
import { COMMANDS } from '../editor/commands'
5
5
import languageMap from '../editor/languageMap'
6
6
import * as git from '../services/git'
7
+import onError from '../services/sentry/onError'
7
8
8
9
interface TutorialConfigParams {
9
10
config: T.TutorialConfig
@@ -13,13 +14,14 @@ interface TutorialConfigParams {
13
14
14
15
const tutorialConfig = async (
15
16
{ config, alreadyConfigured }: TutorialConfigParams,
16
- onError: (msg: T.ErrorMessage) => void,
17
+ handleError: (msg: T.ErrorMessage) => void,
17
18
) => {
18
19
if (!alreadyConfigured) {
19
20
// setup git, add remote
20
21
await git.initIfNotExists().catch(error => {
22
+ onError(new Error('Git not found'))
21
23
// failed to setup git
22
- onError({
24
+ handleError({
23
25
title: error.message,
24
26
description:
25
27
'Be sure you install Git. See the docs for help https://git-scm.com/book/en/v2/Getting-Started-Installing-Git',
@@ -28,7 +30,8 @@ const tutorialConfig = async (
28
30
29
31
// TODO if remote not already set
30
32
await git.setupRemote(config.repo.uri).catch(error => {
31
- onError({ title: error.message, description: 'Remove your current Git project and restarting' })
33
+ onError(error)
34
+ handleError({ title: error.message, description: 'Remove your current Git project and restarting' })
32
35
})
33
36
}
34
37
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
| 7 | + | |
6 | 8 |
| |
7 | 9 |
| |
8 | 10 |
| |
9 | 11 |
| |
| 12 | + | |
| 13 | + | |
10 | 14 |
| |
11 | 15 |
| |
12 | 16 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 |
| |
2 | 5 |
| |
3 | 6 |
| |
|
Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
| |||
76 | 77 |
| |
77 | 78 |
| |
78 | 79 |
| |
79 |
| - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 |
| |
81 | 85 |
| |
82 | 86 |
| |
83 | 87 |
| |
84 | 88 |
| |
85 |
| - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
86 | 92 |
| |
87 | 93 |
| |
88 | 94 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
| |||
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
15 |
| - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 |
| |
17 | 20 |
| |
18 | 21 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + |
0 commit comments