Skip to content

Update VS code problem matcher for style messages #784

@patricknoffke

Description

@patricknoffke

I have style checks enabled with my compilation flags, which results in messages like:

filename.adb:514:80: (style) this line is too long

These are mapped to errors in VS code using the $ada problemMatcher. Can you please update the matcher to map these to warnings or info? The code below does this, but I have to replicate it for every task. It would be nice to have it defined in the extension.

		{
			"base": "$ada",
			"severity": "warning",
			"pattern": {
				"regexp": "^([^:]:?[^:]*):(\\d+):(\\d+):\\s+(warning|)(?:[:]\\s+)?(.*)$",
				"file": 1,
				"line": 2,
				"column": 3,
				"message": 5
			}
		},
		{
			"base": "$ada",
			"severity": "warning",
			"pattern": {
				"regexp": "^([^:]:?[^:]*):(\\d+):(\\d+):\\s+(style|)(?:[:]\\s+)?(.*)$",
				"file": 1,
				"line": 2,
				"column": 3,
				"message": 5
			}
		},
		{
			"base": "$ada",
			"severity": "error",
			"pattern": {
				"regexp": "^([^:]:?[^:]*):(\\d+):(\\d+):\\s+(error|)(?:[:]\\s+)?(.*)$",
				"file": 1,
				"line": 2,
				"column": 3,
				"message": 5
			}
		}

Metadata

Metadata

Assignees

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