[Bug]: No context-menu action to add an existing project to a solution
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 66/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript, vscode
- Ambito
- developer-experience, tooling
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 185
- Fork
- 12
- Merge medio
- 7h 33m
- PR unite (30g)
- 63
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Nimblesite/SharpLsp
-
Fix All + Enforce overwrites unsaved edits to .editorconfig / Directory.Build.props / sharplsp.tomlApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Nimblesite/SharpLsp#644 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Nimblesite/SharpLsp#641 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Nimblesite/SharpLsp#640 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Nimblesite/SharpLsp#639 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Nimblesite/SharpLsp#510 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Nimblesite/SharpLsp
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
audacity/audacity.github.io#118 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
crxjs/chrome-extension-tools#1261 ·
-
Resources: Update work of fuzhouForse già presa @rmt-svc l’ha presa oggi. Apertaresources
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
railmapgen/rmp-gallery#4245 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
mike-north/AgentMonitors#717 ·
I maintainer di solito rispondono entro 1 giorno