-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Setting to disable TS Service functionality #15738
Comments
An alternate suggestion: let one extension intercept the language service/providers of another extension/built-ins. If this were implemented correctly.... the following might be possible:
For the case of |
It seems like you want to disable typescript |
Yes. I don't believe for a starter that we need any complicating mechanism: just a way to disable it just like any other extension. Then users have the freedom to chose whatever tooling/extensions make sense on their projects and also might save resourcesand make the editor even snappier if there are simpler extensions providing the functionality they need, as oppossed to spawning a full blown TSserver. |
@sandy081 Is that possible with the work you recently did in that area? Can we disable built-in extensions? |
The problem here is that flow files usually have a JS extension and that we treat them as JS files. @gcazaciuc do the flow files have some header indication like // flow in them. If so an Flow extension should give these files the Language mode flow and then JS/TS will not react on them anymore. @bpasero as that not how Flow used to work ? |
Well, the problem is not as straightforward as that I believe:
|
i believe a non intrusive solution would be to expose an extension api to prevent or not the autocomplete results from other extensions similar to how Atom does it. |
@dbaeumer it seems reasonable to be able to disable all TS Service functionality. @mjbvz @kieferrm what are your thoughts? My thought is we expose a single setting to disable all TS Service functionality. Its like I am writing Python and I don't want the Python extension installed because I prefer to use VS Code as a simpler editor with less features. |
Cool. Commented in that issue. Closing this issue as #17068 is a more holistic resolution. |
1.7.1
Ubuntu 16
Steps to Reproduce:
I and many people i'm working with use flow instead of typescript for typechecking and providing autocomplete/hover info.
The problem is that typescript autocomplete/hover suggestions also kick in which basically obscure the much more precise information that other extensions are able to provide in flow enabled code-bases.
I can imagine also other JS autocomplete providers being in the same situation.
I believe user should have a way to opt in/out for certain extensions to provide completions.
For the moment I'm looking for a way to disable the Typescript intellisense and keep only autocomplete suggestions from the flow extension.
Appreciate any suggestion.
The text was updated successfully, but these errors were encountered: