I'm running VS Code on Windows:
Version: 1.104.0 (user setup)
Commit: f220831ea2d946c0dcb0f3eaa480eb435a2c1260
Date: 2025-09-10T06:46:18.035Z
Electron: 37.3.1
ElectronBuildId: 12342881
Chromium: 138.0.7204.235
Node.js: 22.18.0
V8: 13.8.258.31-electron.0
OS: Windows_NT x64 10.0.22631
It's connected to a remote host on linux.
I've installed Perforce for VS Code [(2020 Fork) Perforce integration with VS Code's SCM features]
Identifier
mjcrouch.perforce
Version
4.16.2
Last Updated
2025-09-11, 14:54:26
VS Code opens a source code with Perforce SCM. However, extension cannot identify the perforce client in the current directory. Current directory contains correct .p4config.
Found workspace using root directory
* VS Code workspace root directory :
Client name: <client name>
Client root: <client root>
User name: <user name>
Server address: <p4port>
!! Folder IS NOT in client root - IGNORING THIS CLIENT
Folder is a correct p4 client root. I am able to run all p4 clis. However, the extension is not able to identify the client root.
I have tried using perforce.activationMode = Always.
<client name>and/or<client root>is incorrect and/or that<client root>doesn't match whatever folder you opened in VSCode. If I knew which piece of the configuration was wrong I could probably advise on how to fix it, but all of those details are absent from the question.p4 infoand verifying that the client name matches what VSCode is reporting -- then run a command on the files in that folder (the...relative path, e.g.p4 files ...), and make sure that you get valid results instead ofnot in client view. My guess is that one or both of those commands will reveal a discrepancy.p4 infoandp4 fileson the machines and they are correctly pointing to theclientanddepot. Basically, when I use CLI everything is working as expected.