Skip to content

Commit 8b9e4cc

Browse files
Lipatakdinev
andauthored
fix(migrations): get full ts, containing comments (#13637)
Co-authored-by: Konstantin Dinev <[email protected]>
1 parent 9601b42 commit 8b9e4cc

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
@@ -342,7 +342,7 @@ export const getTypeDefinitionAtPosition =
342342
*/
343343
export const isMemberIgniteUI =
344344
(change: MemberChange, langServ: tss.LanguageService, entryPath: string, matchPosition: number): boolean => {
345-
const content = langServ.getProgram().getSourceFile(entryPath).getText();
345+
const content = langServ.getProgram().getSourceFile(entryPath).getFullText();
346346
matchPosition = shiftMatchPosition(matchPosition, content);
347347
const prevChar = content.substr(matchPosition - 1, 1);
348348
if (prevChar === SyntaxTokens.ClosingParenthesis) {

0 commit comments

Comments
 (0)