microsoft / microsoft/vscode-cpptools
includePath support for non-local paths `ssh://` in particular
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
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
- install vscode-cpptools
- install vscode-sshfs
- configure a remote directory in user settings
- 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
}
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il malfunzionamento con lo SSH FS workspace in code-workspace e la voce ssh://repo/ in c_cpp_properties.json. Inizia tracciando come viene utilizzato includePath per IntelliSense e come vengono gestiti i percorsi supportati da FileSystemProvider; il lavoro è completo quando IntelliSense analizza i file del percorso remoto come i file locali.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, typescript
- Ambito
- developer-experience, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 32/100