question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autocomplete sometimes overwrites/deletes characters

See original GitHub issue

I’m not really sure how to reproduce, because it seems to happen at complete random.

if (getKilled(NpcID.MONSTER_1)) { if (getKilled(NpcID.MONSTER_2 {

Take that code for example: I replaced a previous value with MONSTER_1 using autocomplete, and it worked fine. A few lines down, I go to replace text by selecting it and start typing MONSTER_2 and autocomplete to finish typing it, and it deletes )). Sometimes it will even delete the opening bracket at the end too.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:15
  • Comments:39 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
fbriconcommented, Feb 17, 2020

You can set "java.completion.overwrite": false in your settings

3reactions
aleSaleKacommented, Sep 25, 2022

I am able to reproduce this with a Visual studio code for windows with Angular project while typing inside HTML file. I’m not sure if windows version uses same mechanics as java one for linuxes, but i will share my experience. It might be an additional problem to already defined one by OP though.

example:

<div class="myclass" *ngIf="obj.isVisible(myParam)">

The overwrite happens when the auto-completion list source is the same HTML document. I mean, if i type “obj.isVisible” for the first time, there is no auto-completion suggestion shown, but when i repeat this inside same document, but another place, it will show auto-completion and will delete characters once suggestion is confirmed. If i type “myParam” inside parenthesis and confirm auto-completion, it will delete the closing parenthesis. If my starting string was *ngIf=“obj”> and i continue to write obj.isVi and confirm the suggestion, then it will delete "> characters.

I found no issues in .ts files (as it uses type driven auto-completion i guess). Only in HTML.

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio code - VSCODE autocomplete deletes the text
When i use control + space it inserts the text like i wanted. But sometimes when i am writing it gives me the...
Read more >
Autocompletion deletes text after insertion point when editing
Autocompletion tends to erroneously delete text after the point of insertion when editing variable declarations, and possibly at other times.
Read more >
Fixed: Autocomplete is messed up in Outlook - Slipstick Systems
Users are reporting a problem in Outlook 2019, 2016, and Outlook 365: the autocomplete list is messed up. It may open upward, not...
Read more >
How to make Visual Studio IntelliSense to not automatically ...
Just switch off auto completion mode using the settting: Edit->Intellisense->Toggle Completion Mode. You can see more information here: ...
Read more >
Auto-Complete may not work - Office | Microsoft Learn
You type text in a cell in Microsoft Excel. The first few characters of the text that you type match an existing entry...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found