Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit89045a3

Browse files
committed
refactor files
1 parentb51dd2f commit89045a3

File tree

16 files changed

+22
-22
lines changed

16 files changed

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

‎src/commands/loadSolution.tsrenamed 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*asCRfrom'typings'
2-
import*asstoragefrom'../services/storage'
3-
import{gitLoadCommits,gitClear}from'../services/git'
2+
import*asstoragefrom'../storage'
3+
import{gitLoadCommits,gitClear}from'../../services/git'
44

55
exportdefaultasyncfunctionloadSolution():Promise<void>{
66
const[position,tutorial]:[CR.Position,CR.Tutorial|undefined]=awaitPromise.all([
File renamed without changes.

‎src/commands/runTest.tsrenamed 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*asstoragefrom'../services/storage'
4-
import*astestResultfrom'../services/testResult'
1+
import{getOutputChannel}from'../channel'
2+
import{exec}from'../../services/node'
3+
import*asstoragefrom'../storage'
4+
import*astestResultfrom'../../services/testResult'
55

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

‎src/commands/tutorialLoad.tsrenamed 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*asvscodefrom'vscode'
22
import*asCRfrom'typings'
33

4-
importfetchfrom'../utils/fetch'
5-
importtutorialSetupfrom'../services/tutorialSetup'
6-
import{loadProgressPosition}from'../services/position'
7-
import*asstoragefrom'../services/storage'
8-
importrootSetupfrom'../services/rootSetup'
9-
import{isEmptyWorkspace,openReadme}from'../utils/workspace'
10-
import*asgitfrom'../services/git'
4+
importapifrom'../../services/api'
5+
importtutorialSetupfrom'../../services/tutorialSetup'
6+
import{loadProgressPosition}from'../../services/position'
7+
import*asstoragefrom'../storage'
8+
importrootSetupfrom'../../services/rootSetup'
9+
import{isEmptyWorkspace,openReadme}from'../workspace'
10+
import*asgitfrom'../../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 } = awaitfetch({
81+
// const tutorialsData: { [id: string]: CR.TutorialSummary } = awaitapi({
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.tsrenamed 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*asfsfrom'fs'
22
import*aspathfrom'path'
33
import*asvscodefrom'vscode'
4-
import{exec,exists}from'../node'
4+
import{exec,exists}from'../services/node'
55

66
exportasyncfunctionisEmptyWorkspace():Promise<boolean>{
77
const{ stdout, stderr}=awaitexec('ls')

‎src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Import the module and reference it with the alias vscode in your code below
33
import*asvscodefrom'vscode'
44

5-
importcreateCommandsfrom'./commands'
5+
importcreateCommandsfrom'./editor/commands'
66
importcreateViewsfrom'./views'
77

88
// this method is called when your extension is activated

‎src/services/position.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import*asCRfrom'typings'
2-
import*asstoragefrom'./vscode/storage'
2+
import*asstoragefrom'../editor/storage'
33

44
exportasyncfunctiongetInitial(tutorial:CR.Tutorial):Promise<CR.Position>{
55
const{ data}=tutorial

‎src/services/rootSetup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import*asvscodefrom'vscode'
22
import{setWorkspaceRoot}from'../services/node'
3-
import{setStorage}from'./vscode/storage'
3+
import{setStorage}from'../editor/storage'
44

55
exportdefaultasyncfunctionsetupRoot(context:vscode.ExtensionContext){
66
awaitsetWorkspaceRoot()

‎src/services/testResult.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import*asCRfrom'typings'
22
import*asvscodefrom'vscode'
3-
import*asstoragefrom'./vscode/storage'
3+
import*asstoragefrom'../editor/storage'
44

55

66
exportasyncfunctiononSuccess(position:CR.Position){

‎src/services/tutorialSetup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import*asCRfrom'typings'
22
import*aspositionfrom'../services/position'
3-
import*asstoragefrom'../services/vscode/storage'
4-
import{isEmptyWorkspace}from'../services/vscode/workspace'
3+
import*asstoragefrom'../editor/storage'
4+
import{isEmptyWorkspace}from'../editor/workspace'
55
import{gitLoadCommits,gitInitIfNotExists,gitSetupRemote}from'../services/git'
66

77
consttestRepo='https://github.com/ShMcK/coderoad-tutorial-basic.git'

‎src/state/actions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import{assign,send}from'xstate'
22
import*asCRfrom'typings'
3-
import*asstoragefrom'../../services/storage'
3+
import*asstoragefrom'../../editor/storage'
44
import*asgitfrom'../../services/git'
55

66
letinitialTutorial:CR.Tutorial|undefined

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp