microsoft / microsoft/TypeScript
Feedback to improve compileOnSave with tsserver.
オープン
まだ誰も着手していません。
Domain: API
Help Wanted
Suggestion
VS Code Tracked
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
I have implemented inside Eclipse compile on save with tsserver by consuming compileOnSaveAffectedFileList and compileOnSaveEmitFile commands. It works great but I think we could again improved it
For compileOnSaveAffectedFileList:
compileOnSaveAffectedFileListshould throw error when the given file is excluded of tsconfig.json. It will give the capability to display an error dialog when user wishes to compile a ts file which is excluded by tsconfig.json- in some case, tsserver
compileOnSaveAffectedFileListreturns *.d.ts files (see ttps://github.com/angelozerr/typescript.java/issues/190#issuecomment-317876026) those *.d.ts files must be ignored for compilation.
For compileOnSaveEmitFile:
- the reponse
compileOnSaveEmitFileshould return diagnostics errors. I had to call the two tsserver commandssyntacticDiagnosticsSyncandsemantacticDiagnosticsSyncafter the call ofcompileOnSaveEmitFileto display errors in the Eclipse "Problem View" - the reponse
compileOnSaveEmitFileshould return the emited files path (js and *.js.map). In Eclipse case it's very helpful because I could refresh the files.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
compileOnSaveAffectedFileList と compileOnSaveEmitFile の tsserver エントリポイントから始め、関連する syntacticDiagnosticsSync および semantacticDiagnosticsSync コマンドを調査します。除外されたファイルがエラーを生成し、宣言ファイルが無視され、compileOnSaveEmitFile が診断情報と出力された JavaScript および source-map ファイルのパスを報告すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- compilers
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100