microsoft / microsoft/TypeScript

JS Doc type intellisense not working when using custom file extension

Open
#11,367 11 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting More Feedback Suggestion VS Code Tracked
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

From @csvenke on September 30, 2016 20:52

  • VSCode Version: 1.5.3
  • OS Version: Windows 10

In a .js file, intellisense provides correct jsdoc types
js

In a custom extension file associated with javascript, types from jsdoc are not provided
sj

Steps to Reproduce:
  1. Create a .sj file
  2. In settings.json, set "files.associations": { "*.sj": "javascript" }
  3. Create a function with jsdoc parameters with types
  4. Call function and check if intellisense provides types

Copied from original issue: Microsoft/vscode#13100

Contributor guide

Open the contributing guide

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 with a .sj file, the files.associations setting in settings.json, and JSDoc-typed functions. Start by tracing how the JavaScript language service handles the associated custom extension; done means JSDoc parameter types appear in IntelliSense for .sj files as they do in .js files.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.