diff --git a/docs/docs/segments/dotnet.md b/docs/docs/segments/dotnet.md index 611f89ad..1b833643 100644 --- a/docs/docs/segments/dotnet.md +++ b/docs/docs/segments/dotnet.md @@ -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 diff --git a/src/segments/dotnet.go b/src/segments/dotnet.go index 2bc4b829..ede36c00 100644 --- a/src/segments/dotnet.go +++ b/src/segments/dotnet.go @@ -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",