Skip to content

Conversation

@alexr00
Copy link
Member

@alexr00 alexr00 commented Apr 21, 2020

Fixes #1608

@alexr00 alexr00 requested a review from RMacfarlane April 21, 2020 09:22
return;
}
const title = text.substring(0, indexOfEmptyLine);
const body = text.substring(indexOfEmptyLine + 2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we trim off the explanation comment from the issue body?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would leave it, similar to how GitHub leaves the comment in the issue templates.

return;
}
text = vscode.window.activeTextEditor.document.getText();
const indexOfEmptyLine = text.indexOf('\n\n');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it at all possible that the line ending would be changed on save or anything like that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, added some handling for that.

@alexr00 alexr00 merged commit 8ab4f1c into master Apr 22, 2020
@alexr00 alexr00 deleted the alexr00/issue1608 branch April 22, 2020 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow editing of issue details when creating from code action

3 participants