sansarip / owlbear

An experimental Visual Studio Code extension that supports paredit-like structural-editing features for HTML, TypeScript, TypeScript-React, JavaScript, and JavaScript-React.
https://sansarip.github.io/owlbear/
MIT License
36 stars 2 forks source link

Kill full property signature when cursor is on at the start of the key #85

Closed sansarip closed 1 year ago

sansarip commented 2 years ago

Describe the bug Given my cursor is at the start of a property signature's key, when I execute the kill command, then only the key is deleted.

To Reproduce

// Before kill
type foo = {▌a: string}

// After kill
type foo = {▌: string}

Expected behavior Given my cursor is at the start of a property signature's key, when I execute the kill command, then both the full property signature should be deleted. In the example above, the after-kill result would look be type foo = {}.