mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
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:
parent
252702326b
commit
774c095d5b
2 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue