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] code completion replaces text after cursor #41206

Open
mhopkins-dynactive opened this issue Jan 5, 2018 · 2 comments
Open

[html] code completion replaces text after cursor #41206

mhopkins-dynactive opened this issue Jan 5, 2018 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality html HTML support issues
Milestone

Comments

@mhopkins-dynactive
Copy link

mhopkins-dynactive commented Jan 5, 2018

  • VSCode Version: 1.19.1
  • OS Version: MacOS Sierra

Steps to Reproduce:

  1. Put some html in and html page with some text <div>Hello my name is ....</div>
  2. Then before hello type a tag (ie strong "<str" )
  3. Hit tab to have it expand strong.
  4. Notice that hello is consumed.

Here is a video that shows the bug in action.

https://dev-dynactivesoftware.appspot.com/?blobWSK=ahdzfmRldi1keW5hY3RpdmVzb2Z0d2FyZXKkAgsSEUJsb2JzdG9yZU1ldGFkYXRhIowCQU1JZnY5NVpoMndHX0RzVVJyaFJObFN2OV9pOWlBR2dsQm5BMHhzNWRFT1ZELS04Rmd2SnI2Mk52N0VESFI4S0Z2MnhZLUI1RFp0NGFUT3pOa3BvUnpFRUR0MHJFQy1PQ0JlQkRlalFYVmdZR0poV1liVUJfWDhXTUpjYmRJYXVVckFBTG1BZjhJODM1NFBLVDhuY0NDOWdkb05HN0F5NkZhVm9XT3hUcThVakVUNHZZUERIWTVHcHI3LXZUZjE2Y2Ixay02aVNtQXdYN0EybkdfNmF3aTUyajlxRm9wcDU4eUtodHo3dEVEd0FKdXFsckE5UFVwUGZsX3k3UVE0TTRPZnJKWnZXTHd0RwyiAQZkcy5jbXM

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

I didn't check because I couldn't figure out how to do this. I opened the command typed the suggested line and I got.

-bash: code: command not found

@ramya-rao-a ramya-rao-a added bug Issue identified by VS Code Team member as probable bug emmet Emmet related issues labels Jan 7, 2018
@ramya-rao-a ramya-rao-a added this to the December 2017/January 2018 milestone Jan 7, 2018
@ramya-rao-a ramya-rao-a added html HTML support issues and removed emmet Emmet related issues labels Jan 12, 2018
@ramya-rao-a ramya-rao-a assigned aeschli and unassigned ramya-rao-a Jan 12, 2018
@ramya-rao-a
Copy link
Contributor

@aeschli This is due to the completions coming from the html extension

@ramya-rao-a ramya-rao-a removed this from the January 2018 milestone Jan 12, 2018
@aeschli aeschli changed the title HTML Expand kills text [html] code completion replaces text after cursor Jan 12, 2018
@aeschli
Copy link
Contributor

aeschli commented Jan 12, 2018

The current design is to replace the word after the cursor. That's what you expect when you modify an existing tag, which is feature used very often.
So the current workaround is to add a space first.

@aeschli aeschli added feature-request Request for new features or functionality and removed bug Issue identified by VS Code Team member as probable bug labels Jan 12, 2018
@aeschli aeschli added this to the Backlog milestone Jan 12, 2018
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

3 participants