microsoft / microsoft/TypeScript-Sublime-Plugin
Unexpected path behaviour from excluded file?
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.7k
- フォーク
- 236
- 平均マージ
- 21日 13時間
- マージ済み PR(30日)
- 1
説明
TL;DR;
Opening a file from a tsconfig.json excluded directory in sublime doesn't resolve project files. But most of the other typescript features seems to be working... Is this expected behaviour? Or am I doing something terribly wrong?
First of all, thanks for the wonderful TypeScript and the Sublime plugin! It has been a pleasure to work with.
So I was setting up a simple project structure with TypeScript, Webpack, Mocha and React. The usual basics. When I created my first component everything went well and I got a fair build time; 2 seconds. Unfortunately after creating a (unit) test for this component, the build time soared to 20+ seconds...
After some investigation I found out that TypeScript parsed all the testing dependencies, even though Webpack did not include the /test folder for the loader. But I think that is expected behaviour, since they stated that the tsconfig.json's exclude is used.
Because of this, I added the whole testing folder to the exclude array. But after doing so, Sublime does not resolve the path to the component anymore. Instead it states Cannot find module 'app/components/test'. All other functionality seems to be working, autocompletion, typehinting, etc. Any input or even telling me I'm completely wrong is appreciated!
PS. All used files are available over here. Please note, I could not use directories so I used - as fake directory separator.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず tsconfig.json の設定とリンク先の gist を確認し、次に TypeScript Sublime Plugin で除外ディレクトリの動作を再現します。除外フォルダー内と外のファイルについてパス解決を比較します。報告されたモジュール解決の失敗が想定されたものかどうかを判断し、変更またはドキュメント化すべき関連する plugin の動作を特定できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, typescript
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100