microsoft / microsoft/TypeScript-Sublime-Plugin
Sublime Text 3 TS AutoSuggestion not working when I add paths in ts.config.app.json file
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 236
- Avg merge
- 21d 13h
- Merged PRs (30d)
- 1
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Sublime Text 3 using the tsconfig.app.json paths entry and compare completion for the relative and @services imports. Start by tracing how the plugin consumes TypeScript language services for path and imported-class suggestions; done means both forms provide the expected completions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100