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

Commitf53a941

Browse files
committed
disable run when processes loading
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parentaa778bf commitf53a941

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎src/actions/tutorialConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as TT from 'typings/tutorial'
33
import*asvscodefrom'vscode'
44
import{COMMANDS}from'../editor/commands'
55
import*asgitfrom'../services/git'
6-
import{DISABLE_AUTOSAVE}from'../environment'
6+
import{DISABLE_RUN_ON_SAVE}from'../environment'
77

88
interfaceTutorialConfigParams{
99
config:TT.TutorialConfig
@@ -54,7 +54,7 @@ const tutorialConfig = async ({ config, alreadyConfigured }: TutorialConfigParam
5454

5555
awaitvscode.commands.executeCommand(COMMANDS.CONFIG_TEST_RUNNER,config.testRunner)
5656

57-
if(!DISABLE_AUTOSAVE){
57+
if(!DISABLE_RUN_ON_SAVE){
5858
// verify if file test should run based on document saved
5959
constshouldRunTest=(document:vscode.TextDocument):boolean=>{
6060
// must be a file

‎src/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ if (!supportedOS.includes(OS_PLATFORM)) {
3636

3737
exportconstTUTORIAL_URL:string|null=process.env.CODEROAD_TUTORIAL_URL||null
3838

39-
exportconstDISABLE_AUTOSAVE=(process.env.CODEROAD_DISABLE_AUTOSAVE||'').toLowerCase()==='true'
39+
exportconstDISABLE_RUN_ON_SAVE=(process.env.CODEROAD_DISABLE_RUN_ON_SAVE||'').toLowerCase()==='true'

‎web-app/src/containers/Tutorial/components/Level.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const Level = ({
185185

186186
<divcss={styles.footer}>
187187
{DISPLAY_RUN_TEST_BUTTON&&status!=='COMPLETE' ?(
188-
<Buttontype="primary"onClick={onRunTest}>
188+
<Buttontype="primary"onClick={onRunTest}disabled={processes.length>0}>
189189
Run
190190
</Button>
191191
) :(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp