fix: open VS Code Remote in the same window to prevent flashing (#5684)

Fixes #5676.
This commit is contained in:
Kyle Carberry
2023-01-11 23:47:44 +00:00
committed by GitHub
parent c7e1ecfe36
commit 41b58cd027
@@ -33,10 +33,7 @@ export const VSCodeDesktopButton: FC<
query.set("agent", agentName)
}
window.open(
`vscode://coder.coder-remote/open?${query.toString()}`,
"_blank",
)
location.href = `vscode://coder.coder-remote/open?${query.toString()}`
})
.catch((ex) => {
console.error(ex)