Merge pull request #196166 from zobo/fix-php-validation-range

fix: invalid endCharacter value in built in PHP validation provider
This commit is contained in:
Rob Lourens 2023-11-01 14:33:22 -07:00 committed by GitHub
commit 53249fc26b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,7 +197,7 @@ export default class PHPValidationProvider {
const message = matches[1];
const line = parseInt(matches[3]) - 1;
const diagnostic: vscode.Diagnostic = new vscode.Diagnostic(
new vscode.Range(line, 0, line, Number.MAX_VALUE),
new vscode.Range(line, 0, line, 2 ** 31 - 1), // See https://github.com/microsoft/vscode/issues/80288#issuecomment-650636442 for discussion
message
);
diagnostics.push(diagnostic);