From b041ca4f4db4ae921abc76e0bb1dbc0029cf19ee Mon Sep 17 00:00:00 2001 From: Snjezana Peco Date: Tue, 13 Feb 2024 22:06:33 +0100 Subject: [PATCH] Apply selected in Generate ToString() --- src/sourceAction.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sourceAction.ts b/src/sourceAction.ts index 6cc7e1c39..a0009a89b 100644 --- a/src/sourceAction.ts +++ b/src/sourceAction.ts @@ -4,6 +4,7 @@ import { Disposable, ExtensionContext, TextEditorRevealType, Uri, ViewColumn, co import { CodeActionParams, WorkspaceEdit } from 'vscode-languageclient'; import { LanguageClient } from 'vscode-languageclient/node'; import { Commands } from './commands'; +import { getActiveLanguageClient } from './extension'; import { AccessorCodeActionParams, AccessorCodeActionRequest, @@ -13,6 +14,7 @@ import { CheckDelegateMethodsStatusRequest, CheckHashCodeEqualsStatusRequest, CheckToStringStatusRequest, + CleanupRequest, GenerateAccessorsRequest, GenerateConstructorsRequest, GenerateDelegateMethodsRequest, @@ -20,12 +22,10 @@ import { GenerateToStringRequest, ImportCandidate, ImportSelection, ListOverridableMethodsRequest, - CleanupRequest, OrganizeImportsRequest, VariableBinding } from './protocol'; import { applyWorkspaceEdit } from './standardLanguageClient'; -import { getActiveLanguageClient } from './extension'; export function registerCommands(languageClient: LanguageClient, context: ExtensionContext) { registerOverrideMethodsCommand(languageClient, context); @@ -215,7 +215,7 @@ function registerGenerateToStringCommand(languageClient: LanguageClient, context const fieldItems = result.fields.map((field) => { return { label: `${field.name}: ${field.type}`, - picked: true, + picked: field.isSelected, originalField: field }; });