You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptDomain: LS: TSServerIssues related to the TSServerEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
I wanted to fix this, but it turns out getSupportedCodeFixes doesn't get a fileName and therefore doesn't know which LanguageService to use. I'll open an issue with VSCode for that.
BugA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptDomain: LS: TSServerIssues related to the TSServerEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Activity
ajafff commentedon Dec 12, 2018
I wanted to fix this, but it turns out
getSupportedCodeFixesdoesn't get a fileName and therefore doesn't know which LanguageService to use. I'll open an issue with VSCode for that.mjbvz commentedon Dec 12, 2018
Plugins can already intercept this: https://github.com/Microsoft/typescript-tslint-plugin/blob/f4e06b17d0bb4db8a834af63dc1c8faa1c20bbea/src/plugin.ts#L72
Not correct but it does work
ajafff commentedon Dec 12, 2018
Matt Bierner (@mjbvz) I already saw that one and decided against monkey-patching. I'll just wait until this is fixed
mjbvz commentedon Dec 13, 2018
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
DanielRosenwasser commentedon Dec 13, 2018
Sounds like there's two changes
fileNameandprojectNameLanguageService: add getSupportedCodeFixes to make it proxyable
Make getSupportedCodeFixes on LS so it can be proxied by plugins
Make getSupportedCodeFixes on LS so it can be proxied by plugins (#51769