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

JavaScript comment continuation on enter false positive with "//" in string literals #241125

Closed
starball5 opened this issue Feb 18, 2025 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@starball5
Copy link

starball5 commented Feb 18, 2025

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

  • VS Code Version: 1.97.2
  • OS Version: Ubuntu 24.10

Steps to Reproduce:

  1. Open a JS document
  2. Type "//".at
  3. Put the cursor before the .
  4. Press enter
  5. Observe that it started a comment
  6. Do the same thing with a comma instead of a dot

This is actually disruptive. Ex. fetch requests, which have URL as the first argument. Trying to retroactively split the rest to a new line by pressing enter now puts the right side in a commented line.

Historically related: #26694

@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 19, 2025
Copy link

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants