Repository navigation
Add Status Bar Item for JSConfig/TSConfig - #20571
Matt Bierner (mjbvz) merged 1 commit into
Conversation
|
Matt Bierner (@mjbvz), thanks for your PR! By analyzing the history of the files in this pull request, we identified Dirk Bäumer (@dbaeumer) and Erich Gamma (@egamma) to be potential reviewers. |
Fixes microsoft#20356 Adds a status bar item that shows which jsconfig/tsconfig a ts or js file currently belongs to. This triggers the `typescript.goToProjectConfig` command when clicked, which either jumps to the config file or shows an alert about creating a configuration file
763f94d to
b5de879
Compare
|
Johannes Rieken (@jrieken) Would this fit into the language status provide you mention in #16478? |
|
I see the technical need for this, however I don't like the proliferation of the status bar items. Johannes Rieken (@jrieken) is working on something like a language status. Shouldn't all the TS specific status bar items go into on language status. |
|
Yeah - this goes into the idea of something like a language status but there is nothing real yet. Idea is to bundle language specific information of different severities but also to save space (above screen shots show that a lot of screen real estate is being used...) Also unsure yet how different statuses and command will be looking... |
|
Ok, I'm going to merge this since it seems like the best we can do right now and the feature will be helpful for users and for helping us diagnose problems. We can move some of this into whatever language status API once it is available |
|
big 👎 it is utterly ugly |
|
Johannes Rieken (@jrieken) I've reverted the experiment since Kai and I also weren't convinced when talking yesterday. Do you have any suggestions on presenting this information? We have the command to go to the ts/jsconfig but this is not discoverable. At the very least, it is helpful to know when a file is not part of a project when a jsconfig/tsconfig exists. That is the root cause for many TS issues we see reported |
|
I understand that. We could pick some octicon like we did with Omnisharp which replaces/combines the version and project status item and shows the information in the picker. |
Fixes #20356
Adds a status bar item that shows which jsconfig/tsconfig a ts or js file currently belongs to. This triggers the
typescript.goToProjectConfigcommand when clicked, which either jumps to the config file or shows an alert about creating a configuration file.Here's what the new bar looks like:
Let me know if you have suggestions for the wording or appearance of the status bar item.