Skip to content

feat: add support for .slnx files in dotnet_version segment#2948

Open
vaayroon wants to merge 1 commit into
romkatv:masterfrom
vaayroon:dotnet-version-slnx-support
Open

feat: add support for .slnx files in dotnet_version segment#2948
vaayroon wants to merge 1 commit into
romkatv:masterfrom
vaayroon:dotnet-version-slnx-support

Conversation

@vaayroon

Copy link
Copy Markdown
  • Overview

This PR adds support for the new .slnx (XML Solution) file format to the dotnet_version prompt segment.

  • Changes

Currently, when POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY is set to true, the segment looks for specific project and solution files to determine if the .NET version should be displayed. This change adds *.slnx to the list of recognized files in _p9k_upglob.

  • Reasoning

Microsoft has introduced the .slnx format as a cleaner, XML-based alternative to the traditional .sln files. Users working with these new solution files should still see their .NET version in the prompt without needing to have a legacy .sln file present in the directory.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant