Skip to content

Commit 8b9cb8f

Browse files
committed
Minor slop reduction pass
1 parent 7aca711 commit 8b9cb8f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

webview-ui/src/components/marketplace/MarketplaceView.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ export function MarketplaceView({ stateManager, onDone, targetTab }: Marketplace
2424
extensionState?.organizationSettingsVersion ?? -1,
2525
)
2626

27-
// Track when organization settings version changes and trigger refresh
2827
useEffect(() => {
2928
const currentVersion = extensionState?.organizationSettingsVersion ?? -1
3029
if (currentVersion !== lastOrganizationSettingsVersion) {
31-
// Organization settings version changed, refresh marketplace data
3230
vscode.postMessage({
3331
type: "fetchMarketplaceData",
3432
})

webview-ui/src/components/marketplace/__tests__/MarketplaceView.spec.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ import { MarketplaceViewStateManager } from "../MarketplaceViewStateManager"
55
import { ExtensionStateContext } from "@/context/ExtensionStateContext"
66
import { vscode } from "@/utils/vscode"
77

8-
// Mock vscode API
98
vi.mock("@/utils/vscode", () => ({
109
vscode: {
1110
postMessage: vi.fn(),
1211
},
1312
}))
1413

15-
// Mock the translation hook
1614
vi.mock("@/i18n/TranslationContext", () => ({
1715
useAppTranslation: () => ({
1816
t: (key: string) => key,

0 commit comments

Comments
 (0)