Autocomplete fails for image asset imports in JavaScript files #18173
Labels
bug
[core label]
editor
Feedback for code editing, formatting, editor iterations, etc
inline completion
Umbrella label for Copilot, Supermaven, etc. completions
javascript
JavaScript programming language support
language server failure
Language server doesn't work as expected
language server
An umbrella label for all language servers
language
An umbrella label for all programming languages syntax behaviors
Check for existing issues
Describe the bug / provide steps to reproduce it
Zed struggles to correctly resolve or autocomplete paths when importing image assets (e.g.,
.png
) in JavaScript files.Steps to reproduce
npm create vite@latest test-js-assets-import -- --template vanilla
assets
directory in the project root and add an image file (e.g., save the following screenshot in theassets
directory):main.js
, typeimport './assets/'
and attempt to autocomplete the image file path (e.g. Command Palette >editor: show completions
):Environment
Zed: v0.155.0 (Zed Nightly f8195c4)
OS: macOS 14.6.1
Memory: 18 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: