Skip to content

References code lens missing on export default in the native language server #65425

Open

Description

@k1tbyte

🔎 Search Terms

codelens, code lens, references lens, export default, export assignment, ExportAssignment, export =, tsgo, native preview, isValidReferenceLensNode

🕗 Version & Regression Information

This changed between versions 6.0 and 7.0

  • 6.0.3 (tsserver, via VS Code): references lens shown on export default arrowFn;
  • Go port, main @ 7.1.0-dev: no lens

⏯ Playground Link

No response

💻 Code

// arrow.ts
const arrowFn = () => {};
export default arrowFn;

// importer.ts
import arrowFn from "./arrow";
arrowFn();

🙁 Actual behavior

No references code lens on export default arrowFn; (same for export = value;). In 6.0 the navtree contains a leaf item for the export assignment, which VS Code uses for the lens.

🙂 Expected behavior

A "2 references" lens on arrowFn in export default arrowFn;, as in 6.0

Additional information about the issue

A fix with a fourslash test is ready: k1tbyte@8256c50

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions