Skip to content

Commit

Permalink
Update commands.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Mar 14, 2023
1 parent 4b656d3 commit 583f54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function handlerApplyTextEdits() {

if (edits.length === 1) {
const cfg = workspace.getConfiguration(Settings.sectionCSpell, doc);
if (cfg.get(propertyFixSpellingWithRenameProvider) && edits.length === 1) {
if (cfg.get(propertyFixSpellingWithRenameProvider)) {
const useReference = !!cfg.get(propertyUseReferenceProviderWithRename);
const removeRegExp = toConfigToRegExp(cfg.get(propertyUseReferenceProviderRemove) as string | undefined);
// console.log(`${propertyFixSpellingWithRenameProvider} Enabled`);
Expand Down

0 comments on commit 583f54b

Please sign in to comment.