Merge pull request #12156 from Microsoft/fix-jsdoc-missing-space-from-bad-indent

Fix jsdoc missing space from bad indent
This commit is contained in:
Nathan Shively-Sanders
2016-11-14 08:21:40 -08:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -6304,6 +6304,7 @@ namespace ts {
}
if (token() === SyntaxKind.NewLineTrivia) {
state = JSDocState.BeginningOfLine;
indent = 0;
nextJSDocToken();
}
while (token() !== SyntaxKind.EndOfFileToken) {

View File

@@ -3,6 +3,7 @@
// @Filename: Foo.js
/////**
//// * Represents a person
//// * a b multiline test
//// * @constructor
//// * @param {string} name The name of the person
//// * @param {number} age The age of the person
@@ -13,4 +14,4 @@
////}
////var p = new Pers/**/on();
goTo.marker();
verify.quickInfoIs("function Person(name: string, age: number): void", "Represents a person");
verify.quickInfoIs("function Person(name: string, age: number): void", "Represents a person\na b multiline test");