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

Validate code action range before passing it to providers

Fixes #80288
上级 b1a02d3d
...@@ -73,8 +73,9 @@ class CodeActionOracle extends Disposable { ...@@ -73,8 +73,9 @@ class CodeActionOracle extends Disposable {
return undefined; return undefined;
} }
for (const marker of this._markerService.read({ resource: model.uri })) { for (const marker of this._markerService.read({ resource: model.uri })) {
if (Range.intersectRanges(marker, selection)) { const markerRange = model.validateRange(marker);
return Range.lift(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.
先完成此消息的编辑!
想要评论请 注册