microsoft / microsoft/TypeScript

Document link for reference types and path

Open
#58,281 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting More Feedback Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

🔍 Search Terms

In js, we can have

/// <reference types="tree-sitter-cli/dsl" />
// or
/// <reference path="node_modules/tree-sitter-cli/dsl.d.ts" />
/// <reference types="@types/firefox-webext-browser" />

Can we have a document link for file://$PWD/node_modules/tree-sitter-cli/dsl.d.ts and file://$PWD/node_modules/@types/firefox-webext-browser/index.d.ts?

✅ Viability Checklist
⭐ Suggestion

Add document link for LSP

📃 Motivating Example

Easier to jump the path by document link

And maybe we can have completion for /// <reference types="|" />, where | is cursor.

💻 Use Cases
  1. What do you want to use this for?
  2. What shortcomings exist with current approaches?
  3. What workarounds are you using in the meantime?

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

Start by tracing the LSP handling for the triple-slash reference types and path directives described in the issue. Check how the language service resolves these references, then verify that the requested file targets expose document links; treat completion as separate scope unless clarified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.