Skip to content

Commit a813fb2

Browse files
authored
fix(migrations): get full ts, containing comments (#13638)
1 parent 95fb73d commit a813fb2

File tree

1 file changed

+1
-1
lines changed
  • projects/igniteui-angular/migrations/common

1 file changed

+1
-1
lines changed

projects/igniteui-angular/migrations/common/tsUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export const getTypeDefinitionAtPosition =
349349
*/
350350
export const isMemberIgniteUI =
351351
(change: MemberChange, langServ: tss.LanguageService, entryPath: string, matchPosition: number): boolean => {
352-
const content = langServ.getProgram().getSourceFile(entryPath).getText();
352+
const content = langServ.getProgram().getSourceFile(entryPath).getFullText();
353353
matchPosition = shiftMatchPosition(matchPosition, content);
354354
const prevChar = content.substr(matchPosition - 1, 1);
355355
if (prevChar === SyntaxTokens.ClosingParenthesis) {

0 commit comments

Comments
 (0)