dotnet / dotnet/vscode-csharp

"Projects" warning in status bar when file-based app .cs file is open in editor

Open
#9,636 2 comments 0 reactions 1 assignee Claimed by @RikkiGibson View on GitHub
Bug Feature - Run File untriaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

When working in a workspace that contains both file-based apps and traditional projects, a "Projects:" status bar section is displayed with a count of projects in the workspace, e.g. "Projects: 4". If a file-based app .cs file is open in the editor though, this section becomes highlighted with a warning like so:

Image

This is confusing as the file actually **is** opened in the context of a project, but it's the file-based app's virtual project.

I think this just shouldn't be highlighted as a warning at all, or perhaps the projects count should be updated to include all detected file-based apps in the workspace too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.