Skip to content
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

Improve File Association feature (status bar) #4532

Closed
waderyan opened this issue Mar 22, 2016 · 3 comments
Closed

Improve File Association feature (status bar) #4532

waderyan opened this issue Mar 22, 2016 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality file-explorer Explorer widget issues

Comments

@waderyan
Copy link

I like this new feature... I have some suggested improvements. Open to discussion of course :)

Let's take a simple use case. I have a file .babelrc. This file is a JSON file. VS Code detects it as Plain Text. I click in the bottom right to change it to JSON. I see that there are two options "Auto Detect" and "Configure file association for .babelrc".

I try "Auto Detect". The file is still Plain Text. (1) I would expect Auto Detect to intelligently figure out I am using JSON.

I try "Configure file association for .babelrc." I am taken to settings.json. A popup explains that I may need to restart. I don't see any instructions nor do I know where to look. (2) I am not sure how to proceed.

I try setting .babelrc to JSON. This works as expected. I close the file and come back to it. Its back to Plain Text. (3) I would have expected it to stay JSON.

Couple of ideas. For (1) can we intelligently figure out what the file is? We could start with a JSON file or other common configuration files. Also, what is "Auto Detect" supposed to do? It seems like we're already auto detecting every single file. We could consider dropping it.

(2) We should provide some prompt for settings. Even a navigation and highlighting of the settings command that needs to be configured would be helpful. This could be similar to what @alexandrudima did for keybindings. As it stands, I need to know to trigger suggest to know what to type. This isn't obvious, especially for new users.

(3) What if VS Code saved a file's association automatically. For example if I set .babelrc to JSON, I would expect there to be an association and never have to do it again (at least for the workspace I am in).

Just some thoughts.

// @chrisdias

@bpasero
Copy link
Member

bpasero commented Mar 22, 2016

(1) auto detect is just doing what the editor does by checking for the file extension and taking whatever is configured. since this is in no way a smart feature I am fine to remove it

(2) I think (3) would solve this

(3) we are currently not able to write to the settings file because the file is user edited and may contain comments, but I agree this would be nice

@bpasero bpasero changed the title File association File association feature suggestions Mar 22, 2016
@bpasero bpasero added feature-request Request for new features or functionality file-explorer Explorer widget issues labels Mar 22, 2016
@bpasero bpasero added this to the Backlog milestone Mar 22, 2016
@bpasero bpasero self-assigned this Mar 30, 2016
@bpasero bpasero changed the title File association feature suggestions Improve File Association feature Jul 5, 2016
@bpasero bpasero changed the title Improve File Association feature Improve File Association feature (status bar) Jul 5, 2016
@bpasero bpasero removed their assignment Aug 17, 2016
@bpasero
Copy link
Member

bpasero commented Sep 17, 2016

Lets make this a duplicate of #11974

If you have more feedback on #11974, add it there 👍

@bpasero bpasero closed this as completed Sep 17, 2016
@bpasero bpasero added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 17, 2016
@bpasero bpasero self-assigned this Sep 17, 2016
@bpasero bpasero modified the milestones: September 2016, Backlog Sep 17, 2016
@waderyan
Copy link
Author

Cool thanks @bpasero

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality file-explorer Explorer widget issues
Projects
None yet
Development

No branches or pull requests

2 participants