microsoft / microsoft/vscode-languageserver-node
Triggering on type formatting on deletions
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 404
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 14
Description
Generally, on type formatting is used to autocomplete code as the developer types specific characters. However, there are also use cases for doing similar operations on deletions.
For example, when doing string interpolation in Ruby, we are currently closing brace automatically using on type formatting (from "#{" to "#{}"), but we'd also be interested in removing that closing brace in case the user deletes the opening one with backspace (from "#{}" to "#"). There are other use cases involving end tokens and pipes too.
Is it possible to trigger on type formatting on backspace? And if so, what's the trigger character?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the on-type formatting API and the issue discussion about backspace behavior. No file or test is named in the report; completion would require a decided protocol design for deletion triggers and corresponding implementation or specification tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100