Skip to content

Commit 647ed6b

Browse files
committed
fix(ui): avoid double dispatch
1 parent 8cd8501 commit 647ed6b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/activate/registerCommands.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { handleNewTask } from "./handleTask"
1515
import { CodeIndexManager } from "../services/code-index/manager"
1616
import { importSettingsWithFeedback } from "../core/config/importExport"
1717
import { MdmService } from "../services/mdm/MdmService"
18-
import { t } from "../i18n"
1918

2019
/**
2120
* Helper to get the visible ClineProvider instance or log if not found.
@@ -239,31 +238,13 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt
239238
const newMultiplier = Math.min(Math.round((currentMultiplier + 0.1) * 10) / 10, 3.0)
240239

241240
await config.update("fontSizeMultiplier", newMultiplier, vscode.ConfigurationTarget.Global)
242-
243-
const visibleProvider = getVisibleProviderOrLog(outputChannel)
244-
if (visibleProvider) {
245-
visibleProvider.postMessageToWebview({
246-
type: "action",
247-
action: "fontSizeChanged",
248-
fontSizeMultiplier: newMultiplier,
249-
})
250-
}
251241
},
252242
decreaseFontSize: async () => {
253243
const config = vscode.workspace.getConfiguration(Package.name)
254244
const currentMultiplier = config.get<number>("fontSizeMultiplier") || 1.0
255245
const newMultiplier = Math.min(Math.round((currentMultiplier - 0.1) * 10) / 10, 3.0)
256246

257247
await config.update("fontSizeMultiplier", newMultiplier, vscode.ConfigurationTarget.Global)
258-
259-
const visibleProvider = getVisibleProviderOrLog(outputChannel)
260-
if (visibleProvider) {
261-
visibleProvider.postMessageToWebview({
262-
type: "action",
263-
action: "fontSizeChanged",
264-
fontSizeMultiplier: newMultiplier,
265-
})
266-
}
267248
},
268249
})
269250

0 commit comments

Comments
 (0)