Skip to content

import attributes have weird scopes #1005

@Jamesernator

Description

@Jamesernator

JavaScript and TypeScript Nightly version: 5.3

Code

import foo from "./foo.json" with { type: "json" };

In this code snippet

  • with has scope variable.other.readwrite.alias but it should really have something like keyword.control.with.
  • the strings within the object also have scope variable.other.readwrite.alias, but they should be using the same tokens as for other object literals

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