fix watchBuild throw error, fix #18
This commit is contained in:
parent
aab02eb8a6
commit
cd7391f846
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +42,9 @@ export default class WatchProject implements Disposable {
|
||||||
) {
|
) {
|
||||||
this.statusItem = workspace.createStatusBarItem(1, { progress: true })
|
this.statusItem = workspace.createStatusBarItem(1, { progress: true })
|
||||||
let task = this.task = workspace.createTask('TSC')
|
let task = this.task = workspace.createTask('TSC')
|
||||||
this.options = this.getOptions()
|
|
||||||
this.disposables.push(commandManager.registerCommand(WatchProject.id, async () => {
|
this.disposables.push(commandManager.registerCommand(WatchProject.id, async () => {
|
||||||
await this.start(this.options)
|
let opts = this.options = this.getOptions()
|
||||||
|
await this.start(opts)
|
||||||
}))
|
}))
|
||||||
task.onExit(code => {
|
task.onExit(code => {
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
|
|
Loading…
Reference in a new issue