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

Autocompletion deletes the following character #1124

Closed
jackroi opened this issue Oct 29, 2019 · 3 comments
Closed

Autocompletion deletes the following character #1124

jackroi opened this issue Oct 29, 2019 · 3 comments

Comments

@jackroi
Copy link

jackroi commented Oct 29, 2019

Autocompletion occasionally deletes the following character.

Environment
  • Operating System: macOS High Sierra 10.13.6 and Ubuntu 19.10 (probably also Windows 10)
  • JDK version: Oracle 13.0.1 and Oracle 12.0.2
  • Visual Studio Code version: 1.39.2
  • Java extension version: 0.52
Steps To Reproduce

I am unable to reproduce this problem consistently. But apparently it happens when I write an if or a for and I use the autocompletion inside the round brackets.
To try to reproduce the issues I suggest you to:

  1. Create a new method
  2. Insert an if
  3. Use the autocompletion to write this keyword
  4. Use autocompletion to refer to an instance field
  5. Repeat until the issue occurs (statistically it happens to me once every 5)

Here you can see an example:

vscode-autocompletion-bug

As you can see after autocompleting this the right parenthesis is gone.

Log files:

vscode-java logs.log
Java Language Server's workspace logs.log

Current Result

The right parenthesis disappears (occasionally).

Expected Result

The right parenthesis should remain.

Additional Informations

Seems related to #352

@snjeza
Copy link
Contributor

snjeza commented Nov 5, 2019

@jackroi could you try to reproduce the issue without the Visual Studio IntelliCode extension?

@jackroi
Copy link
Author

jackroi commented Nov 6, 2019

@jackroi could you try to reproduce the issue without the Visual Studio IntelliCode extension?

I've tried with Visual Studio IntelliCode extension disabled and I've never been able to reproduce the issue, while reactivating the extension it appeared again. I've tried from both macOS 10.13.6 and Ubuntu 19.10.

At this point the problem seems to be related to IntelliCode, somehow the two extensions interfere with each other. What do you think?

As a side note, the issue apparently occurs more frequently on macOS than on Ubuntu.

PS: I've updated the title of the issue, since autocompletion deletes, more generally, the following character, regardless of whether it is a parenthesis or not.

@jackroi jackroi changed the title Autocompletion deletes parenthesis Autocompletion deletes the following character Nov 6, 2019
@jdneo
Copy link
Collaborator

jdneo commented Feb 13, 2023

The completion will using insert by default now so the deleting behavior mentioned in this issue is addressed.

@jdneo jdneo closed this as completed Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants