Bug or undocumented procedure - Edits via VSCode Extension aren't recognized by Git

Bug or undocumented procedure - Edits via VSCode Extension aren't recognized by Git

avatar

Dear Devolutions team,


We recently configured Git Sync for our development and production PSU instance and encountered a behavior which we can't verify if this is a design "issue" (or actually intended) or a possible bug and would like to ask you for verification / clarification.


Setup

Server OS: Windows Version 21H2 Build 20348.5761

PSU Version: 2026.3.5

Client OS: Windows Version 25H2 Build 26200.9911

VS Code Version: 1.147.0

PSU VS Code Extension Version: 2026.3.5

Remote repo: Gitlab Community Edition v19.5.8


Git config

Sync Behavior: PushOnly

Credential Type: Access Token

Edit Mode: Manual

External Git Client: false

Sync Interval: 1

Git Environment Variables: none


Observed behavior (issue)

I created a test script through the PSU webUI in order to test & analyze the Git sync behavior only containing PowerShell inline comments:

# Verify-VSCodeExtensionAfterGitImplementation.ps1
# Script contents
# Test 1 - edited through PSU webui
# Test 2 - edited through VSCode PSU extension
# Test 3 - edited by another user
# test 4 - edited again through VSCode PSU extension
# Test 5 - edit through other client

When editing the script file through the PSU webUI Git recognized the changes and lets the user manually chose the file and make the commit to the remote repository just as expected.

image.png


However, if I edit the file with the same user through the VSCode extension (same user as through the webUI), the extension saves the changes to the edited script file immediately, I do see previously made changes when opening the the script file through the webUI but neither the Git section in PSU shows any pending changes to commit to the remote repo nor do I see the changes committed to Gitlab:

Gitlab_missing_commits.pngGitlab_missing_content.png


This leads to the following problems:

  1. If I want each user with edit permissions to be auditable through Git I effectively have to block their access through VSCode which we'd like to avoid since the extension makes the workflow for a developer way more convenient

  2. Even if I don't block access through the extension, if I want to make sure that each change gets pushed to the remote repo / Gitlab, I have to login through the webUI and make some sort of dummy change in order to have Git recognize the changed files so that I can commit & push the changes afterwards. Not only does this disrupt the workflow but it also creates redundant noise in the commit history.


Maybe worth mentioning: when repeating the test on our dev instance (having the "Edit Mode" set to "auto" instead of "manual") the changes seem get recognized by Git and pushed to the remote repo just as expected.


Questions

Since we checked the official docs and haven't found any information that explains this:

  1. Is this a bug or an undocumented limitation that "works as designed"?

  2. Or maybe a config issue I missed? If which settings / configs do I need to check?

  3. If it's an undocumented limitation: is there a way to use "manual" as edit in combination with the VSCode extension?


The idea is to have "auto" configured on the dev instance so that development isn't stalled by manual commits / edits but still beeng able to track applied changes while the production instance uses "manual" to make sure that applied changes have a meaningful / descriptive commit message (instead of just the edited file name) and being able to trace each applied to change to the user who applied the changes.


Please let me know if you need any further information from my side & thank you in advance for your efforts.


Best regards,

Viktor

All Comments (1)

avatar

Hi Viktor,


Thank you for the detailed write-up.


This is not a misconfiguration. I reproduced it on 2026.3.5 in our lab. In Manual mode, the Git page only shows pending changes while an edit session is open, and the VS Code extension saves without opening one. The change stays on disk, uncommitted and not pushed, until it is committed from the admin console. Whether this is a bug or an intended limitation is not confirmed yet, so I am passing it to our development team and will let you know what comes of it.


You do not need a dummy change. After saving from VS Code, follow these steps.


1. Click Edit in the top bar of the admin console.

2. Click Commit Changes. The files saved from VS Code are listed.

3. Select them, write your commit message and commit.


Do not use "Discard all & stop editing" or the discard icon on that page, as they delete the VS Code edits.


The commit carries the name of the user who commits in the console, not of the VS Code editor. If you need each change traced to its author, Automatic mode commits every save under the account the extension connects with, so each developer needs their own app token.


With Manual mode, this commit step is the way to commit extension edits, as the extension has no Git commands of its own. A request to add source control to the extension is on file, and I am adding your case to it.


Could you let me know whether the steps work on your side?


Kind regards,

Michel Audi