Subject: Re: bug#60689: 29.0.60; typescript-ts-mode and tsx-ts-mode does not highlight imports as variables [PATCH]

From: Yuan Fu <[email-masked]>
Date: Mon, 9 Jan 2023 20:07:29 -0800

Jostein Kjønigsen <[email-masked]> writes:

> When importing packages/functions/whatever in typescript using import-statements, the imported entities are not
> highlighted.
>
> This differs from when using require() syntax.
>
> import jwt from "jsonwebtoken";        // jwt -not- highlighted
> import { verify } from "jsonwebtoken"; // verify -not- highlighted
> const jwt = require("jsonwebtoken");   // jwt is highlighted.
>
> Attached is a patch which updates typescript-ts-mode and tsx-ts-mode to highlight these imports properly.

Thanks! I applied the patch. I’ll add similar fixes to js-ts-mode.

Yuan