Skip to content

Add Status Bar Item for JSConfig/TSConfig - #20571

Merged
Matt Bierner (mjbvz) merged 1 commit into
microsoft:masterfrom
mjbvz:add-ts-js-config-status-bar-item
Feb 15, 2017
Merged

Matt Bierner (mjbvz) merged 1 commit into
microsoft:masterfrom
mjbvz:add-ts-js-config-status-bar-item

Conversation

@mjbvz

Copy link
Copy Markdown
Contributor

Fixes #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.

Here's what the new bar looks like:

screen shot 2017-02-13 at 5 00 29 pm
screen shot 2017-02-13 at 5 00 36 pm

Let me know if you have suggestions for the wording or appearance of the status bar item.

@mention-bot

Copy link
Copy Markdown

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
@mjbvz
Matt Bierner (mjbvz) force-pushed the add-ts-js-config-status-bar-item branch from 763f94d to b5de879 Compare February 14, 2017 01:26
@mjbvz

Copy link
Copy Markdown
Contributor Author

Johannes Rieken (@jrieken) Would this fit into the language status provide you mention in #16478?

@dbaeumer

Copy link
Copy Markdown
Member

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.

@jrieken

Copy link
Copy Markdown
Contributor

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...

@mjbvz

Copy link
Copy Markdown
Contributor Author

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

@jrieken

Copy link
Copy Markdown
Contributor

big 👎 it is utterly ugly

@mjbvz

Copy link
Copy Markdown
Contributor Author

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

@jrieken

Copy link
Copy Markdown
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add command / status item to show which tsconfig/jsconfig project a file belongs to

5 participants