Skip to content

Formatter regression in v3.8.1 : method arguments not split to multiple lines, [ Private ] spacing incorrect #1766

@GendronAC

Description

@GendronAC

Are you using client-side or server-side editing?: Client-side (local filesystem copy to IRIS Instance)

  • VS Code Version: 1.116.0
  • Extension Version: 3.8.1
  • OS: Windows
  • Server $ZVERSION: IRIS for Windows (x86-64) 2025.1.4 (Build 561U) Wed Apr 1 2026 11:21:14 EDT

Steps to Reproduce:

  1. Open a .cls file containing a method with multiple parameters and a [ Private ] keyword (example below).
  2. Save the file (triggers auto-format).
  3. Observe the formatted output.

Source before save:

Method Test(a, b) [Private     ]
{
 set me = "a"
}

Result after save with v3.8.1:

Method Test(a, b) [Private     ]
{
 set me = "a"
}

Expected result (behavior confirmed working in v3.6.0):

Method Test(
	a,
	b) [ Private ]
{
 set me = "a"
}

Relevant workspace settings:

"objectscript.multilineMethodArgs": true,
"[objectscript-class]": { "editor.defaultFormatter": "intersystems.language-server" },
"editor.formatOnSave": true,
"intersystems.language-server.formatting.system.case": "word",
"intersystems.language-server.formatting.system.length": "long"

Two regressions compared to v3.6.0:

  1. Multi-line method arguments are collapsed to a single line.
  2. [ Private ] bracket spacing is incorrect — extra trailing spaces appear inside the brackets.

Note: keyword casing (e.g. methodMethod) still works correctly in v3.8.1.

Workaround: Downgrading to extension v3.6.0 fully restores correct formatting behavior. Downgrading only the Language Server did not resolve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions