`vcpkg edit` now checks the default user-installer location for VSCode
MODIFY
src/vcpkg/commands.edit.cpp
src/vcpkg/commands.edit.cpp
@@ -128,6 +128,14 @@ namespace vcpkg::Commands::Edit
candidate_paths.push_back(*pf / VS_CODE);
}
+ const auto& app_data = System::get_environment_variable("APPDATA");
+ if (const auto* ad = app_data.get())
+ {
+ const fs::path default_base = fs::path {*ad}.parent_path() / "Local" / "Programs";
+ candidate_paths.push_back(default_base / VS_CODE_INSIDERS);
+ candidate_paths.push_back(default_base / VS_CODE);
+ }
+
const std::vector<fs::path> from_registry = find_from_registry();
candidate_paths.insert(candidate_paths.end(), from_registry.cbegin(), from_registry.cend());

`vcpkg edit` now checks the default user-installer location for VSCode