VS Code autocomplete not working after implementing import maps

before the paths directly lead to file
import * as THREE from './build/three.module.js';
and this was letting the auto autocomplete work

now the import statements are updated to
import * as THREE from 'three';
and the path is only in the ‘index.html’ file.
This works great
now auto complete is gone

anyway to bring it back ?

Any one figure this out ?

should i post this in vs code forums ?

one hacky solution is to swap imports while working

import * as THREE from 'three' //when pushing to github
import * as THREE from '../build/three.module.js' // when working locally