Skip to content

Adding an item to a project does not trigger source control OnAfterSave #1684

@landerson-j2

Description

@landerson-j2

Are you using client-side or server-side editing?: Server side editing / source control

  • VS Code Version: 1.107.0 (system setup)
  • Extension Version: vscode-objectscript 3.2.0
  • OS: Windows 11 Enterprise 24H2
  • Server $ZVERSION (if applicable): IRIS for Windows (x86-64) 2025.1.1 (Build 308_0_24556U) Wed Oct 15 2025 22:36:01 EDT

Steps to Reproduce:

  1. Enable server-side source control with an OnAfterSave method that exports the saved item to the file system. I have tested with both J2 source control and CCR source control hooks.
  2. in VS code, create a new project. When prompted, add the project to source control. A prj file is created.
  3. Add a class to the project. No update to the prj is exported.

Contrast with Studio behavior - when the project is saved, an up to date prj is exported.
VS code does not have an explicit save for projects, and while it appears that the prj is being updated on the server, the actual OnAfterSave method is never triggered.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions