includePath support for non-local paths `ssh://` in particular

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
32/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, typescript

調査の方向性

code-workspace 内の SSH FS workspace と c_cpp_properties.json の ssh://repo/ エントリで失敗を再現します。まず、IntelliSense で includePath がどのように使用されるか、また FileSystemProvider によって提供されるパスがどのように処理されるかを追跡します。IntelliSense がリモートパスのファイルをローカルファイルと同じように解析できれば完了です。

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

説明

Feature Request Language Service network drive

Type: LanguageService
----- Input information below -----

Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.

Describe the bug

  • OS and Version: Windows 7 Enterprise
  • VS Code Version: 1.25.1
  • C/C++ Extension Version: 0.17.6
  • Other extensions you installed (and if the issue persists after disabling them): SSH FS 1.9.2

IntelliSense fails to parse files provided by extensions that implement FileSystemProvider. In my case: SSH-FS https://github.com/SchoofsKelvin/vscode-sshfs/issues/27

To Reproduce

  1. install vscode-cpptools
  2. install vscode-sshfs
  3. configure a remote directory in user settings
  4. configure c_cpp_properties.js includePath to use the ssh FileSystemProvider

Expected behavior
IntelliSense should work as it does for local files

User Settings:

"sshfs.configs": [
        {
            "name": "home",
            "label": "jwieber",
            "root": "/home/jwieber",
            "host": "my.host.domain",
            "port": 1234,
            "username": "jwieber",
            "agent": "C:\\cygwin64\\bin\\ssh-agent.exe",
            "privateKeyPath": "C:\\Users\\jwieber\\.ssh\\id_rsa.ppk"
        },
        {
            "name": "repo",
            "root": "/path/to/my/repo",
            "host": "my.host.domain",
            "port": 1234,
            "username": "jwieber",
            "agent": "C:\\cygwin64\\bin\\ssh-agent.exe",
            "privateKeyPath": "C:\\Users\\jwieber\\.ssh\\id_rsa.ppk"
        }
    ]

code-workspace

{
	"folders": [		
		{
			"path": "./fdmdbsvc"
		},
		{
			"uri": "ssh://home/",
			"name": "SSH FS - home"
		},
		{
			"uri": "ssh://repo/",
			"name": "SSH FS - repo"
		}
	],
	"settings": {
		"files.associations": {
			"*.ipp": "cpp"
		}
	}
}

c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}",
                "ssh://repo/"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "compilerPath": "C:\\cygwin64\\bin\\gcc.exe",
            "intelliSenseMode": "clang-x64"
             "cStandard": "c11",
            "cppStandard": "c++17"
        }
    ],
    "version": 4
}
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

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

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

はじめの一歩

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

microsoft/vscode-cpptools のほかの issue

microsoft/vscode-cpptools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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