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

Migrate to xstate as app skeleton#2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 11 commits intoxstatefromfeature/treeview
Jun 2, 2019
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
refactor files
  • Loading branch information
@ShMcK
ShMcK committedJun 2, 2019
commit89045a36936d008763ff5b939c784741935848fc
File renamed without changes.
File renamed without changes.
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
import*asCRfrom'typings'
import*asstoragefrom'../services/storage'
import{gitLoadCommits,gitClear}from'../services/git'
import*asstoragefrom'../storage'
import{gitLoadCommits,gitClear}from'../../services/git'

exportdefaultasyncfunctionloadSolution():Promise<void>{
const[position,tutorial]:[CR.Position,CR.Tutorial|undefined]=awaitPromise.all([
Expand Down
File renamed without changes.
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
import{getOutputChannel}from'../utils/channel'
import{exec}from'../utils/node'
import*asstoragefrom'../services/storage'
import*astestResultfrom'../services/testResult'
import{getOutputChannel}from'../channel'
import{exec}from'../../services/node'
import*asstoragefrom'../storage'
import*astestResultfrom'../../services/testResult'

// ensure only latest run_test action is taken
letcurrentId=0
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
import*asvscodefrom'vscode'
import*asCRfrom'typings'

importfetchfrom'../utils/fetch'
importtutorialSetupfrom'../services/tutorialSetup'
import{loadProgressPosition}from'../services/position'
import*asstoragefrom'../services/storage'
importrootSetupfrom'../services/rootSetup'
import{isEmptyWorkspace,openReadme}from'../utils/workspace'
import*asgitfrom'../services/git'
importapifrom'../../services/api'
importtutorialSetupfrom'../../services/tutorialSetup'
import{loadProgressPosition}from'../../services/position'
import*asstoragefrom'../storage'
importrootSetupfrom'../../services/rootSetup'
import{isEmptyWorkspace,openReadme}from'../workspace'
import*asgitfrom'../../services/git'

/*
new
Expand DownExpand Up@@ -78,7 +78,7 @@ export default async function tutorialLoad(context: vscode.ExtensionContext): Pr
// }

// // load tutorial summaries
// const tutorialsData: { [id: string]: CR.TutorialSummary } = awaitfetch({
// const tutorialsData: { [id: string]: CR.TutorialSummary } = awaitapi({
// resource: 'getTutorialsSummary',
// })
// const selectableTutorials: TutorialQuickPickItem[] = Object.keys(tutorialsData).map(id => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
import*asfsfrom'fs'
import*aspathfrom'path'
import*asvscodefrom'vscode'
import{exec,exists}from'../node'
import{exec,exists}from'../services/node'

exportasyncfunctionisEmptyWorkspace():Promise<boolean>{
const{ stdout, stderr}=awaitexec('ls')
Expand Down
2 changes: 1 addition & 1 deletionsrc/extension.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@
// Import the module and reference it with the alias vscode in your code below
import*asvscodefrom'vscode'

importcreateCommandsfrom'./commands'
importcreateCommandsfrom'./editor/commands'
importcreateViewsfrom'./views'

// this method is called when your extension is activated
Expand Down
2 changes: 1 addition & 1 deletionsrc/services/position.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
import*asCRfrom'typings'
import*asstoragefrom'./vscode/storage'
import*asstoragefrom'../editor/storage'

exportasyncfunctiongetInitial(tutorial:CR.Tutorial):Promise<CR.Position>{
const{ data}=tutorial
Expand Down
2 changes: 1 addition & 1 deletionsrc/services/rootSetup.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
import*asvscodefrom'vscode'
import{setWorkspaceRoot}from'../services/node'
import{setStorage}from'./vscode/storage'
import{setStorage}from'../editor/storage'

exportdefaultasyncfunctionsetupRoot(context:vscode.ExtensionContext){
awaitsetWorkspaceRoot()
Expand Down
2 changes: 1 addition & 1 deletionsrc/services/testResult.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
import*asCRfrom'typings'
import*asvscodefrom'vscode'
import*asstoragefrom'./vscode/storage'
import*asstoragefrom'../editor/storage'


exportasyncfunctiononSuccess(position:CR.Position){
Expand Down
4 changes: 2 additions & 2 deletionssrc/services/tutorialSetup.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
import*asCRfrom'typings'
import*aspositionfrom'../services/position'
import*asstoragefrom'../services/vscode/storage'
import{isEmptyWorkspace}from'../services/vscode/workspace'
import*asstoragefrom'../editor/storage'
import{isEmptyWorkspace}from'../editor/workspace'
import{gitLoadCommits,gitInitIfNotExists,gitSetupRemote}from'../services/git'

consttestRepo='https://github.com/ShMcK/coderoad-tutorial-basic.git'
Expand Down
2 changes: 1 addition & 1 deletionsrc/state/actions/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
import{assign,send}from'xstate'
import*asCRfrom'typings'
import*asstoragefrom'../../services/storage'
import*asstoragefrom'../../editor/storage'
import*asgitfrom'../../services/git'

letinitialTutorial:CR.Tutorial|undefined
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp