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

Command to open raw user settings.json, not in split view #49495

Closed
roblourens opened this issue May 8, 2018 · 13 comments · Fixed by #49790
Closed

Command to open raw user settings.json, not in split view #49495

roblourens opened this issue May 8, 2018 · 13 comments · Fixed by #49790
Assignees
Labels
feature-request Request for new features or functionality settings-editor VS Code settings editor issues

Comments

@roblourens
Copy link
Member

We have a setting to disable the settings split view, but it might be useful to have a command to open the user settings.json outside of the split view for a one-off.

From #41040 (comment)

@roblourens roblourens added feature-request Request for new features or functionality settings-editor VS Code settings editor issues labels May 8, 2018
@roblourens roblourens self-assigned this May 8, 2018
@roblourens
Copy link
Member Author

@usernamehw I am reverting the PR, it actually doesn't work. We intercept the editor open here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/preferences/common/preferencesContribution.ts#L83

@roblourens roblourens reopened this May 25, 2018
@usernamehw
Copy link
Contributor

Damn, it's already a part of my workflow 😢. What's wrong with it?

@roblourens
Copy link
Member Author

So it opens the raw settings.json outside of the split view for you? For me, it actually just acts the same as the normal open settings command and opens the settings split view.

@roblourens
Copy link
Member Author

And you don't have "workbench.settings.openDefaultSettings": false?

@usernamehw
Copy link
Contributor

I don't have "workbench.settings.openDefaultSettings": false. The command itself works for me. Does it break some other functionality?

works

OS version: Windows_NT x64 10.0.17134

@usernamehw
Copy link
Contributor

I see now. Opens a split view on linux VM. Was it ever working before on non-Windows environments?

@roblourens
Copy link
Member Author

Yeah it only works on Windows, because the == check with fspath can fail due to drive letters being different. I guess that's a separate bug... I'll revert this tomorrow.

@roblourens
Copy link
Member Author

We got a good bug out of this: #50760

@roblourens
Copy link
Member Author

Now that the settings UI exists, I don't plan on investigating much more on the JSON editor. The split JSON UI will probably go away at some point (the JSON files themselves will always remain)

@usernamehw
Copy link
Contributor

BUT I CAN'T OPEN JSON SETTINGS FILE (WITHOUT SPLIT) NOW AT ALL BECAUSE IT'S NOT LETTING ME.

Are you planning to allow users to see plain json file or to forbid it completely?

@roblourens
Copy link
Member Author

roblourens commented Sep 13, 2018

We will always allow users to see the json file. Hopefully you can still open the raw json file with "workbench.settings.openDefaultSettings": false.

@usernamehw
Copy link
Contributor

I know about that option, it's not great.

@roblourens
Copy link
Member Author

I'll close this just because I am cleaning up issues that are specific to the JSON split editor. But to be clear, editing the JSON file will never go away :)

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality settings-editor VS Code settings editor issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants