-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Closed as not planned
Labels
area:ai/edit predictionUmbrella label for Copilot, Supermaven, etc. inline completions (non-Zeta-specific)Umbrella label for Copilot, Supermaven, etc. inline completions (non-Zeta-specific)area:editorFeedback for code editing, formatting, editor iterations, etcFeedback for code editing, formatting, editor iterations, etcarea:language serverAn umbrella label for all language serversAn umbrella label for all language serversarea:language server/server failureLanguage server doesn't work as expectedLanguage server doesn't work as expectedarea:languagesAn umbrella label for all programming languages syntax behaviorsAn umbrella label for all programming languages syntax behaviorsarea:languages/javascriptJavaScript programming language supportJavaScript programming language supportbugDEPRECATED label: use issue type 'Bug' insteadDEPRECATED label: use issue type 'Bug' insteadstaleLabel used by `stale` actionLabel used by `stale` action
Description
Check for existing issues
- Completed
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
- Create a new JS project:
npm create vite@latest test-js-assets-import -- --template vanilla - Open the project in Zed
- Create an
assetsdirectory in the project root and add an image file (e.g., save the following screenshot in theassetsdirectory):
- In
main.js, typeimport './assets/'and attempt to autocomplete the image file path (e.g. Command Palette >editor: show completions): - Observe that Zed fails to show the image file path in the autocomplete list
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
Metadata
Metadata
Assignees
Labels
area:ai/edit predictionUmbrella label for Copilot, Supermaven, etc. inline completions (non-Zeta-specific)Umbrella label for Copilot, Supermaven, etc. inline completions (non-Zeta-specific)area:editorFeedback for code editing, formatting, editor iterations, etcFeedback for code editing, formatting, editor iterations, etcarea:language serverAn umbrella label for all language serversAn umbrella label for all language serversarea:language server/server failureLanguage server doesn't work as expectedLanguage server doesn't work as expectedarea:languagesAn umbrella label for all programming languages syntax behaviorsAn umbrella label for all programming languages syntax behaviorsarea:languages/javascriptJavaScript programming language supportJavaScript programming language supportbugDEPRECATED label: use issue type 'Bug' insteadDEPRECATED label: use issue type 'Bug' insteadstaleLabel used by `stale` actionLabel used by `stale` action