styled-components / vscode-styled-components

Syntax highlighting for styled-components
MIT License
917 stars 117 forks source link

No syntax and highlight when using namespaces for types of the props #407

Open mrdoinel opened 1 year ago

mrdoinel commented 1 year ago

Description No syntax and highlight when using namespace for types of the props (for example types are like that : Namespace.InterfaceOrTypename)

Screenshot

Capture d’écran 2023-03-27 à 10 27 03

To Reproduce
Create a typescript declaration file with namespace in your codebase.

declare namespace Namespace {
  interface HeadingProps {
    primary?: boolean;
    title: string;
  }
}

namespace.d.ts

Expected behavior
Full support of Typescript with this extension

Build environment :