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 17:47:44 -06:00 committed by GitHub
parent c7e1ecfe36
commit 41b58cd027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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)