Skip to content

[Bug]: VSCode GNAT Project file syntax highlighting uses incorrect color locations when indenting with tabs #1298

@MegaKonami

Description

@MegaKonami

Environment

  • OS and Version: Windows 64-bit
  • IDE Version: VSCode 1.116.0
  • Ada & SPARK Extension Version: 2026.2.202604091

Bug Summary and Reproducer

Bug Summary:
The position of syntax highlighting markers for GNAT Project files (.gpr) is incorrectly offset when using tabs instead of spaces for indention.

Steps to reproduce:

  1. Create a GPR file (using indenting)
  2. If indenting with spaces, convert Indenting to tabs
  3. Observe

Expected behavior:
Coloration would correlate to keyword positions.

Configuration and Logs

{
  "editor.detectIndentation": false,
  "editor.tabSize": 3,
  "editor.insertSpaces": false
}

Other VS Code Extensions

No response

Additional context

With Spaces:
.vscode/settings.json

{
  "editor.detectIndentation": false,
  "editor.indentSize": "tabSize",
  "editor.tabSize": 3,
  "editor.insertSpaces": true
}
Image

With Tabs:
.vscode/settings.json

{
  "editor.detectIndentation": false,
  "editor.indentSize": "tabSize",
  "editor.tabSize": 3,
  "editor.insertSpaces": false
}
Image

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions