Skip to content

Commit 0cda239

Browse files
authored
Merge pull request microsoft#12156 from Microsoft/fix-jsdoc-missing-space-from-bad-indent
Fix jsdoc missing space from bad indent
2 parents f437c8f + 973d83c commit 0cda239

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6304,6 +6304,7 @@ namespace ts {
63046304
}
63056305
if (token() === SyntaxKind.NewLineTrivia) {
63066306
state = JSDocState.BeginningOfLine;
6307+
indent = 0;
63076308
nextJSDocToken();
63086309
}
63096310
while (token() !== SyntaxKind.EndOfFileToken) {

tests/cases/fourslash/jsDocFunctionSignatures8.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// @Filename: Foo.js
44
/////**
55
//// * Represents a person
6+
//// * a b multiline test
67
//// * @constructor
78
//// * @param {string} name The name of the person
89
//// * @param {number} age The age of the person
@@ -13,4 +14,4 @@
1314
////}
1415
////var p = new Pers/**/on();
1516
goTo.marker();
16-
verify.quickInfoIs("function Person(name: string, age: number): void", "Represents a person");
17+
verify.quickInfoIs("function Person(name: string, age: number): void", "Represents a person\na b multiline test");

0 commit comments

Comments
 (0)