redhat-developer / redhat-developer/vscode-java

Auto-complete deletes code right of the cursor when key is pressed fast

未关闭
#1,737 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

content-assist
主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

When I press enter or tab to apply the auto-completion it removes all the code from the right of the cursor. For example:
I have the code enemy.attack(enemy.getAttack());
If I want to auto-complete the enemy.getAttack() part it will detele the bracket and the semicolon after the method is inserted. I've tested on 3 different machines with different code and it still happens. But only when I press enter or tab fast after the auto-completion window pops up. If I wait a bit and then hit enter it inserts correctly.

Environment
  • Operating System: Windows 10 20H2
  • JDK version: 15.0.1
  • Visual Studio Code version: 1.51.1
  • Java extension version: 0.72.0
Steps To Reproduce
  1. Auto-complete code with enter or tab FAST after the window pops up

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在不同速度下使用 Enter 和 Tab 重现 Visual Studio Code 中的补全行为,并在可用时使用列出的 Java 和扩展版本。比较快速和延迟的情况,并跟踪补全应用路径;完成的标准是应用补全后,光标右侧的括号、分号和所有代码都得到保留。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript, vscode
领域
developer-experience, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。