mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: open VS Code Remote in the same window to prevent flashing (#5684)
Fixes #5676.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user