redhat-developer / redhat-developer/vscode-java

Next line cursor when we have multiple line statement is not acting correctly.

オープン
#2,098 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

content-assist ux
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

At the end of a statement (i.e. ends with ";") the new cursor does not go to the beginning of the line but align with the previous line. I attached a screenshot to demonstrate the issue.

Screenshot 2021-09-05 at 19 20 03

When I "enter" to go the the next line, the new cursor start at the column of ".blocki...". It should be the beginning of the line which is the column "web3...." instead.

Environment
  • Operating System: Intel Mac OS
  • JDK version: JDK 11
  • Visual Studio Code version: 1.60.0
  • Java extension version: v0.81.0
Steps To Reproduce
  1. Type a normal java statement for example:
log.info("my test " +
        "statement");
  1. Press enter to go to the next line.
Current Result

The cursor in the next line at the column of "statement"

Expected Result

It should be the beginning of the line which is column of log.info...

Additional Informations

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Visual Studio Code 1.60.0、JDK 11、Java extension v0.81.0 を使用し、issue に示されている複数行の log.info 文でカーソル配置の問題を再現します。セミコロンの後で Enter を押すと、カーソルが継続行の下ではなく、文のインデントの先頭に配置されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。