提交 4934a6f4 编写于 作者: M Matt Bierner

Validate code action range before passing it to providers

Fixes #80288
上级 b1a02d3d
......@@ -73,8 +73,9 @@ class CodeActionOracle extends Disposable {
return undefined;
}
for (const marker of this._markerService.read({ resource: model.uri })) {
if (Range.intersectRanges(marker, selection)) {
return Range.lift(marker);
const markerRange = model.validateRange(marker);
if (Range.intersectRanges(markerRange, selection)) {
return Range.lift(markerRange);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册