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

No: "This setting must be a user setting" errors shown for code-workspace settings #33439

Closed
mjbvz opened this issue Aug 29, 2017 · 5 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug settings-editor VS Code settings editor issues verified Verification succeeded workbench-multiroot Multi-root (multiple folders) issues
Milestone

Comments

@mjbvz
Copy link
Collaborator

mjbvz commented Aug 29, 2017

Testing #33278

For the code-workspace:

{
	"folders": [
		{
			"path": "folder2"
		}
	],
	"settings": {
		"git.path": "hello"		
	}
}

git.path should be marked as only being supported in the user settings, similar to what we show if you try to set in on a folder:

screen shot 2017-08-29 at 11 44 03 am

Currently no error is shown:

screen shot 2017-08-29 at 11 43 32 am

@bpasero bpasero assigned sandy081 and unassigned bpasero Aug 30, 2017
@sandy081
Copy link
Member

There is no classification of User/Workspace settings. We have Window and Resource settings. Window settings can be applied to complete workbench/window and can be configured in User / Workspace settings where are Resource settings can be applied only for resources and can be configured in User / Workspace / Folder settings.

Any setting can be customised from User / Workspace. This is the design decision and there are some advantages and disadvantages to it. From bright side, it will allow user to customise different gits for different workspaces.

@sandy081 sandy081 added the *as-designed Described behavior is as designed label Aug 30, 2017
@mjbvz
Copy link
Collaborator Author

mjbvz commented Aug 30, 2017

Sorry, I think I posted the wrong screenshot of the expected error. Here's what I mean:

screen shot 2017-08-30 at 12 16 18 am

Settings for executables like git.path are only supported as user settings because they set the isExecutable flag in their settings contributions. In my testing, we don't show the green squiggles when you try to put one of these isExecutable settings into the code-workspace settings

@mjbvz mjbvz reopened this Aug 30, 2017
@sandy081
Copy link
Member

Ah I see.. right we have settings (exceptions) which are paths to executables and can only be user settings.

@sandy081 sandy081 added bug Issue identified by VS Code Team member as probable bug settings-editor VS Code settings editor issues workbench-multiroot Multi-root (multiple folders) issues and removed *as-designed Described behavior is as designed labels Aug 30, 2017
@sandy081 sandy081 added this to the September 2017 milestone Aug 30, 2017
@sandy081 sandy081 modified the milestones: September 2017, October 2017 Sep 27, 2017
egamma pushed a commit that referenced this issue Oct 31, 2017
@ramya-rao-a
Copy link
Contributor

Verified the fix for Workspace Settings in multi root mode.

But, in folder settings, in multi root mode, both messages are shown. The This setting cannot be applied now... doesn't apply

settings

@ramya-rao-a ramya-rao-a added the verified Verification succeeded label Nov 2, 2017
@sandy081
Copy link
Member

sandy081 commented Nov 3, 2017

It makes sense as both messages are applicable.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug settings-editor VS Code settings editor issues verified Verification succeeded workbench-multiroot Multi-root (multiple folders) issues
Projects
None yet
Development

No branches or pull requests

4 participants