-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mark LanguageService.getSourceFile as internal and rename it #7584
Conversation
…urceFile and mark it as internal
this is a breaking change, i remeber other users used it.. |
Thanks for mentioning. Double thanks for renaming to indicate difference 🌹 //cc @blakeembrey @jbrantly |
Thanks for the mention. ts-loader doesn't use this method so I think it's unaffected. |
// cc: @mprobst |
//cc: @adidahiya |
Thanks for the heads up. I don't think we use this method, we just use |
Ah, I do use it in |
Will it work if you replace it with |
@vladima Yes, definitely. Don't worry about it, I'll look into fixing it at the source too some time. |
👍 TSLint is not using |
👍 |
fixes #7581.
LanguageService.getSourceFile
is a very confusing method - it returns one non-bound source file that is only useful for syntactic analysis. The only consumer of this method uses it to reliably determine if file is an external module.