fix: use correct global commands path and add missing i18n parameter

- MarketplaceManager: Use getGlobalRooDirectory() instead of extension settings path
  for global commands detection, matching SimpleInstaller behavior
- MarketplaceInstallModal: Pass name parameter to whatNextCommand translation
This commit is contained in:
Hannes Rudolph 2025-12-08 10:27:25 -07:00
parent 252702326b
commit 774c095d5b
2 changed files with 3 additions and 2 deletions

View file

@ -12,6 +12,7 @@ import { GlobalFileNames } from "../../shared/globalFileNames"
import { ensureSettingsDirectoryExists } from "../../utils/globalContext"
import { t } from "../../i18n"
import type { CustomModesManager } from "../../core/config/CustomModesManager"
import { getGlobalRooDirectory } from "../roo-config"
import { RemoteConfigLoader } from "./RemoteConfigLoader"
import { SimpleInstaller } from "./SimpleInstaller"
@ -345,7 +346,7 @@ export class MarketplaceManager {
}
// Check global commands
const globalCommandsDir = path.join(globalSettingsPath, "commands")
const globalCommandsDir = path.join(getGlobalRooDirectory(), "commands")
try {
const entries = await fs.readdir(globalCommandsDir, { withFileTypes: true })
for (const entry of entries) {

View file

@ -246,7 +246,7 @@ export const MarketplaceInstallModal: React.FC<MarketplaceInstallModalProps> = (
{item.type === "mcp"
? t("marketplace:install.whatNextMcp")
: item.type === "command"
? t("marketplace:install.whatNextCommand")
? t("marketplace:install.whatNextCommand", { name: item.id })
: t("marketplace:install.whatNextMode")}
</p>
</div>