extensions/typescript-language-features/src/languageFeatures/refactor.ts/TypeScriptRefactorProvider/shouldTrigger
class TypeScriptRefactorProvider:	private shouldTrigger(context: vscode.CodeActionContext) {
		if (context.only && !vscode.CodeActionKind.Refactor.contains(context.only)) {
			return false;
		}

		return context.triggerKind === vscode.CodeActionTriggerKind.Invoke;
	}