Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No completions for .json files with --resolveJsonModule #23899

Closed
mhegazy opened this issue May 4, 2018 · 1 comment
Closed

No completions for .json files with --resolveJsonModule #23899

mhegazy opened this issue May 4, 2018 · 1 comment
Assignees
Labels
Bug A bug in TypeScript Domain: Completion Lists The issue relates to showing completion lists in an editor Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented May 4, 2018

TypeScript Version: 2.9.0-dev.201xxxxx

Search Terms:

Code
With #22167 in, add --resolveJsonModule to your tscofig.json, and add a new test.json file.
Request completions:

import { } from "./|"; // request completions here

Expected behavior:
./test.json shows in completion list.

Actual behavior:
./test.json does not show.

Playground Link:

Related Issues:

@mhegazy mhegazy added the Bug A bug in TypeScript label May 4, 2018
@mhegazy mhegazy added this to the TypeScript 2.9 milestone May 4, 2018
@mhegazy
Copy link
Contributor Author

mhegazy commented May 4, 2018

same applies for var x: typeof import("./test.json");

@mhegazy mhegazy added the Domain: Completion Lists The issue relates to showing completion lists in an editor label May 4, 2018
sheetalkamat added a commit that referenced this issue May 5, 2018
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label May 7, 2018
Kingwl pushed a commit to Kingwl/TypeScript that referenced this issue May 10, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: Completion Lists The issue relates to showing completion lists in an editor Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants