mirror of https://github.com/coder/coder.git
fix: open VS Code Remote in the same window to prevent flashing (#5684)
Fixes #5676.
This commit is contained in:
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)
|
||||
|
|
Loading…
Reference in New Issue