microsoft / microsoft/TypeScript-Sublime-Plugin
Sublime Text 3 TS AutoSuggestion not working when I add paths in ts.config.app.json file
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.7k
- フォーク
- 236
- 平均マージ
- 21日 13時間
- マージ済み PR(30日)
- 1
説明
I was having long paths in imports something like this
import { ApiService } from "../../services/api-calls/api.service";
so I was trying to reduce the path with the help of tsconfig.app.json file like
"paths": {
"@services/*": ["./services/*"]
},
and in component I changed import path like
import { ApiService } from "@services/api-calls/api.service";
and it worked well for me, It didn't throw any error I was able to serve the app successfully on localhost, But the problem I am now facing is Sublime is not giving any auto suggestions for path or for imported Class, Does anyone faced this issue? how to fix it?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
tsconfig.app.json のパスエントリを使用して Sublime Text 3 で問題を再現し、相対 import と @services import の補完を比較します。まず、プラグインがパスおよび import されたクラスの候補に TypeScript 言語サービスをどのように利用しているかを追跡します。両方の形式で期待される補完が提供されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100