提交 f798663c 编写于 作者: D David Barbet

Use service in suggested actions when already available.

上级 0fbb07fe
......@@ -326,7 +326,7 @@ private SuggestedActionSet InlineActions(SuggestedActionSet actionSet)
this.AssertIsForeground();
if (_owner._codeFixService != null &&
_subjectBuffer.SupportsCodeFixes(workspace) &&
supportsFeatureService.SupportsCodeFixes(_subjectBuffer) &&
requestedActionCategories.Contains(PredefinedSuggestedActionCategoryNames.CodeFix))
{
// We only include suppressions if light bulb is asking for everything.
......@@ -641,7 +641,7 @@ private static SuggestedActionSetPriority GetSuggestedActionSetPriority(CodeActi
if (workspace.Options.GetOption(EditorComponentOnOffOptions.CodeRefactorings) &&
_owner._codeRefactoringService != null &&
_subjectBuffer.SupportsRefactorings(workspace) &&
supportsFeatureService.SupportsRefactorings(_subjectBuffer) &&
requestedActionCategories.Contains(PredefinedSuggestedActionCategoryNames.Refactoring))
{
// It may seem strange that we kick off a task, but then immediately 'Wait' on
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册