feat: dotnet section visible when *.slnf files present

This commit is contained in:
Damian Edwards 2022-04-28 13:36:17 -07:00 committed by Jan De Dobbeleer
parent 4c0db9e66e
commit 62b97ff2e3
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ Display the currently active .NET SDK version.
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
- display_mode: `string` - determines when the segment is displayed
- `always`: the segment is always displayed
- `files`: the segment is only displayed when `*.cs`, `*.vb`, `*.fs`, `*.fsx`, `*.sln`, `*.csproj`, `*.vbproj`,
- `files`: the segment is only displayed when `*.cs`, `*.vb`, `*.fs`, `*.fsx`, `*.sln`, `*.slnf`, `*.csproj`, `*.vbproj`,
or `*.fsproj` files are present (default)
- version_url_template: `string` - A go text/template [template][templates] that creates the changelog URL

View file

@ -20,7 +20,7 @@ func (d *Dotnet) Init(props properties.Properties, env environment.Environment)
d.language = language{
env: env,
props: props,
extensions: []string{"*.cs", "*.csx", "*.vb", "*.sln", "*.csproj", "*.vbproj", "*.fs", "*.fsx", "*.fsproj", "global.json"},
extensions: []string{"*.cs", "*.csx", "*.vb", "*.sln", "*.slnf", "*.csproj", "*.vbproj", "*.fs", "*.fsx", "*.fsproj", "global.json"},
commands: []*cmd{
{
executable: "dotnet",