Skip to content

Symbols exported from a Deno workspace are not considered in LSP workspace #27817

Open
@nounder

Description

(Basic technical understanding about 'Deno workspace' and a 'Language Server Protocol workspace' are required to understand subtle terms used here.)


Consider following project deno.json:

{
  "workspace": [
    "./h3/"
  ]
}

and its friend ./h3/deno.json:

{
  "name": "@nounder/h3",
  "exports": "./mod.ts"
}

When I search for isStatusOk function that is exported in @nounder/h3, LSP doesn't index it:

Image

However, when I start typing function name in context of a import statement, LSP provides correct autocomplete:

Image

It think it is reasonable to make LSP index symbols defined in workspaces.

Version: Deno 2.1.7
Editors: nvim, vscode, cursor

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