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

Commit9b391b0

Browse files
committed
unlog
1 parenta559c1f commit9b391b0

File tree

11 files changed

+1
-35
lines changed

11 files changed

+1
-35
lines changed

‎src/actions/runTest.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ async function runTest({onSuccess, onFail, onRun, onError}: Props): Promise<void
7070

7171
if(stdout){
7272
constlines=stdout.split(/\r{0,1}\n/)
73-
console.log('SUCCESS LINES',lines)
7473
for(constlineoflines){
7574
if(line.length===0){
7675
continue
@@ -79,16 +78,13 @@ async function runTest({onSuccess, onFail, onRun, onError}: Props): Promise<void
7978
constregExp=/^{\"numFailedTestSuites/
8079
constmatches=regExp.exec(line)
8180
if(matches&&matches.length){
82-
console.log('MATCHES SUCCESS')
8381
constresult=JSON.parse(line)
8482

8583
if(result.success){
86-
console.log('SUCCESS')
8784
if(shouldExitEarly(processId)){
8885
// exit early
8986
return
9087
}
91-
console.log('call onSuccess')
9288
onSuccess()
9389
}else{
9490
console.log('NOT SUCCESS?')
@@ -133,8 +129,6 @@ async function runTest({onSuccess, onFail, onRun, onError}: Props): Promise<void
133129
// exit early
134130
return
135131
}
136-
console.log('ERROR',firstError.message)
137-
console.log('call onFail')
138132
onFail()
139133
}else{
140134
console.error('NOTE: PARSER DID NOT WORK FOR ',line)

‎src/actions/saveCommit.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import*asgitfrom'../services/git'
22

33
asyncfunctionsaveCommit(){
4-
console.log('committing progress')
54
git.saveCommit('Save progress')
65
}
76

‎src/actions/setupActions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const setupActions = async (workspaceRoot: vscode.WorkspaceFolder, {commands, co
4949

5050
// open files
5151
for(constfilePathoffiles){
52-
console.log(`OPEN_FILE${filePath}`)
5352
try{
5453
// TODO: figure out why this does not work
5554
// try {

‎src/actions/tutorialConfig.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const tutorialConfig = async ({tutorial, alreadyConfigured, onComplete}: Tutoria
2323
constlanguage=tutorial.codingLanguage.toLowerCase()
2424

2525
// setup onSave hook
26-
// console.log(`languageIds: ${languageIds.join(', ')}`)
2726
vscode.workspace.onDidSaveTextDocument((document:vscode.TextDocument)=>{
2827
if(document.uri.scheme==='file'&&language===document.languageId){
2928
vscode.commands.executeCommand('coderoad.run_test')

‎src/channel/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Channel implements Channel {
3939
// action may be an object.type or plain string
4040
constactionType:string=typeofaction==='string' ?action :action.type
4141

42-
console.log('EDITOR RECEIVED:',actionType)
42+
//console.log('EDITOR RECEIVED:', actionType)
4343
switch(actionType){
4444
// continue from tutorial from local storage
4545
case'EDITOR_TUTORIAL_LOAD':

‎src/editor/commands.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export const createCommands = ({extensionPath, workspaceState, workspaceRoot}: C
2323
return{
2424
// initialize
2525
[COMMANDS.START]:async()=>{
26-
console.log('start')
27-
2826
// TODO: replace with a prompt to open a workspace
2927
// await isEmptyWorkspace()
3028

@@ -62,13 +60,11 @@ export const createCommands = ({extensionPath, workspaceState, workspaceRoot}: C
6260
constpayload={stepId:current ?current.stepId :currentStepId}
6361
runTest({
6462
onSuccess:()=>{
65-
console.log('COMMAND TEST_PASS')
6663
// send test pass message back to client
6764
webview.send({type:'TEST_PASS', payload})
6865
vscode.window.showInformationMessage('PASS')
6966
},
7067
onFail:()=>{
71-
console.log('COMMAND TEST_FAIL')
7268
// send test fail message back to client
7369
webview.send({type:'TEST_FAIL', payload})
7470
vscode.window.showWarningMessage('FAIL')
@@ -79,7 +75,6 @@ export const createCommands = ({extensionPath, workspaceState, workspaceRoot}: C
7975
webview.send({type:'TEST_ERROR', payload})
8076
},
8177
onRun:()=>{
82-
console.log('COMMAND TEST_RUNNING')
8378
// send test run message back to client
8479
webview.send({type:'TEST_RUNNING', payload})
8580
}

‎src/editor/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class Editor {
88

99
publicactivate=(vscodeExt:vscode.ExtensionContext):void=>{
1010

11-
console.log('ACTIVATE!')
1211
this.vscodeExt=vscodeExt
1312

1413
// set out 60/40 layout
@@ -23,7 +22,6 @@ class Editor {
2322
// setup tasks or views here
2423
}
2524
publicdeactivate=():void=>{
26-
console.log('DEACTIVATE!')
2725
// cleanup subscriptions/tasks
2826
for(constdisposableofthis.vscodeExt.subscriptions){
2927
disposable.dispose()

‎src/services/git/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import node from '../node'
44
constgitOrigin='coderoad'
55

66
conststashAllFiles=async()=>{
7-
console.log('stashAllFiles')
87
// stash files including untracked (eg. newly created file)
98
const{stdout, stderr}=awaitnode.exec(`git stash --include-untracked`)
109
if(stderr){

‎src/services/storage/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ class Storage<T> {
1717
}
1818
publicget=async():Promise<T>=>{
1919
constvalue:string|undefined=awaitthis.storage.get(this.key)
20-
// console.log(`STORAGE.get ${this.key} : ${value}`)
2120
if(value){
2221
returnJSON.parse(value)
2322
}
2423
returnthis.defaultValue
2524
}
2625
publicset=(value:T):void=>{
2726
conststringValue=JSON.stringify(value)
28-
// console.log(`STORAGE.set ${this.key} ${JSON.stringify(value)}`)
2927
this.storage.update(this.key,stringValue)
3028
}
3129
publicupdate=async(value:T):Promise<void>=>{
@@ -34,7 +32,6 @@ class Storage<T> {
3432
...current,
3533
...value,
3634
})
37-
// console.log(`STORAGE.update ${this.key} ${next}`)
3835
this.storage.update(this.key,next)
3936
}
4037
publicreset=()=>{

‎web-app/src/services/state/actions/context.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export default {
1717
}),
1818
newTutorial:assign({
1919
tutorial:(context:CR.MachineContext,event:CR.MachineEvent):any=>{
20-
console.log('new tutorial event')
21-
console.log(JSON.stringify(event))
2220
returnevent.payload.tutorial
2321
},
2422
progress:():CR.Progress=>{
@@ -111,8 +109,6 @@ export default {
111109
//@ts-ignore
112110
updateStepProgress:assign({
113111
progress:(context:CR.MachineContext,event:CR.MachineEvent):CR.Progress=>{
114-
console.log('updateStepProgress')
115-
console.log(JSON.stringify(event))
116112
// update progress by tracking completed
117113
constcurrentProgress:CR.Progress=context.progress
118114

‎web-app/src/services/state/actions/editor.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,6 @@ export default {
5454
type:'EDITOR_TUTORIAL_CONTINUE_CONFIG',
5555
})
5656
},
57-
// testStart(context: CR.MachineContext, event: CR.MachineEvent) {
58-
// console.log('EDITOR: TEST_RUN')
59-
// const {stepId} = event.payload
60-
// // channel.editorSend({
61-
// // type: 'TEST_RUN',
62-
// // payload: {
63-
// // stepId,
64-
// //}
65-
// //})
66-
// },
6757
loadLevel(context:CR.MachineContext):void{
6858
constlevel:G.Level=selectors.currentLevel(context)
6959
if(level.setup){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp