cli: store cli in user data dir, separate per quality (#182102)

* cli: store cli in user data dir, separate per quality

Fixes #181017

On first run, the `~/.vscode-cli` will be migrated inside the user data dir of the currently running quality.

* use create_dir_all instead

* clippy fixes
This commit is contained in:
Connor Peet
2023-05-10 13:09:23 -07:00
committed by GitHub
parent 8b11c814cc
commit d3d9f86116
5 changed files with 52 additions and 12 deletions

View File

@@ -36,7 +36,7 @@ async fn main() -> Result<(), std::convert::Infallible> {
});
let core = parsed.core();
let context_paths = LauncherPaths::new(&core.global_options.cli_data_dir).unwrap();
let context_paths = LauncherPaths::migrate(core.global_options.cli_data_dir.clone()).unwrap();
let context_args = core.clone();
// gets a command context without installing the global logger