From 904951e31f3279c8356cab225ceb4b44e9d1e3c8 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Mon, 13 Jan 2020 20:18:56 -0800 Subject: [PATCH] Only return documentation code action in refactor menu --- .../contrib/codeActions/common/documentationContribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: () => { }