mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix(dotnet): Don't treat folder with .sln file as a .NET project (#2785)
* Don't treat folder with .sln file as a .NET project * Update docs for .NET detect_extensions changes
This commit is contained in:
@@ -25,7 +25,7 @@ impl<'a> Default for DotnetConfig<'a> {
|
||||
style: "blue bold",
|
||||
heuristic: true,
|
||||
disabled: false,
|
||||
detect_extensions: vec!["sln", "csproj", "fsproj", "xproj"],
|
||||
detect_extensions: vec!["csproj", "fsproj", "xproj"],
|
||||
detect_files: vec![
|
||||
"global.json",
|
||||
"project.json",
|
||||
|
||||
@@ -395,10 +395,7 @@ mod tests {
|
||||
fn shows_latest_in_directory_with_solution() -> io::Result<()> {
|
||||
let workspace = create_workspace(false)?;
|
||||
touch_path(&workspace, "solution.sln", None)?;
|
||||
expect_output(
|
||||
&workspace.path(),
|
||||
Some(format!("{}", Color::Blue.bold().paint(".NET v3.1.103 "))),
|
||||
);
|
||||
expect_output(&workspace.path(), None);
|
||||
workspace.close()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user