-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify VSCode extension to use dotnet tool list + only warn to instal… (
#1323) This modifies the VSCode extension in the following ways - Instead of looking for dotnet-tools.json files in the current directory and parent directories the extension runs `dotnet tool list` and parses the outpud looking for the csharpier version. - Instead of running `dotnet csharpier --version` to look for the global version it repeats the above step with `dotnet tool list -g` - The "You need to install csharpier" window was popping up every time you opened a file if it couldn't find an install. The other extensions were limited to showing the warning a single time. VSCode now only shows it a single time. - Files under `/DecompilationMetadataAsSourceFileProvider/` will never have the warning show. This is where the c# dev kit decompiles code. #1267
- Loading branch information
Showing
5 changed files
with
80 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const runFunctionsUntilResultFound = <T>(...functions: (() => T)[]) => { | ||
for (const possibleFunction of functions) { | ||
const result = possibleFunction(); | ||
if (result) { | ||
return result; | ||
} | ||
} | ||
|
||
return undefined; | ||
}; |