Support projects in subfolders
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- haskell, typescript, vscode
- Ambito
- developer-experience, tooling
Direzione di ricerca
Non sono indicati file sorgente, test o punti di ingresso. Ricrea la struttura toplevel/project descritta e apri project/src/Main.hs, quindi segui il modo in cui l’estensione sceglie la radice HLS. Il lavoro è completato quando la directory HLS è toplevel/project se lì viene trovato stack.yaml, un file .cabal, cabal.project o package.yaml.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
I'm currently working on a project of which a Haskell project is only a small part. When trying to open the root folder in VSCode however, the Haskell extension does not pick up on the Stack project in the Haskell-specific subfolder.
Describe the solution you'd like
I would like the extension to select the Haskell project folder by looking for stack.yaml/*.cabal/whatever files, instead of just naively picking the opened folder as Haskell project folder.
This is also what Kate does, its LSP client default configuration has the following line for HLS:
"rootIndicationFileNames": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml"]
Describe alternatives you've considered
- Just open the Haskell project in a separate VSCode window, and have two windows open (kind of annoying imo)
- Allow creating a file that instructs HLS where to actually find the project (a bit hacky, but would be a decent workaround)
- Open both toplevel and projects in a multi-root workspace
Additional context
Consider the following folder layout:
toplevel
| - project
| | - stack.yaml, project.cabal, src/, all other parts of a Haskell project
| - otherStuff
In my example, I open toplevel in VSCode (instead of project), but want HLS to use project as root folder.
So if I open the file project/src/Main.hs, I want HLS to start with Directory: toplevel/project, not Directory: toplevel which causes it to miss the stack/cabal files that allow it to know what dependencies I am using etc.
- Lingua principale
- TypeScript
- Stelle
- 594
- Fork
- 99
- Merge medio
- 18h 19m
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la 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 haskell/vscode-haskell
-
Support VS Code's foldable `#region` by adding `folding.markers` to `language-configuration.json`Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
haskell/vscode-haskell#1394 ·
-
type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
haskell/vscode-haskell#1332 · 2 commenti ·
-
status: needs triage
Difficoltà 3/5 Mezza giornata Idoneità per principianti 62/100
haskell/vscode-haskell#1412 · 1 commento ·
-
status: needs triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
haskell/vscode-haskell#1402 · 4 commenti ·
-
status: needs triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
haskell/vscode-haskell#1399 · 4 commenti ·
Tutte le issue di haskell/vscode-haskell
Issue simili
-
bug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
ClickHouse/clickhouse-js#1293 ·
I maintainer di solito rispondono entro 1 giorno
-
area: middleware enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
agent/quality testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
I maintainer di solito rispondono entro 1 giorno
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
juspay/agent-distro#203 ·
I maintainer di solito rispondono entro 1 giorno