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

The "Initialize ADR Directory" command does not allow the user to select the root when prompted to "Choose the folder to save the ADR to:" #20

Open
tgolla opened this issue Sep 13, 2024 · 1 comment

Comments

@tgolla
Copy link

tgolla commented Sep 13, 2024

When you execute the ADR Manager: Initialize ADR Directory command through VS Code Command Palette... you are prompted with Choose the folder to save the ADR to: which immediately selects the first root folder.

This behavior does not allow you to select the root directory. Instead, no folder should be selected, allowing the user to enter a blank line, hence the root directory.

image

@FrostyZoob
Copy link

Try this:

  1. Create a .vscode directory in your project / workspace root.
    1. NOTE: In my case, the project / workspace root was also the repo root.
  2. Create a settings.json file (assuming one doesn't already exist)
  3. Add (or edit) the following settings
{
    "adrManager.adrDirectory": "docs/decisions",
    "adrManager.treatSingleRootAsMultiRoot": false
}
  1. Run ADR Manager: Initialize ADR Directory

In my case, the docs/decisions folders already existed (but were empty) so when I ran ADR Manager: Initialize ADR Directory the extension prompted me with The ADR Directory already exists. Do you want to fill the directory with boilerplate Markdown files?. I said "Yes", and the extension put the files where I wanted them.

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

No branches or pull requests

2 participants