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

Profiles: Support transient profiles #154460

Closed
joaomoreno opened this issue Jul 8, 2022 · 2 comments · Fixed by #158695
Closed

Profiles: Support transient profiles #154460

joaomoreno opened this issue Jul 8, 2022 · 2 comments · Fixed by #158695
Assignees
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders on-testplan user-profiles User profile management
Milestone

Comments

@joaomoreno
Copy link
Member

joaomoreno commented Jul 8, 2022

We could introduce the concept of a transient profile which gets automatically deleted once the last window which uses it is closed.

Additionally, combined with #151301, we could have a CLI way to start VS Code on a transient profile.

cc @weinand

@joaomoreno joaomoreno added feature-request Request for new features or functionality user-profiles User profile management labels Jul 8, 2022
@joaomoreno joaomoreno added this to the August 2022 milestone Jul 8, 2022
@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Aug 22, 2022
@weinand
Copy link
Contributor

weinand commented Aug 22, 2022

@sandy081
I've tried the --profile-transient CLI for extension debugging, but that had no effect.
But creating an empty profile "mock" and then using --profile=mock in the launch config works great.

(Yes, I've turned on the "profile preview" flag and I'm running latest out of source)

Here is the launch config that didn't work for me:

		{
			"name": "Extension",
			"type": "extensionHost",
			"request": "launch",
			"args": [
				"--profile-transient",
				"--extensionDevelopmentPath=${workspaceFolder}",
				"${workspaceFolder}/sampleWorkspace"
			],
			"outFiles": [
				"${workspaceFolder}/dist/**/*.js"
			],
			"preLaunchTask": "npm: watch"
		},

@weinand
Copy link
Contributor

weinand commented Aug 22, 2022

Using the --profile-transient flag in extension debugging works fine as long as a workspace folder is specified in args.
If no workspace folder is specified --profile-transient is silently ignored.

@vscodenpa vscodenpa added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Aug 23, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2022
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 insiders-released Patch has been released in VS Code Insiders on-testplan user-profiles User profile management
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants