2017-09-05 15 views
0

VSCode의 작업에서 작업을 실행할 수 있습니까?VScode의 작업

예 JSON :

{ 
// See https://go.microsoft.com/fwlink/?LinkId=733558 
// for the documentation about the tasks.json format 
"version": "2.0.0", 
"tasks": [ 
    { 
     "taskName": "Show In Chrome", 
     "windows": { 
      "command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" 
     }, 
     "osx": { 
      "command": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" 
     }, 
     "args": [ 
      "${file}" 
     ], 
     "type": "process", 
    }, 
    { 
     "taskName": "Show Coverage", 
     // this is the task to call another task 
    } 
] 

은}

내가 뭘하고 싶은 커버리지 폴더에있는 파일에 대한 표시 범위의 작업의 모양과 다음으로 보여 크롬 작업에서는보기 전화입니다 해당 파일의 인수가 전달됩니다. 이것이 가능한가?

+0

이 의견을 이해할 수 없습니다. – KeniSteward

답변

0

docs 웹 사이트의 현재 설정이 작업에 대해 업데이트되지 않았습니다.

그들에 의존하기 때문에 다른 작업을 호출하는 작업을하고자하지만 경우에 당신은 단순히이 작업은 이전 작업을 실행 한 다음이 설정 한 어떤 명령을 실행하게됩니다

{ 
// See https://go.microsoft.com/fwlink/?LinkId=733558 
// for the documentation about the tasks.json format 
"version": "2.0.0", 
"tasks": [ 
    { 
     "taskName": "Show In Chrome", 
     "identifier": "showInChrome", 
     "windows": { 
      "command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" 
     }, 
     "osx": { 
      "command": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" 
     }, 
     "args": [ 
      "${file}" 
     ], 
     "type": "process", 
    }, 
    { 
     "taskName": "Show Coverage", 
     "dependsOn": "showInChrome" 
    } 
] 
} 

이 구성을 추가 할 수 있습니다 게다가.

참고 : 식별자 배열을 사용하여 여러 가지를 사용할 수 있습니다.