ts-namespace-import-plugin icon indicating copy to clipboard operation
ts-namespace-import-plugin copied to clipboard

Auto import code fix missing when namespace matches global

Open OliverJAsh opened this issue 11 months ago • 0 comments

tsconfig.common.json:

{
  "compilerOptions": {
    "plugins": [
      {
        "name": "@unsplash/ts-namespace-import-plugin",
        "namespaces": {
          "URL": {
            "importPath": "shared/facades/URL"
          },
        }
      }
    ]
  }
}

playground/src/main.ts:

import { pipe } from 'shared/facades/function';

URL.unsafeParse(import.meta.url);

pipe(import.meta.url, URL.unsafeParse).pathname;

Expected: import suggestion for URL

Actual: no import suggestion for URL

image image

OliverJAsh avatar Mar 12 '24 12:03 OliverJAsh