Skip to content

Commit 9a08130

Browse files
committed
fix: use platform vscode mcp path in host test
1 parent 538092b commit 9a08130

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/test-global-host-config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const {
2626
const {
2727
GLOBAL_HOST_IDS,
2828
resolveGlobalHostTarget,
29-
resolveGlobalHostTargets
29+
resolveGlobalHostTargets,
30+
resolveVscodeUserMcpPaths
3031
} = require('./lib/global-host-target.js')
3132
const { projectionDescriptors } = require('./lib/host-surface-descriptors.js')
3233
const {
@@ -297,7 +298,7 @@ const copilotMcp = JSON.parse(fs.readFileSync(path.join(home, '.copilot', 'mcp-c
297298
assert.strictEqual(copilotMcp.theme, 'user-owned')
298299
assert.ok(copilotMcp.mcpServers.custom)
299300
// VS Code User mcp.json co-refreshed with the same apply (global surface)
300-
const vscodeMcpPath = path.join(home, 'AppData', 'Roaming', 'Code', 'User', 'mcp.json')
301+
const vscodeMcpPath = resolveVscodeUserMcpPaths(home, env)[0]
301302
assert.strictEqual(fs.existsSync(vscodeMcpPath), true, 'apply must write VS Code User mcp.json')
302303
const vscodeMcp = JSON.parse(fs.readFileSync(vscodeMcpPath, 'utf8'))
303304
assert.ok(vscodeMcp.servers, 'VS Code mcp.json must have servers')

0 commit comments

Comments
 (0)