Skip to content

Commit

Permalink
Apply selected in Generate ToString()
Browse files Browse the repository at this point in the history
  • Loading branch information
snjeza authored and rgrunber committed Feb 28, 2024
1 parent db77113 commit b041ca4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sourceAction.ts
Expand Up @@ -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,
Expand All @@ -13,19 +14,18 @@ import {
CheckDelegateMethodsStatusRequest,
CheckHashCodeEqualsStatusRequest,
CheckToStringStatusRequest,
CleanupRequest,
GenerateAccessorsRequest,
GenerateConstructorsRequest,
GenerateDelegateMethodsRequest,
GenerateHashCodeEqualsRequest,
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);
Expand Down Expand Up @@ -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
};
});
Expand Down

0 comments on commit b041ca4

Please sign in to comment.