Skip to content

Commit a06e7f7

Browse files
mkvlrnJanDeDobbeleer
authored andcommitted
feat(dotnet): add .slnx to files
1 parent f25d7f6 commit a06e7f7

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

src/segments/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (n *Project) Enabled() bool {
9999
},
100100
{
101101
Name: "dotnet",
102-
Files: []string{"*.sln", "*.slnf", "*.vbproj", "*.fsproj", "*.csproj"},
102+
Files: []string{"*.sln", "*.slnf", ".*slnx", "*.vbproj", "*.fsproj", "*.csproj"},
103103
Fetcher: n.getDotnetProject,
104104
},
105105
{

themes/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,7 @@
16071607
"*.fsx",
16081608
"*.sln",
16091609
"*.slnf",
1610+
"*.slnx",
16101611
"*.csproj",
16111612
"*.fsproj",
16121613
"*.vbproj",

website/docs/segments/languages/dotnet.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ import Config from "@site/src/components/Config.js";
2525

2626
## Properties
2727

28-
| Name | Type | Default | Description |
29-
| ---------------------- | :--------: | :----------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
30-
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
31-
| `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `dotnet` |
32-
| `cache_duration` | `string` | `none` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
33-
| `missing_command_text` | `string` | | text to display when the command is missing |
34-
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
35-
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
36-
| `extensions` | `[]string` | `*.cs, *.csx, *.vb, *.fs, *.fsx, *.sln, *.slnf, *.csproj, *.fsproj, *.vbproj, global.json` | allows to override the default list of file extensions to validate |
37-
| `folders` | `[]string` | | allows to override the list of folder names to validate |
38-
| `fetch_sdk_version` | `boolean` | `false` | fetch the SDK version in `global.json` when present |
28+
| Name | Type | Default | Description |
29+
| ---------------------- | :--------: | :------------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
30+
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
31+
| `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `dotnet` |
32+
| `cache_duration` | `string` | `none` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
33+
| `missing_command_text` | `string` | | text to display when the command is missing |
34+
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
35+
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
36+
| `extensions` | `[]string` | `*.cs, *.csx, *.vb, *.fs, *.fsx, *.sln, *.slnf, *.slnx, *.csproj, *.fsproj, *.vbproj, global.json` | allows to override the default list of file extensions to validate |
37+
| `folders` | `[]string` | | allows to override the list of folder names to validate |
38+
| `fetch_sdk_version` | `boolean` | `false` | fetch the SDK version in `global.json` when present |
3939

4040
## Template ([info][templates])
4141

website/docs/segments/system/project.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Supports:
1717
- PHP project (`composer.json`)
1818
- Dart project (`pubspec.yaml`)
1919
- Any nuspec based project (`*.nuspec`, first file match info is displayed)
20-
- .NET project (`*.sln`, `*.slnf`, `*.csproj`, `*.vbproj` or `*.fsproj`, first file match info is displayed)
20+
- .NET project (`*.sln`, `*.slnf`, `*.slnx`, `*.csproj`, `*.vbproj` or `*.fsproj`, first file match info is displayed)
2121
- Julia project (`JuliaProject.toml`, `Project.toml`)
2222
- PowerShell project (`*.psd1`, first file match info is displayed)
2323

0 commit comments

Comments
 (0)