Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Allow a user to create a playground project in a temporary directory #32

Closed
KalitaAlexey opened this issue Dec 29, 2016 · 2 comments
Closed

Comments

@KalitaAlexey
Copy link
Member

KalitaAlexey commented Dec 29, 2016

Hi everybody.

Description

I want to add a new command "Cargo: Start playground".

Executing of the new command
shows a quick pick dialog with the two choices: "Binary", "Library".
If a user cancels the quick pick dialog nothing happens.
A choice determines what kind of a project is created.
If a user chooses a certain choice
the extension creates a project in the OS-specific temporary directory and
opens a new window of VSCode with the created directory.
Closing the created window removes the created directory. - Removed because it adds complexity, but doesn't important enough

Motivation

Sometimes you want to try something out.
Currently it is complicated.
The features makes that easy.

Thanks,
Alexey

@KalitaAlexey
Copy link
Member Author

Unfortunately,
I haven't found a way to open a new window using API.
I can require code to be accessible from a command line, but I don't like the idea.
I have opened an issue describing my proposal: microsoft/vscode#18034
The issue is postponed until some resolution of the issue in the vscode repository.

@KalitaAlexey
Copy link
Member Author

I have found a way. It is vscode.openFolder command.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant