-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems without column information are always shown as column 1,1 #110561
Comments
A column is always shown in the problems panel, so have the column shown there is by design.
This is currently possible! Simple set the "problemPatterns": [
{
"name": "tsc",
"regexp": "^([^\\s].*)[\\(:](\\d+)[,:](\\d+)(?:\\):\\s+|\\s+-\\s+)(error|warning|info)\\s+TS(\\d+)\\s*:\\s*(.*)$",
"file": 1,
"line": 2,
"severity": 4,
"code": 5,
"message": 6,
"location": 2
}
], |
Good to see that To be specific: in this case
Still - the "column 1" (what the issue is about) is confusing
Hm, then I suggest to not default the column to 1 but to zero - and in the UI consider a design change "if column is zero don't show it". Even without the design change a column zero is much more clear "is related to the whole line", then the 1. @alexr00 Would you consider reopening this issue for that part? |
@sandy081 for the problems view: would you consider not rendering a start column in the view if the start column of the marker is 0? |
Not inclined to do as it causes inconsistency in UI and I think its good to show what the model has instead of hiding it. If data is invalid, probably it shall not be allowed in to the model. |
The point here is that currently a not-correct column 1 is inserted into the model and of course the UI shows what the model has. The idea is to change the model to get a not-wrong column zero inserted - and the question is: What could the UI show in this case? |
IMO UI shall show what the model has especially we have multiple UIs rendering diagnostics. CCing @jrieken for model change |
VSCode Version: 1.15.0
Steps to Reproduce:
3, the editor renders the error as underlined of col 0.
Does this issue occur when all extensions are disabled?: Yes
Expected behavior:
The text was updated successfully, but these errors were encountered: