Giter VIP home page Giter VIP logo

Comments (10)

nitind avatar nitind commented on August 18, 2024

I'm also seeing this in the updated Maven POM Editor if I just wait for a few moments with the cursor at the end of the start tag's name.

from lsp4e.

angelozerr avatar angelozerr commented on August 18, 2024

I'm also seeing this in the updated Maven POM Editor if I just wait for a few moments with the cursor at the end of the start tag's name.

It is a problem with linked editing range. For XML (LemMinx it should be fixed with eclipse/lemminx#1188) Once WWD will use last version of lemMinx, this error should disapear.

For HTML, it requires that vscode html language server written in TypeScript do the same fix than XML.

from lsp4e.

vrubezhny avatar vrubezhny commented on August 18, 2024

@r6squeegee Could you please try updating LSP4E from a latest snapshot - http://download.eclipse.org/lsp4e/snapshots/ - this should allow the linked editing to happen only for the element names, not the following attributes.

from lsp4e.

mickaelistria avatar mickaelistria commented on August 18, 2024

Could not reproduce with latest snapshots of LSP4E. Please reopen with details to reproduce if issue persists on your end.

from lsp4e.

mickaelistria avatar mickaelistria commented on August 18, 2024

Fix is a427c47

from lsp4e.

angelozerr avatar angelozerr commented on August 18, 2024

Are you sure that it is fixed for HTML? If yes it means HTML LS generate the same linked editing range than XML (which is fixed).

from lsp4e.

r6squeegee avatar r6squeegee commented on August 18, 2024

it works for me
thanks!

from lsp4e.

r6squeegee avatar r6squeegee commented on August 18, 2024

I think there might be a missed case in this fix.

It still happens on paste, i.e.
type:
<div></div>

and have
style="text-align:left"

in your clipboard, move the cursor back to the div tag and press paste, causes
<div style="text-align:left"></div style="text-align:left">

from lsp4e.

vrubezhny avatar vrubezhny commented on August 18, 2024

Re-opened due to the copy-paste case - #114 (comment)

from lsp4e.

vrubezhny avatar vrubezhny commented on August 18, 2024

The upstream issue is opened eclipse-platform/eclipse.platform.text#33 in order to track the copy-paste issue. The current API doesn't allow for adopters to exit the Linked Editing operation in case of pasting text that contains "stop" characters.

from lsp4e.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.