microsoft / microsoft/vscode-edge-devtools

`userDataDir` has unexpected results

Open
#533 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug tracked
Dominant language
TypeScript
Stars
827
Forks
358
Avg merge
20h 32m
Merged PRs (30d)
10

Description

Environment:
  • OS: Windows 10
  • Extension: 1.3.1
Describe the bug:

Setting vscode-edge-devtools.userDataDir does not work as expected.

Repro steps:
// opens default temporary profile
"vscode-edge-devtools.userDataDir": false,
"vscode-edge-devtools.userDataDir": "C:/Users/Enteleform/AppData/Local/Microsoft/Edge/User Data/Profile 2",
"vscode-edge-devtools.userDataDir": "C:/Some/Invalid/Path",

// opens `Enteleform/Profile 2`
"vscode-edge-devtools.userDataDir": "C:/Users/Enteleform/AppData/Local/Microsoft/Edge/User Data",
Expected behavior:
// opens `Enteleform/Profile 1`
"vscode-edge-devtools.userDataDir": false,

// opens `Enteleform/Profile 2`
"vscode-edge-devtools.userDataDir": "C:/Users/Enteleform/AppData/Local/Microsoft/Edge/User Data/Profile 2",

// shows an error message informing user to use the path of a valid profile directory
"vscode-edge-devtools.userDataDir": "C:/Some/Invalid/Path",

// same as the previous example, unless one of the suggestions below is implemented
"vscode-edge-devtools.userDataDir": "C:/Users/Enteleform/AppData/Local/Microsoft/Edge/User Data",
Suggested behavior:
// - remove the `false` option
// - add the following options, which are more explicit and provide context as to their outcome

// opens `Enteleform/Profile 1`
"vscode-edge-devtools.userDataDir": "default",

// shows a dropdown to select one of the available user profiles @ `%LocalAppData%/Microsoft/Edge/User Data`
"vscode-edge-devtools.userDataDir": "select",

// shows a dropdown to select one of the available user profiles @ the defined path
"vscode-edge-devtools.userDataDir": "C:/CustomPath/Edge/User Data",

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported vscode-edge-devtools.userDataDir behavior on Windows 10 with the listed valid, invalid, and profile-directory paths. Compare the observed profile selection and error handling with the expected behavior, then determine whether the proposed default, select, and custom-path options are in scope. Done means valid profiles open predictably and invalid paths provide a clear error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.