Skip to content

apvd79/vue-astro-vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Volar + Astro Auto-Import Conflict Repro

Minimal reproduction for Vue - Official + Astro extension conflict where auto-import suggestions fail in Vue template prop expressions.

Setup

npm install

No need to run the dev server — this is a VS Code language server issue.

Required Extensions

Reproduction

  1. Open this project in VS Code with both extensions enabled
  2. Open src/App.vue
  3. Place cursor inside the :icon="" prop on the <FontAwesomeIcon> component
  4. Type faLno auto-import suggestions appear

Expected

Typing faL should suggest icons like faLock, faList, etc. from @fortawesome/free-solid-svg-icons and auto-add the import on selection.

What works

Context Example Auto-import works?
Vue <script setup> import { faL█ } Yes
Vue template open tag <faL█ Yes
Vue template prop expression :icon="faL█" No
Astro component template icon={faL█} Yes

The conflict is one-directional: the Astro extension's presence breaks Volar's template prop completions, but Astro's own template completions are unaffected.

Fix

Disabling the Astro extension restores auto-import in prop contexts.

About

Minimal repo to reproduce import auto-suggestion/auto-completion conflict issue with Astro + Vue Official extensions in VS Code

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors