提交 604cc764 编写于 作者: R Rachel Macfarlane

Allow submitting a draft without creating a final comment

上级 bb521643
...@@ -429,7 +429,9 @@ export class ReviewZoneWidget extends ZoneWidget { ...@@ -429,7 +429,9 @@ export class ReviewZoneWidget extends ZoneWidget {
submitdraftButton.onDidClick(async () => { submitdraftButton.onDidClick(async () => {
try { try {
let lineNumber = this._commentGlyph.getPosition().position.lineNumber; let lineNumber = this._commentGlyph.getPosition().position.lineNumber;
if (this._commentEditor.getValue()) {
await this.createComment(lineNumber); await this.createComment(lineNumber);
}
await this.commentService.finishDraft(this._owner, this.editor.getModel().uri); await this.commentService.finishDraft(this._owner, this.editor.getModel().uri);
} catch (e) { } catch (e) {
this.handleError(e); this.handleError(e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册