Support projects in subfolders
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- haskell, typescript, vscode
調査の方向性
ソースファイル、テスト、エントリーポイントは指定されていません。説明されている toplevel/project レイアウトを再現して project/src/Main.hs を開き、拡張機能が HLS ルートをどのように選択するかを追跡してください。stack.yaml、.cabal ファイル、cabal.project、または package.yaml がそこに見つかった場合に HLS ディレクトリが toplevel/project になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 594
- フォーク
- 99
- 平均マージ
- 18時間 19分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
haskell/vscode-haskell のほかの issue
-
Support VS Code's foldable `#region` by adding `folding.markers` to `language-configuration.json`オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
haskell/vscode-haskell#1394 ·
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
haskell/vscode-haskell#1332 · コメント 2 件 ·
-
status: needs triage
難易度 3/5 半日 初心者へのやさしさ 62/100
haskell/vscode-haskell#1412 · コメント 1 件 ·
-
status: needs triage
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
haskell/vscode-haskell#1402 · コメント 4 件 ·
-
status: needs triage
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
haskell/vscode-haskell#1399 · コメント 4 件 ·
haskell/vscode-haskell の issue をすべて見る
似ている issue
-
bug data-types
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ClickHouse/clickhouse-js#1293 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
agent/quality testing
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
メンテナーはふだん 1 日以内に返信
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
juspay/agent-distro#203 ·
メンテナーはふだん 1 日以内に返信