-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Hostfxr Discovery Logic in place of Bad PATH from VS Code (#2048)
* Move registry logic into its own place This is so we can add hostfxr logic to find the path in the registry and dedupe logic and isolate the components. * fix build * move tests over * isolate query logic to another component * update linux test for 9.0 release * Add support for mac and linux * Scan registry properly * Add logging * Add simple linux mac test * Improve registry logic * Fix registry and host lookup * fix paran * use correct path method * fix it again * why are parans so hard xd * Fix logic for path detection * Add env variable to skip hostfxr logic * linux tests should consider if os suppots dotnet 9 by default * Fix test * Since the tests can't edit /etc/ use a mock file system * tests expect dotnet dll in path
- Loading branch information
Showing
17 changed files
with
595 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
vscode-dotnet-runtime-library/src/Acquisition/IRegistryReader.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Licensed to the .NET Foundation under one or more agreements. | ||
* The .NET Foundation licenses this file to you under the MIT license. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import { IEventStream } from '../EventStream/EventStream'; | ||
import { IVSCodeExtensionContext } from '../IVSCodeExtensionContext'; | ||
|
||
export abstract class IRegistryReader | ||
{ | ||
constructor() {} | ||
|
||
public abstract getGlobalSdkVersionsInstalledOnMachine() : Promise<Array<string>>; | ||
} |
Oops, something went wrong.