1
- import * as vscode from 'vscode'
2
- import { setWorkspaceRoot } from '../../services/node'
3
- import { setStorage } from '../../editor/storage'
4
- import { activate as activateMachine , default as machine } from '../../state'
5
- import * as storage from '../../services/storage'
6
- import * as git from '../../services/git'
7
- import * as CR from 'typings'
1
+ // import * as vscode from 'vscode'
2
+ // import { setWorkspaceRoot } from '../../services/node'
3
+ // import { setStorage } from '../../editor/storage'
4
+ // import { activate as activateMachine, default as machine } from '../../state'
5
+ // import * as storage from '../../services/storage'
6
+ // import * as git from '../../services/git'
7
+ // import * as CR from 'typings'
8
8
9
- let initialTutorial : CR . Tutorial | undefined
10
- let initialProgress : CR . Progress = {
11
- levels : { } ,
12
- stages : { } ,
13
- steps : { } ,
14
- complete : false ,
15
- }
9
+ // let initialTutorial: CR.Tutorial | undefined
10
+ // let initialProgress: CR.Progress = {
11
+ // levels: {},
12
+ // stages: {},
13
+ // steps: {},
14
+ // complete: false,
15
+ // }
16
16
17
- export default async function start ( context : vscode . ExtensionContext ) : Promise < void > {
18
- console . log ( 'TUTORIAL_START' )
17
+ // export default async function start(context: vscode.ExtensionContext): Promise<void> {
18
+ // console.log('TUTORIAL_START')
19
19
20
- // setup connection to workspace
21
- // await setWorkspaceRoot()
22
- // set workspace context path
23
- // await setStorage(context.workspaceState)
20
+ // // setup connection to workspace
21
+ // // await setWorkspaceRoot()
22
+ // // set workspace context path
23
+ // // await setStorage(context.workspaceState)
24
24
25
- // initialize state machine
26
- activateMachine ( )
25
+ // // initialize state machine
26
+ // activateMachine()
27
27
28
- console . log ( 'ACTION: start' )
28
+ // console.log('ACTION: start')
29
29
30
- // verify that the user has a tutorial & progress
31
- // verify git is setup with a coderoad remote
32
- const [ tutorial , progress , hasGit , hasGitRemote ] = await Promise . all ( [
33
- storage . getTutorial ( ) ,
34
- storage . getProgress ( ) ,
35
- git . gitVersion ( ) ,
36
- git . gitCheckRemoteExists ( ) ,
37
- ] )
38
- initialTutorial = tutorial
39
- initialProgress = progress
40
- const canContinue = ! ! ( tutorial && progress && hasGit && hasGitRemote )
41
- console . log ( 'canContinue' , canContinue )
42
- // if a tutorial exists, "CONTINUE"
43
- // otherwise start from "NEW"
44
- machine . send ( canContinue ? 'CONTINUE' : 'NEW' )
45
- }
30
+ // // verify that the user has a tutorial & progress
31
+ // // verify git is setup with a coderoad remote
32
+ // const [tutorial, progress, hasGit, hasGitRemote] = await Promise.all([
33
+ // storage.getTutorial(),
34
+ // storage.getProgress(),
35
+ // git.gitVersion(),
36
+ // git.gitCheckRemoteExists(),
37
+ // ])
38
+ // initialTutorial = tutorial
39
+ // initialProgress = progress
40
+ // const canContinue = !!(tutorial && progress && hasGit && hasGitRemote)
41
+ // console.log('canContinue', canContinue)
42
+ // // if a tutorial exists, "CONTINUE"
43
+ // // otherwise start from "NEW"
44
+ // machine.send(canContinue ? 'CONTINUE' : 'NEW')
45
+ // }
0 commit comments