microsoft / microsoft/TypeScript-Sublime-Plugin

Sublime Text 3 TS AutoSuggestion not working when I add paths in ts.config.app.json file

Open
#669 1 comment 8 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.