mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
Git - better handle edge case when hard wrapping a line (#205831)
This commit is contained in:
parent
9e92682062
commit
8895f460c6
|
@ -190,7 +190,7 @@ export class GitCommitInputBoxCodeActionsProvider implements CodeActionProvider
|
|||
const lineLengthThreshold = line === 0 ? inputValidationSubjectLength ?? inputValidationLength : inputValidationLength;
|
||||
|
||||
const lineSegments: string[] = [];
|
||||
const lineText = document.lineAt(line).text;
|
||||
const lineText = document.lineAt(line).text.trim();
|
||||
|
||||
let position = 0;
|
||||
while (lineText.length - position > lineLengthThreshold) {
|
||||
|
|
Loading…
Reference in a new issue