Extraneous quote in include completion

オープン 初心者向け
#80 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

まず、リポジトリ内でinclude補完の実装とそのテストを探してください。issueには具体的なファイル名が記載されていません。VS Codeが対応する閉じ引用符をすでに挿入している場合に、補完が開き引用符をどのように処理するか確認してください。VS Codeでinclude補完を受け入れて再現し、受け入れたテキストに余分な引用符がないことを確認してください。

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

説明

bug
Version

extension & server 0.0.20

Editor

vscode 1.145.2

Operating system

Debian forky/sid (Linux x64 7.1.12+deb14-amd64)

Build system

xmake

What happened

Extraneous quote found in the include completion. mcppls assumes that user didn't type the terminating quote, but in vscode, the editor automatically adds the quote to pair the opening quote.

Completion:
Image

Accepting the completion:
Image

Not tested on other IDEs.
No diagnostic bundle provided, this is an obvious bug.

What you expected

Remove the extraneous quote.

Diagnostic bundle
  • I attached the diagnostic bundle
Diagnostic report (only if there is no bundle)

Steps to reproduce

No response

主要言語
C++
スター
25
フォーク
2
平均マージ
21時間 5分
マージ済み PR(30日)
13

環境構築

はじめの一歩

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

Sunrisepeak/mcpp-language-server のほかの issue

Sunrisepeak/mcpp-language-server の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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