[Bug]: No context-menu action to add an existing project to a solution
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 66/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript, vscode
- Área
- developer-experience, tooling
Línea de trabajo
Read the command contribution in src/editors/vscode/package.json and its implementation in src/scaffolding.ts, then trace how Solution Explorer distinguishes solution and project nodes. Add the context-menu actions for both cases described in the issue, including projects shown without a solution. Done means the actions appear in the relevant menus and let users add an existing project to a solution.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened?
The Solution Explorer has no way to add an existing project to an existing solution. Right-clicking a project shows only Build / Clean / Rebuild / Consolidate Packages / Remove Unused Packages / Copy Name. Nothing on the solution node does it either.
The command already exists: sharplsp.addProjectToSolution is in src/editors/vscode/package.json and implemented in src/scaffolding.ts. But it has no contributes.menus entry, so you can only run it from the Command Palette.
The gap is worst when the solution is empty (<Solution></Solution>) or doesn't reference the project. The explorer shows the project with no solution node above it, so there's nothing to right-click to fix it.
Steps to reproduce
- Make a folder with an SDK
App.csprojand an emptyApp.slnx(dotnet new sln --format slnx). - Open it in VS Code with SharpLsp 0.33.0.
- Right-click the project, or the solution, in the Solution Explorer.
- There is no "Add Existing Project…" / "Add to Solution" item.
Expected:
- On a solution node: "Add Existing Project…" opens a file picker for
.csproj/.fsprojand runsaddProjectToSolutionFile. - On a project node that isn't in any solution: "Add to Solution…" lets you pick a solution from the workspace.
- When a project is shown without a solution, the user still has a context-menu way to add it to one.
Related: #575 (standalone csproj only loaded when a solution references it).
Component
VS Code extension
Language
C#
SharpLsp version
0.33.0 (latest release, v0.33.0)
Editor & OS
VS Code, macOS 26.7.1
- Lenguaje dominante
- TypeScript
- Estrellas
- 185
- Forks
- 12
- Merge medio
- 7 h 33 min
- PR fusionados (30 d)
- 63
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Nimblesite/SharpLsp
-
Fix All + Enforce overwrites unsaved edits to .editorconfig / Directory.Build.props / sharplsp.tomlAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Nimblesite/SharpLsp#644 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Nimblesite/SharpLsp#641 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Nimblesite/SharpLsp#640 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Nimblesite/SharpLsp#639 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Nimblesite/SharpLsp#510 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Nimblesite/SharpLsp
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
audacity/audacity.github.io#118 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
crxjs/chrome-extension-tools#1261 ·
-
Resources: Update work of fuzhouPosiblemente ocupada @rmt-svc la tomó hoy. Abiertoresources
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
railmapgen/rmp-gallery#4245 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
mike-north/AgentMonitors#717 ·
Los mantenedores suelen responder en 1 día