提交 15c5d143 编写于 作者: A Alex Ross

Don't use max number in problem matcher

Fixes #80288
上级 3867a800
......@@ -380,7 +380,7 @@ abstract class AbstractLineMatcher implements ILineMatcher {
if (startColumn !== undefined) {
return { startLineNumber: startLine, startCharacter: startColumn, endLineNumber: startLine, endCharacter: startColumn };
}
return { startLineNumber: startLine, startCharacter: 1, endLineNumber: startLine, endCharacter: Number.MAX_VALUE };
return { startLineNumber: startLine, startCharacter: 1, endLineNumber: startLine, endCharacter: 2 ** 31 - 1 }; // See https://github.com/microsoft/vscode/issues/80288#issuecomment-650636442 for discussion
}
private getSeverity(data: ProblemData): MarkerSeverity {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册