GitHub Copilot CLI向けC++コードインテリジェンスが公開プレビュー開始
本文の状態
日本語全文を表示中
詳細モードで約2分の本文を読めます。
MicrosoftはGitHub Copilot CLI向けにC++言語サーバーを公開プレビュー開始した。IDE同等のインテリジェンスエンジンを活用し、コマンドラインでも高精度なC++コード解析を提供する。
Continue in AI NEW LAB
このニュースを、実務の判断につなげる
AI NEW LABで、試したことや先に確認したい条件を共有できます。まずはログインなしで読めます。
AI NEW LABで論点を見るSource Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
Microsoft C++ Language Server が Copilot CLI のパブリックプレビューとして提供開始されました。Visual Studio や VS Code で使用されているのと同じインテリセンス (IntelliSense) エンジンによって駆動され、統合開発環境 (IDE) の枠を超えてコマンドラインにも正確なセマンティックデータ (semantic data) ベースの C++ コードインテリジェンスを提供します。
なぜこれが重要なのか
C++ はツールが推論を行う上で特に困難な言語です。複雑な include 階層、マクロ、テンプレート、ビルドシステム依存の設定により、テキスト検索だけでは不十分な結果しか得られません。C++ Language Server は Copilot に正確なセマンティックデータ (semantic data)(すなわち、シンボル定義、参照、コール階層、型情報)を提供し、grep スタイルの検索を補完します。
例えば、言語サーバーを使用する場合、Copilot はワークスペースシンボル検索と定義へ移動 (go-to-definition) 機能を利用して、関連コードを直接見つけ理解します。これがない場合、Copilot は反復的な grep 検索にフォールバックし、コードベース全体から無関係な結果を返すことがあります。
始め方
Microsoft C++ Language Server は、npm パッケージ (npm package) としてプレビュー版で提供されています。対応する issue-only(イシューのみ)の GitHub リポジトリにある README のクイックスタートガイドを確認してご利用ください。有効な GitHub Copilot サブスクリプションが必要です。
Microsoft C++ Language Server の要件は以下の通りです:
GitHub Copilot CLI による認証
プロジェクト用の compile_commands.json の作成
CLI での使用に向けたプロジェクト設定
issue-only の GitHub リポジトリには、CMake プロジェクト向けに第2および第3の要件を自動的に処理するスキルが含まれており、さらに手順を追って自分で設定するためのガイドも記載されています。
MSBuild ユーザー向けには、C++ MSBuild プロジェクトから compile_commands.json を抽出するのを支援するサンプルアプリケーションを作成しました。MSBuild の統合サポートは今後のリリースで予定されています。
ヒント:最適な結果を得るには、クエリに「Use the C++ LSP」を付加するか、C++ LSP(Language Server Protocol)を優先するカスタム指示ファイルを作成してください。
フィードバック
問題の報告や改善提案を行う場合は、GitHub リポジトリでイシューを開いてください。
「GitHub Copilot CLI 向け C++ コードインテリジェンスがパブリックプレビューで提供開始」の記事は、The GitHub Blog に最初に掲載されました。
原文を表示
The Microsoft C++ Language Server is now available in public preview for the Copilot CLI. Powered by the same IntelliSense engine used in Visual Studio and VS Code, it extends precise, semantic C++ code intelligence beyond the IDE to the command line.
Why this matters
C++ is uniquely difficult for tools to reason about. Complex include hierarchies, macros, templates, and build-system-dependent configurations mean text search alone gives incomplete results. The C++ Language Server provides Copilot with precise semantic data (i.e., symbol definitions, references, call hierarchies, and type information) to complement grep-style search.
For example, with the language server, Copilot uses workspace symbol search and go-to-definition to find and understand relevant code directly. Without it, Copilot falls back to iterative grep searches, which can return irrelevant results across the codebase.
Getting started
The Microsoft C++ Language Server is available in preview as an npm package. Check out the quick start guide in the README of our corresponding issue-only GitHub repository to get started. An active GitHub Copilot subscription is required.
The Microsoft C++ Language Server requires:
Authenticating with the GitHub Copilot CLI
Creating a compile_commands.json for your project
Configuring your project for use with the CLI
Our issue-only GitHub repository contains a skill that automatically handles the second and third requirement for CMake projects, as well as instructions to walk through the process yourself.
For MSBuild users, we’ve created a sample application to help extract compile_commands.json from C++ MSBuild projects. Integrated MSBuild support is planned for a future release.
Tip: For best results, append “Use the C++ LSP” to your queries or create a custom instructions file to prefer the C++ LSP.
Feedback
To report a problem or suggest an improvement, open an issue in our GitHub repository.
The post C++ code intelligence for GitHub Copilot CLI in public preview appeared first on The GitHub Blog.
同じ出来事を2媒体で確認
同じ出来事を扱う別媒体の記事です。見出しと公開時刻を比較できます。
News to Guide
ニュースの次に確認する
発表内容を、現在の料金や仕様と照らし合わせられる関連ガイドです。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み