Skip to content

Create a workspace file in the root of your repoΒ #8

@github-actions

Description

@github-actions

πŸ€·β€β™‚οΈ Why

If you do not use an explicit workspace, VC Code will implicitly create one for you. From a DevX perspective its not nice when things happen implicitly.

Important

If you don't use a named workspace, but just go with VS Code's implied one β€” and you add a new folder to the workspace. Then VS Code will see that as a new and different workspace and as an undesired side effect all your current and historic chat sessions with Copilot and, and all open terminal prompts are gone.

πŸ’¬ Prompt

Save an empty workspace named 'default.code-space' in the root of the repo.

πŸ› οΈ D.I.Y.

From the Command Palette1 in VS Code:

Workspaces:Save Workspace As... β†’ default.code-workspace

πŸ€– Automate

.scripts/co-sample "Create a workspace file in the root of your repo" \
  batch1 \
  default.code-workspace

Footnotes

  1. Command Palette shortcut
    Mac: β¬†βŒ˜P (shift+command+P)
    Windows/Linux: ⬆^P (shift+ctrl+P) ↩

Metadata

Metadata

Assignees

No one assigned

    Labels

    batch1Pulls from batch1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions