Expand file tree Collapse file tree 16 files changed +22
-22
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import * as CR from 'typings'
2
- import * as storage from '../services/ storage'
3
- import { gitLoadCommits , gitClear } from '../services/git'
2
+ import * as storage from '../storage'
3
+ import { gitLoadCommits , gitClear } from '../../ services/git'
4
4
5
5
export default async function loadSolution ( ) : Promise < void > {
6
6
const [ position , tutorial ] : [ CR . Position , CR . Tutorial | undefined ] = await Promise . all ( [
File renamed without changes.
Original file line number Diff line number Diff line change 1
- import { getOutputChannel } from '../utils/ channel'
2
- import { exec } from '../utils /node'
3
- import * as storage from '../services/ storage'
4
- import * as testResult from '../services/testResult'
1
+ import { getOutputChannel } from '../channel'
2
+ import { exec } from '../../services /node'
3
+ import * as storage from '../storage'
4
+ import * as testResult from '../../ services/testResult'
5
5
6
6
// ensure only latest run_test action is taken
7
7
let currentId = 0
Original file line number Diff line number Diff line change 1
1
import * as vscode from 'vscode'
2
2
import * as CR from 'typings'
3
3
4
- import fetch from '../utils/fetch '
5
- import tutorialSetup from '../services/tutorialSetup'
6
- import { loadProgressPosition } from '../services/position'
7
- import * as storage from '../services/ storage'
8
- import rootSetup from '../services/rootSetup'
9
- import { isEmptyWorkspace , openReadme } from '../utils/ workspace'
10
- import * as git from '../services/git'
4
+ import api from '../../services/api '
5
+ import tutorialSetup from '../../ services/tutorialSetup'
6
+ import { loadProgressPosition } from '../../ services/position'
7
+ import * as storage from '../storage'
8
+ import rootSetup from '../../ services/rootSetup'
9
+ import { isEmptyWorkspace , openReadme } from '../workspace'
10
+ import * as git from '../../ services/git'
11
11
12
12
/*
13
13
new
@@ -78,7 +78,7 @@ export default async function tutorialLoad(context: vscode.ExtensionContext): Pr
78
78
// }
79
79
80
80
// // load tutorial summaries
81
- // const tutorialsData: { [id: string]: CR.TutorialSummary } = await fetch ({
81
+ // const tutorialsData: { [id: string]: CR.TutorialSummary } = await api ({
82
82
// resource: 'getTutorialsSummary',
83
83
// })
84
84
// const selectableTutorials: TutorialQuickPickItem[] = Object.keys(tutorialsData).map(id => {
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import * as fs from 'fs'
2
2
import * as path from 'path'
3
3
import * as vscode from 'vscode'
4
- import { exec , exists } from '../node'
4
+ import { exec , exists } from '../services/ node'
5
5
6
6
export async function isEmptyWorkspace ( ) : Promise < boolean > {
7
7
const { stdout, stderr } = await exec ( 'ls' )
Original file line number Diff line number Diff line change 2
2
// Import the module and reference it with the alias vscode in your code below
3
3
import * as vscode from 'vscode'
4
4
5
- import createCommands from './commands'
5
+ import createCommands from './editor/ commands'
6
6
import createViews from './views'
7
7
8
8
// this method is called when your extension is activated
Original file line number Diff line number Diff line change 1
1
import * as CR from 'typings'
2
- import * as storage from './vscode /storage'
2
+ import * as storage from '../editor /storage'
3
3
4
4
export async function getInitial ( tutorial : CR . Tutorial ) : Promise < CR . Position > {
5
5
const { data } = tutorial
Original file line number Diff line number Diff line change 1
1
import * as vscode from 'vscode'
2
2
import { setWorkspaceRoot } from '../services/node'
3
- import { setStorage } from './vscode /storage'
3
+ import { setStorage } from '../editor /storage'
4
4
5
5
export default async function setupRoot ( context : vscode . ExtensionContext ) {
6
6
await setWorkspaceRoot ( )
Original file line number Diff line number Diff line change 1
1
import * as CR from 'typings'
2
2
import * as vscode from 'vscode'
3
- import * as storage from './vscode /storage'
3
+ import * as storage from '../editor /storage'
4
4
5
5
6
6
export async function onSuccess ( position : CR . Position ) {
Original file line number Diff line number Diff line change 1
1
import * as CR from 'typings'
2
2
import * as position from '../services/position'
3
- import * as storage from '../services/vscode /storage'
4
- import { isEmptyWorkspace } from '../services/vscode /workspace'
3
+ import * as storage from '../editor /storage'
4
+ import { isEmptyWorkspace } from '../editor /workspace'
5
5
import { gitLoadCommits , gitInitIfNotExists , gitSetupRemote } from '../services/git'
6
6
7
7
const testRepo = 'https://github.com/ShMcK/coderoad-tutorial-basic.git'
Original file line number Diff line number Diff line change 1
1
import { assign , send } from 'xstate'
2
2
import * as CR from 'typings'
3
- import * as storage from '../../services /storage'
3
+ import * as storage from '../../editor /storage'
4
4
import * as git from '../../services/git'
5
5
6
6
let initialTutorial : CR . Tutorial | undefined
0 commit comments