mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Only return documentation code action in refactor menu
This commit is contained in:
@@ -57,7 +57,7 @@ export class CodeActionDocumentationContribution extends Disposable implements I
|
||||
}
|
||||
|
||||
async provideCodeActions(_model: ITextModel, _range: Range | Selection, context: CodeActionContext, _token: CancellationToken): Promise<CodeActionList> {
|
||||
if (!context.only || !CodeActionKind.Refactor.contains(new CodeActionKind(context.only))) {
|
||||
if (CodeActionKind.Refactor.value !== context.only) {
|
||||
return {
|
||||
actions: [],
|
||||
dispose: () => { }
|
||||
|
||||
Reference in New Issue
Block a user