Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Ignore specific npm modules #82

Open
christo8989 opened this issue Jan 16, 2022 · 1 comment
Open

Enhancement: Ignore specific npm modules #82

christo8989 opened this issue Jan 16, 2022 · 1 comment

Comments

@christo8989
Copy link

I want to be able to ignore a node module from intellisense / autocomplete.

I like to follow the Clean Code idea of plugging in third party code.
So I like to create my own module to export a third party.

utilities/css.ts

import styled from 'styled-components';

export { styled };

App.tsx

const AppStyled = styled.div`
  text-align: center;
`

When I autocomplete the import for styled, I get the option styled: styled-components instead of styled: ./utilities/css.ts. Not only that, the styled-components import actually hides the file import.

App.tsx (Goal with autocomplete)

import { styled } from './utilities/css';

const AppStyled = styled.div`
  text-align: center;
`

Could there be an enhancement to ignore certain modules from autocomplete?

@ChristianKohler
Copy link
Owner

How do you autocomplete? Could you describe your steps or upload a small video?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants