mirror of https://github.com/harness/drone.git
feat: [CDE-211]: vs code extension route change for gitness (#2389)
* feat: [CDE-211]: vs code extension route change for gitnesspull/3545/head
parent
4680192ba6
commit
196ee8c6d0
|
@ -327,7 +327,7 @@ const ActionMenu = ({
|
|||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
if (ide === IDEType.VSCODE) {
|
||||
window.open(`vscode://harness-inc.gitspaces/${projectIdentifier}/${identifier}?gitness`, '_blank')
|
||||
window.open(`vscode://harness-inc.oss-gitspaces/${projectIdentifier}/${identifier}?gitness`, '_blank')
|
||||
} else {
|
||||
window.open(url || '', '_blank')
|
||||
}
|
||||
|
@ -667,7 +667,10 @@ export const ListGitspaces = ({ data, refreshList }: { data: TypesGitspaceConfig
|
|||
|
||||
if (row?.state === GitspaceStatus.RUNNING) {
|
||||
if (row?.ide === IDEType.VSCODE) {
|
||||
window.open(`vscode://harness-inc.gitspaces/${projectIdentifier}/${row?.identifier}?gitness`, '_blank')
|
||||
window.open(
|
||||
`vscode://harness-inc.oss-gitspaces/${projectIdentifier}/${row?.identifier}?gitness`,
|
||||
'_blank'
|
||||
)
|
||||
} else {
|
||||
window.open(row?.instance?.url || '', '_blank')
|
||||
}
|
||||
|
|
|
@ -313,7 +313,7 @@ export const GitspaceDetails = () => {
|
|||
const pathparamsList = data?.space_path?.split('/') || []
|
||||
const projectIdentifier = pathparamsList[pathparamsList.length - 1] || ''
|
||||
window.open(
|
||||
`vscode://harness-inc.gitspaces/${projectIdentifier}/${data?.identifier}?gitness`,
|
||||
`vscode://harness-inc.oss-gitspaces/${projectIdentifier}/${data?.identifier}?gitness`,
|
||||
'_blank'
|
||||
)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue