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 * as CR from 'typings'
import * as storage from '../services/storage'
import { gitLoadCommits, gitClear } from '../services/git'
import * as storage from '../storage'
import { gitLoadCommits, gitClear } from '../../services/git'

export default async function loadSolution(): Promise<void> {
const [position, tutorial]: [CR.Position, CR.Tutorial | undefined] = await Promise.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 * as storage from '../services/storage'
import * as testResult from '../services/testResult'
import { getOutputChannel } from '../channel'
import { exec } from '../../services/node'
import * as storage from '../storage'
import * as testResult from '../../services/testResult'

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

importfetch from '../utils/fetch'
import tutorialSetup from '../services/tutorialSetup'
import { loadProgressPosition } from '../services/position'
import * as storage from '../services/storage'
import rootSetup from '../services/rootSetup'
import { isEmptyWorkspace, openReadme } from '../utils/workspace'
import * as git from '../services/git'
importapi from '../../services/api'
import tutorialSetup from '../../services/tutorialSetup'
import { loadProgressPosition } from '../../services/position'
import * as storage from '../storage'
import rootSetup from '../../services/rootSetup'
import { isEmptyWorkspace, openReadme } from '../workspace'
import * as git from '../../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 * as fs from 'fs'
import * as path from 'path'
import * as vscode from 'vscode'
import { exec, exists } from '../node'
import { exec, exists } from '../services/node'

export async function isEmptyWorkspace(): Promise<boolean> {
const { stdout, stderr } = await exec('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 * as vscode from 'vscode'

import createCommands from './commands'
import createCommands from './editor/commands'
import createViews from './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 * as CR from 'typings'
import * as storage from './vscode/storage'
import * as storage from '../editor/storage'

export async function getInitial(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 * as vscode from 'vscode'
import { setWorkspaceRoot } from '../services/node'
import { setStorage } from './vscode/storage'
import { setStorage } from '../editor/storage'

export default async function setupRoot(context: vscode.ExtensionContext) {
await setWorkspaceRoot()
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 * as CR from 'typings'
import * as position from '../services/position'
import * as storage from '../services/vscode/storage'
import { isEmptyWorkspace } from '../services/vscode/workspace'
import * as storage from '../editor/storage'
import { isEmptyWorkspace } from '../editor/workspace'
import { gitLoadCommits, gitInitIfNotExists, gitSetupRemote } from '../services/git'

const testRepo = '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 * as CR from 'typings'
import * as storage from '../../services/storage'
import * as storage from '../../editor/storage'
import * as git from '../../services/git'

let initialTutorial: CR.Tutorial | undefined
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp