Releases: botman99/P4SimpleScc
Added option to disable 'checked out' icons
Added an option to the Solution Configuration settings to disable the 'checked out' icon displayed on files that are checked out of Perforce. The code that displays this icon at the time the solution is loaded can be very, very slow if more than a few dozen files are already checked out, so there is a check at startup that will prevent this slow code from being run if you have more than 100 files already checked out.
In the Solution Configuration settings, the "Display 'checked out' icon on files that are checked out of Perforce." is disabled by default, so if you want to display the 'checked out' icon on files, you will need to check this setting.
Added ability to revert files and added checked out state icon
This update adds the ability to revert files that are checked out. When reverting a file, you will get a confirmation dialog before each file is reverted (since this can be destructive and lose changes). I've also added a "checked out" icon to the left of the file names in the Solution Explorer so that you can see which files are checked out without having to right-click on them.
Better fully support VS2026 (for reals now)
Version 3.1 didn't load properly in Visual Studio 2026 and seemed to corrupt VS2026 even after the extension was uninstalled. This seemed to be due to the Visual Studio SDK versions that were being used in the VS2022 version of P4SimpleScc. I've modified the VS2022 version SDKs so that P4SimpleScc should now actually work properly when installed in Visual Studio 2026 (since I can't upload a VS2026 specific version of this extension to Microsoft Visual Studio Marketplace).
I am still keeping the Visual Studio 2026 solution and project to make it easier to debug the VS2026 installation since Visual Studio 2026 doesn't function exactly like Visual Studio 2022.
Fully support Visual Studio 2026
This release adds full support for Visual Studio 2026. A previous release which claimed to support Visual Studio 2026 was broken and has been removed.
The Visual Studio 2022 version should work in Visual Studio 2026, but I highly recommend installing the version built specifically for Visual Studio 2026 instead.
Fully support right click menu "Check Out File" for Workspaces (i.e. "Open Folder")
Fixed the issue with right clicking on the editor tag or in the Solution Explorer for Workspaces (using "Open Folder" instead of loading a solution file) where "Check Out File" wasn't being handled properly. You should now be able to check out files in Workspaces by right clicking on the editor tag or by right clicking in the Solution Explorer menu.
There is a limitation in how the right click menu for the Solution Explorer works with Workspaces (when using "Open Folder") where if you check out a file from within Visual Studio. If you check out a file it will change the menu item "Check Out File" to be disabled (indicating the file is checked out), but if you then revert the file in P4V, the Solution Explorer right click menu will not change to enable the "Check Out File" item again (it will still be disabled). You can still check out the file by right clicking on the editor tab for that file instead of checking it out from the Solution Explorer. I was not able to find a good solution to fix this issue, but will keep looking into it to see if I can correct this limitation in the future.
Support opening folders in Visual Studio and auto detecting P4CONFIG files
Version 2.1 adds the ability to open a folder in Visual Studio and have P4SimpleScc provide source control for it (thanks @inequation). If you open a new solution or folder in Visual Studio that was not controlled by P4SimpleScc before, it will automatically check for a P4CONFIG file, and, if it's valid, P4SimpleScc will automatically be set to use it by default. You can still change the P4SimpleScc setting to 'disabled' or 'manual' if you want to override that. Any P4SimpleScc settings prior to version 2.1 should still apply even if a P4CONFIG file exists and wasn't being used before. Only new solutions or folders will automatically use the P4CONFIG file.
I forgot to mention... currently you can only check out files from folders by modifying them. The right click on the file tab in the editor or in the Solution Explorer doesn't work yet. I'm still investigating what needs to be done there.
Update version to 2.0 for the "noallwrite" clientspec change.
Modified to check if the workspace/clientspec is set to 'allwrite' or not. If not, then files should be read-only when not checked out. When modifying a file or when checking whether a file is checked out or not, see if the file is not read-only. If so, then assume the file is checked out and don't check with the Perforce server. This will save a tiny bit load on the Perforce server and allow people to work "offline" once they have all the files they need to work with already checked out.
Fix Issue #4 (file open for 'add' requires permission to edit/save)
Fix an issue where, if you have the "Prompt for permission..." checkbox checked and open a file for 'add' in Perforce, each edit or save of the file requires permission (when it should not).
Fix bug with ignored files
Fix a bug where P4SimpleScc would try to check out files that were under the workspace folder but were set to be ignored.
Forgot to add support for manually checking out a solution file
I had forgot to add support for right clicking on the solution and selecting "Check Out File" to manually check out the solution file.