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

[FR] Create .code-workspace file #9

Open
kimyvgy opened this issue Nov 26, 2024 · 0 comments
Open

[FR] Create .code-workspace file #9

kimyvgy opened this issue Nov 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kimyvgy
Copy link
Contributor

kimyvgy commented Nov 26, 2024

Description

We would like to request a new feature for the ws tool that allows users to create .code-workspace files easily via the CLI. This feature should enable the creation of workspace files by specifying a name and one or more folder paths as part of the command.

Proposed Command Syntax

ws create <workspace-name> -f <folder-path1> -f <folder-path2> [--open]
ws create phe-lab/helm-charts -f ~/folder1 -f ~/folder2

Details:

  • The command should create a file named ~/.ws/phelab/helm-charts.code-workspace.
  • The command should create a file named ~/.ws/phelab/helm-charts.code-workspace.
  • If --open is provided, the tool should automatically open the newly created workspace file in Visual Studio Code.

Expected Output

For the above example, the file ~/.ws/phelab/helm-charts.code-workspace would look like this:

{
  "folders": [
    {
      "path": "~/path/to/folder1"
    },
    {
      "path": "~/path/to/folder2"
    }
  ],
  "settings": {}
}

Implementation Notes

  • The tool should validate the provided folder paths. If a folder does not exist, it should show a warning or error message.
  • Workspace files should be stored in the user’s home directory under ~/.ws for better organization.
@kimyvgy kimyvgy added the enhancement New feature or request label Nov 26, 2024
@kimyvgy kimyvgy changed the title Feature: Add Feature to Create .code-workspace Files via CLI Command [FR] Create .code-workspace file Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant