Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] Path completion isn’t working with the srcset attribute #175807

Open
rsgranne opened this issue Mar 1, 2023 · 3 comments
Open

[html] Path completion isn’t working with the srcset attribute #175807

rsgranne opened this issue Mar 1, 2023 · 3 comments
Assignees
Labels
feature-request Request for new features or functionality html HTML support issues
Milestone

Comments

@rsgranne
Copy link

rsgranne commented Mar 1, 2023

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.76.0 (Universal)
  • OS Version: macOS Ventura 13.2.1 / Darwin arm64 22.3.0

Steps to Reproduce:

  1. Use Emmet or manually type in the following tag: <img src="" srcset="">
  2. Position your cursor inside the "" for src & type a /. You can now use autocomplete to complete the path to the image you wish, e.g., /images/products/foo.jpg — perfect!
  3. Position your cursor inside the "" for srcset & type a /. You cannot use autocomplete to easily enter in the path to the image you wish, e.g., /images/products/foo.webp. You have to manually type out the path. This is a problem. Autocomplete should work in both src AND in srcset.
@lucytesco
Copy link

lucytesco commented Apr 4, 2023

I am also having this issue - anyone figured out how to fix it?

Update: it wasn't working for me when I set each image in the srcset using 1x, 2x, 3x however when using 400w, 800w, 1200w it did work. Not sure what that means, but it's solved the problem for me! (If you can't tell, I'm a bit of a beginner :) )

hail2u added a commit to hail2u/hail2u.net that referenced this issue Apr 7, 2023
@MrBtr
Copy link

MrBtr commented May 5, 2023

Hello!
I have got the same issue. Wish I knew where the problem comes from, and how to fix it (if possible at all), cause it makes a bit of a nuisance.

@aeschli aeschli changed the title Path completion isn’t working with the srcset attribute [html] Path completion isn’t working with the srcset attribute May 9, 2023
@aeschli aeschli added html HTML support issues feature-request Request for new features or functionality labels May 9, 2023
@aeschli aeschli added this to the Backlog milestone May 9, 2023
@lucytesco
Copy link

lucytesco commented May 30, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality html HTML support issues
Projects
None yet
Development

No branches or pull requests

5 participants