diff --git a/src/vs/workbench/contrib/codeActions/common/documentationContribution.ts b/src/vs/workbench/contrib/codeActions/common/documentationContribution.ts index cc26586e2b4..17cf4fa1d9f 100644 --- a/src/vs/workbench/contrib/codeActions/common/documentationContribution.ts +++ b/src/vs/workbench/contrib/codeActions/common/documentationContribution.ts @@ -57,7 +57,7 @@ export class CodeActionDocumentationContribution extends Disposable implements I } async provideCodeActions(_model: ITextModel, _range: Range | Selection, context: CodeActionContext, _token: CancellationToken): Promise { - if (!context.only || !CodeActionKind.Refactor.contains(new CodeActionKind(context.only))) { + if (CodeActionKind.Refactor.value !== context.only) { return { actions: [], dispose: () => { }