Open christo8989 opened 2 years ago
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.
styled
styled: styled-components
styled: ./utilities/css.ts
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?
How do you autocomplete? Could you describe your steps or upload a small video?
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
App.tsx
When I autocomplete the import for
styled
, I get the optionstyled: styled-components
instead ofstyled: ./utilities/css.ts
. Not only that, the styled-components import actually hides the file import.App.tsx (Goal with autocomplete)
Could there be an enhancement to ignore certain modules from autocomplete?