8000 refactor files · benjaminthedev/coderoad-vscode@89045a3 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 89045a3

Browse files
committed
refactor files
1 parent b51dd2f commit 89045a3

File tree

16 files changed

+22
-22
lines changed
  • state/actions
  • 16 files changed

    +22
    -22
    lines changed
    File renamed without changes.
    File renamed without changes.

    src/commands/loadSolution.ts renamed to src/editor/commands/loadSolution.ts

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,6 +1,6 @@
    11
    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'
    44

    55
    export default async function loadSolution(): Promise<void> {
    66
    const [position, tutorial]: [CR.Position, CR.Tutorial | undefined] = await Promise.all([
    File renamed without changes.

    src/commands/runTest.ts renamed to src/editor/commands/runTest.ts

    Lines changed: 4 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,7 +1,7 @@
    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'
    55

    66
    // ensure only latest run_test action is taken
    77
    let currentId = 0

    src/commands/tutorialLoad.ts renamed to src/editor/commands/tutorialLoad.ts

    Lines changed: 8 additions & 8 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,13 +1,13 @@
    11
    import * as vscode from 'vscode'
    22
    import * as CR from 'typings'
    33

    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'
    1111

    1212
    /*
    1313
    new
    @@ -78,7 +78,7 @@ export default async function tutorialLoad(context: vscode.ExtensionContext): Pr
    7878
    // }
    7979

    8080
    // // load tutorial summaries
    81-
    // const tutorialsData: { [id: string]: CR.TutorialSummary } = await fetch({
    81+
    // const tutorialsData: { [id: string]: CR.TutorialSummary } = await api({
    8282
    // resource: 'getTutorialsSummary',
    8383
    // })
    8484
    // const selectableTutorials: TutorialQuickPickItem[] = Object.keys(tutorialsData).map(id => {
    File renamed without changes.
    File renamed without changes.
    File renamed without changes.

    src/services/vscode/workspace.ts renamed to src/editor/workspace.ts

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -1,7 +1,7 @@
    11
    import * as fs from 'fs'
    22
    import * as path from 'path'
    33
    import * as vscode from 'vscode'
    4-
    import { exec, exists } from '../node'
    4+
    import { exec, exists } from '../services/node'
    55

    66
    export async function isEmptyWorkspace(): Promise<boolean> {
    77
    const { stdout, stderr } = await exec('ls')

    0 commit comments

    Comments
     (0)
    0