Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Inappropriate format on type for `if ()` blocks

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
r

調査の方向性

Look at the format-on-type logic in the language server, likely in a file handling R syntax or auto-completion. Reproduce the bug locally by enabling format on type in VSCode with the extension. Check where if (TRUE) triggers the insertion of f( and a curly brace, and ensure a proper closing brace is added instead. Test the fix by writing if (TRUE) and pressing return to see if it formats correctly.

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

説明

bug

Describe the bug

Inappropriate format on type for if () blocks

I have no idea if it is a vscode-R, languageserver, or styler issue.

To Reproduce

  1. Enable Format On Type ("editor.formatOnType": true)
  2. In an Editor, write if (TRUE) and press return
  3. A curly brace and f( are added as follows:
if (TRUE) {
    f(

Can you fix this issue by yourself? (We appreciate the help)

No

Expected behavior

No function call (f() should be added and a closing brace should be added (so the added code is not invalid).

Environment (please complete the following information):

  • OS: Fedora Linux 41
  • VSCode Version: VSCodium 1.107.18627
  • R Version: 4.4.3
  • vscode-R version: 2.8.6
主要言語
R
スター
675
フォーク
118
平均マージ
1日 11時間
マージ済み PR(30日)
11

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

REditorSupport/languageserver のほかの issue

REditorSupport/languageserver の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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