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

Activity bar is rendered when a non-existent icon is used #48555

Closed
tsalinger opened this issue Apr 24, 2018 · 2 comments
Closed

Activity bar is rendered when a non-existent icon is used #48555

tsalinger opened this issue Apr 24, 2018 · 2 comments
Assignees
Labels
invalid Issue identified as not relevant or not valid

Comments

@tsalinger
Copy link
Contributor

testing #48407

"contributes": {
	"viewsContainers": {
		"activitybar": [
                        {
			    "id": "test",
			    "title": "Test",
			     "icon": "resources/test.svg"
		        }
                  ]
	}
}
  1. Removing the icon property shows the following error notification:
property `icon` is mandatory and must be of type `string`
  1. "icon": "somethingRandom", results in no error notification and there is an invisible activity bar that works as if there was an icon. The console shows GET file:///C:/vscode_projects/testplanItemsApril/test-view-containers--48407/ net::ERR_FILE_NOT_FOUND

viewwithouticon

I'm not sure if it makes sense to render an activity bar in the second case and maybe it should also show an error notification like in the first one.

@sandy081
Copy link
Member

Yes & No. I think most of our contributions that need icons assume that icon exists. If icon does not exist, then an issue should be filed against extension.

@sandy081 sandy081 added the invalid Issue identified as not relevant or not valid label Apr 24, 2018
@fabiospampinato
Copy link
Contributor

fabiospampinato commented May 7, 2018

I just stumbled into this, it would be nice if VSC saved us time warning us about a bad icon filepath.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid Issue identified as not relevant or not valid
Projects
None yet
Development

No branches or pull requests

3 participants