-
Notifications
You must be signed in to change notification settings - Fork 146
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
[Feature Request] Support multiple tsconfigs in the same repository #488
Comments
Duplicate of #314 We don't want to put in a whole configuration infrastructure that effectively breaks with the built in capabilities of vscode (or other editors). There is quite a bit of conversation at the end of #314 about why it is problematic.
The plan is to move more to be configured per workspace. Which ones are "missing" for you? |
Thank you for your quick response! |
Ah we do understand eachother correctly. I'm missing the following settings for a workspace:
If you want more input, please let me know |
@guidsdo have you tried multi-root workspaces? This is vscode's way of isolating different project settings (per-root) within a single vscode workspace. The deno plugin actually supports overriding some project config at the individual root level, but unfortunately Allowing separate |
@johnspurlock yes I've tried that and the whole point of this request is to support multiple I can't imagine it being a limitation of the language server, since you can actually setup a language client per workspace. Currently I'm trying to set this up in a demo plugin with the little time I have available currently. |
In multi-root workspaces, there is only one language server and one client. Basically they are "per window". So it is a limitation of the language server. |
You can now have many |
@nayeemrmn amazing, thank you! I totally forgot about this request, but now this gives me energy to try it again :-) |
Is your feature request related to a problem? Please describe.
It frustrates me that I can't open one vscode instance for all the projects in my repository. Example of what this repository contains:
Currently, this setup isn't supported by vscode and the deno plugin. Why? This is because the plugin only allows me to target one tsconfig in total. This tsconfig then applies for all the projects, which doesn't make sense because only the
client
projects needs different typings (likeDOM
etc).Using workspaces don't fix this because the important Deno settings are applied for all projects and not per workspace.
To have both linting and tsc warnings/errors in Node.js, I've written a tool called mtsc in the past to support this but only out of pure necessity.
Describe the solution you'd like
Supporting these so-called monorepos (or multiple workspaces) is something which is already hard for vscode for Node.js projects, but I would really love it if there could be support for it through the Deno plugin. :-)
One or more of these features that would be really nice:
tsconfig.json
that this should be a separate projectscript.json
like file that specifies what projects there are and what settings should be set (unsafe, config, linting, etc)The text was updated successfully, but these errors were encountered: