microsoft / microsoft/TypeScript
Respect Node's `--loader` for VS Code Intellisense
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
I would like VS Code to be able to use a custom Node.js loader for Intellisense.
For example, if I remove the .mjs extension from my code, I can no longer see the Intellisense for mime-types.mjs.
But my custom loader does not require the extension.
Here is what I am hoping to see: (without the .mjs extension on the import)
I can see the .html reference in the Intellisense drop down.
But here is what I actually see:
I think that now Node.js loaders are going through the normalization process - heading out of experimental, it is a good time for VS Code to start working on respecting loaders.
Perhaps this could live in .vscode/settings.json:
// .vscode/settings.json
{
"loader": "./loader.mjs"
}
It would be important to provide different loaders for different directories for more complex projects/monorepos, etc:
// .vscode/settings.json
{
"loader": {
"./app-one": "./loaders/my-custom-loader-1.mjs",
"./app-two": "./loaders/my-custom-loader-2.mjs",
"./app-three": "react-loader" // <-- Uses a package as a loader
}
}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提案されている .vscode/settings.json の loader 設定と、issue に記載されている Node.js --loader の動作を確認します。現在 Intellisense が拡張子のない import をどのように解決しているかを特定し、ディレクトリごとに 1 つの loader または異なる loader を使用するための完了基準を、パッケージベースの loader も含めて定義します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js, vscode
- 領域
- developer-experience, tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100