提交 0b90cbbe 编写于 作者: B Benjamin Pasero

fix #59539

上级 d2d5d79b
......@@ -553,7 +553,9 @@ export class ChoiceAction extends Action {
private _onDidRun = new Emitter<void>();
get onDidRun(): Event<void> { return this._onDidRun.event; }
constructor(id: string, private choice: IPromptChoice) {
private _keepOpen: boolean;
constructor(id: string, choice: IPromptChoice) {
super(id, choice.label, null, true, () => {
// Pass to runner
......@@ -564,17 +566,17 @@ export class ChoiceAction extends Action {
return TPromise.as(void 0);
});
this._keepOpen = choice.keepOpen;
}
get keepOpen(): boolean {
return this.choice.keepOpen;
return this._keepOpen;
}
dispose(): void {
super.dispose();
this.choice = null;
this._onDidRun.dispose();
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册