-
Notifications
You must be signed in to change notification settings - Fork 12.8k
LanguageService Plugin cannot intercept 'getSupportedCodeFixes' #28966
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
Comments
I wanted to fix this, but it turns out |
Plugins can already intercept this: https://github.com/Microsoft/typescript-tslint-plugin/blob/f4e06b17d0bb4db8a834af63dc1c8faa1c20bbea/src/plugin.ts#L72 Not correct but it does work |
@mjbvz I already saw that one and decided against monkey-patching. I'll just wait until this is fixed |
You may want to consider using the workaround. This change will require both a tsserver api change and editor adoption, which could take a while |
Sounds like there's two changes
|
TypeScript Version: 3.3.0-dev.20181208
Search Terms:
getSupportedCodeFixes
Expected behavior:
GetSupportedCodeFixes
callsLanguageService#getSupportedCodeFixes
. LS plugins can intercept this call and add their own error codes for code fixes.Actual behavior:
GetSupportedCodeFixes
(indirectly) callscodefix.getSupportedErrorCodes()
completely bypassing the LanguageServiceThe text was updated successfully, but these errors were encountered: