镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

"import" is highlighted as a keyword in Node.js "import.meta.dirname" expression #1071

Open

Description

@hisbvdis

JavaScript and TypeScript Nightly version: 6.0.20260416

Code

import path from "naode:path";

import.meta.dirname;

Issue

In "textmate scopes" section the "keyword.control.import.js" token is shown.
But this "import" word is not a "keyword".

Steps to reproduce

  1. Open .js file
  2. Write import.meta.dirname
  3. Click "import" word
  4. Press "Ctrl+Shift+P" type and select "Developer: Inspect Editor Tokens and Scopes"
🖼️ Screenshot

Image

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