-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VS - Use dotnet tool list to find both local and global installs of c…
- Loading branch information
Showing
7 changed files
with
83 additions
and
50 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
Src/CSharpier.VisualStudio/.idea/.idea.CSharpier.VisualStudio/.idea/CSharpierPlugin.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
Src/CSharpier.VisualStudio/CSharpier.VisualStudio/source.extension.vsixmanifest
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
2 changes: 1 addition & 1 deletion
2
Src/CSharpier.VisualStudio/CSharpier.VisualStudio2019/source.extension.vsixmanifest
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
17 changes: 17 additions & 0 deletions
17
Src/CSharpier.VisualStudio/CSharpier.VisualStudioShared/FunctionRunner.cs
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,17 @@ | ||
using System; | ||
|
||
namespace CSharpier.VisualStudio | ||
{ | ||
using System.Linq; | ||
|
||
public static class FunctionRunner | ||
{ | ||
public static string? RunUntilNonNull(params Func<string?>[] functions) | ||
{ | ||
return functions | ||
.Select(possibleFunction => possibleFunction()) | ||
.OfType<string>() | ||
.FirstOrDefault(); | ||
} | ||
} | ||
} |
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