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

Ability to enable only [all] recommended extensions #61723

Closed
n3rd4i opened this issue Oct 24, 2018 · 14 comments
Closed

Ability to enable only [all] recommended extensions #61723

n3rd4i opened this issue Oct 24, 2018 · 14 comments
Assignees
Labels
extensions Issues concerning extensions *out-of-scope Posted issue is not in scope of VS Code under-discussion Issue is under discussion for relevance, priority, approach

Comments

@n3rd4i
Copy link

n3rd4i commented Oct 24, 2018

The ability to only enable the recommended extensions for the specific workspace [folder].

@vscodebot vscodebot bot added the extensions Issues concerning extensions label Oct 24, 2018
@sandy081
Copy link
Member

@n3rd4i Do you mean to install or enable them only for the workspace that has recommendations?

@sandy081 sandy081 added the info-needed Issue requires more information from poster label Oct 25, 2018
@n3rd4i
Copy link
Author

n3rd4i commented Oct 26, 2018

Do you mean to install or enable them only for the workspace that has recommendations?

Sort answer, maybe both.

  1. Enable them (if they are disabled) for the workspace where they are recommended.
    1.1 But to be able to do so with one command (enable recommended extensions) like:
    -- e.g. Existing command: Enable Auto Updating Extensions (which maps to internal command)
    -- New command in that listing: Enable Recommended Extensions (which should map to internal command)
  2. Additionally, It would be helpful if they where also installed if they are not there already.
  3. Also, always when extensions are installed, they are enabled globally, never they are enabled for the workspace where they are installed.

@sandy081
Copy link
Member

Also, always when extensions are installed, they are enabled globally, never they are enabled for the workspace where they are installed.

So you mean when recommendations are installed, enable only for this workspace automatically?

@n3rd4i
Copy link
Author

n3rd4i commented Oct 26, 2018

[...] when recommendations are installed, enable only for this workspace automatically?

That sounds very helpful, I would suggest that, on top of the other points I made earlier.

Additionally, maybe also allowing to disable recommended extensions could prove useful to still keep the global enabled ones untouched.

@sandy081 sandy081 added under-discussion Issue is under discussion for relevance, priority, approach and removed info-needed Issue requires more information from poster labels Oct 29, 2018
@whut
Copy link

whut commented Apr 18, 2019

@sandy081

So you mean when recommendations are installed, enable only for this workspace automatically?

Yes! With that single thing it would be easy to maintain different sets of extensions per workspace and keep them in source control.

Here is the workflow:

  1. First user disable all extensions except selected few that are used always. This is a required step to use this workflow - this should be documented on Recommended Extensions section in Extensions user guide to make users familiar with this approach.

  2. When opening some workspace with recommended extensions that I have already installed, Code automatically enables recommended extensions for current workspace. I believe this should win even over manually "disabled per workspace" extension, as the same behavior is with settings: workspace settings win over user settings. Note that there is no disabling extensions automatically (that kind of idea is proposed in Feature Request: Enable/disable extensions from config file #40239 and Persisting "disable by workspace" settings in source control #18386, IMO it would be irritating, similar is in Ability to enable only [all] recommended extensions #61723 - again this would mean that I am not able to have additional extensions enabled per workspace) nor automatic install, user is still in control here.

  3. When opening some workspace with recommended extensions and I do not have them already installed, Code prompts to install them, and with Default extensions scope #51658 I am able to right on the spot enable them only in current workspace. Even without Default extensions scope #51658 it is OK, I just install them, and disable, then reload window to trigger behavior from above point.

In the end we have system that is simple, automatic, source controlled so sharable with the team and still keeps user in control on which extension are installed, and allows to have additional extensions enabled.

I believe it would also solve #57548.

@ArulDhandapani
Copy link

ArulDhandapani commented Apr 25, 2019

Reading all the thread related with this topic, i assume everyone looking similar to below feature what I described with example.

This has to go to ".code-workspace" config file to enable other users as zero config/setup effort in a project, they just open and start coding.

Example File: project.code-workspace

	{
		"folders": [
			{
				"path": "."
			}
		],
		"settings.user": "false",  _<-Enable/Disable user settings located under 'AppData\Roaming\Code\User\settings.json' in a system_
		"settings.folder": "false",  _<-Enable/Disable folder settings located under '.vscode\settings.json' in a project_
		"extensions": {  _<-Extension config_
			"installed": "false",  _<-Enable/Disable user installed extension in their system_
			"[load]": {  _<-Re-load VSCode when "open workspace"_
				"required": [  _<-Listed below extension auto-install if user doesn't have in their system without prompt_
					"ms-python.python",
					"sonarsource.sonarlint-vscode",
					"eamodio.gitlens"
				],
				"optional": [  _<-Listed below extension prompt to user to install, if user doesn't have in their system_
					"euskadi31.json-pretty-printer",
					"silverbulleters.sonarqube-inject"
				],
			},
		}
	}

@jd-solanki
Copy link

I am also waiting for this feature.

Here's my workflow: #128030

Additionally, If I create a new project for let's say reproducing some issue I want syntax highlighting for that workspace only and want to enable extensions for that workspace only rather than enabling globally. Enabling them one by one by click on the Gear icon is not I want.

@jd-solanki
Copy link

Any updates?

1 similar comment
@Junkher
Copy link

Junkher commented Aug 10, 2022

Any updates?

@ImaniAN
Copy link

ImaniAN commented Aug 14, 2022

The way I need this feature right now ...

Sometimes when you working in different workspaces that have code that uses different languages, Frameworks, Platforms or Libraries(the VS Code workspaces)...

You have to enable and disable extensions according to that specific workspace.

Would be pretty cool if when you open a workspace, you are asked if you want to:

firstly: install all recommended workspace extensions
Secondly: Disable all extensions not in the recommended workspace extensions array/list
Lastly: Enable the recommended workspace extensions

SIDE NOTE:

users should be allowed to create a list of "globally available extensions":
def: A list of installed extensions that can be enabled one after another

Use Case (Personal):
Regardless of workspace, repo, language, Framework, Platform or Library or code base if I am using VS Code, I have Kite AutoComplete AI Code and TODO Highlight enabled, because in my opinion I will always need them regardless of what I am working on.

Even if I disable all extensions, it would be helpful to enable extensions that, regardless of the recommended workspace extensions can be enabled as a collective (i.e/ AKA => "globally available extensions")

@av-2024
Copy link

av-2024 commented Aug 16, 2022

Hello?

@VSCodeTriageBot
Copy link
Collaborator

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2022
@jd-solanki
Copy link

This is useful if someone is working with multiple languages. I don't want to use python extension in TS code and vice versa.

To prevent unwanted use of resources we disable the extensions and we don't have an easy way to enable them back on language-specific projects.

@sandy081
Copy link
Member

sandy081 commented Dec 8, 2022

For language specific projects, please check out this feature - #116740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensions Issues concerning extensions *out-of-scope Posted issue is not in scope of VS Code under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

10 participants