Skip to content

Commit 2cc4990

Browse files
committed
Don't cut off last character of last record field mentioned in missing fields error
1 parent aca332d commit 2cc4990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/codeActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ let addUndefinedRecordFieldsV11: codeActionExtractor = ({
458458
if (line.startsWith("Some required record fields are missing:")) {
459459
let theLine = line;
460460
if (theLine.endsWith(".")) {
461-
theLine = theLine.slice(0, theLine.length - 2);
461+
theLine = theLine.slice(0, theLine.length - 1);
462462
}
463463

464464
let recordFieldNames = theLine

0 commit comments

Comments
 (0)