feat: [CDE-211]: vs code extension route change for gitness (#2389)

* feat: [CDE-211]: vs code extension route change for gitness
This commit is contained in:
Deepesh Kumar 2024-08-04 02:39:53 +00:00 committed by Harness
parent 4680192ba6
commit 196ee8c6d0
2 changed files with 6 additions and 3 deletions

View File

@ -327,7 +327,7 @@ const ActionMenu = ({
e.preventDefault() e.preventDefault()
e.stopPropagation() e.stopPropagation()
if (ide === IDEType.VSCODE) { 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 { } else {
window.open(url || '', '_blank') window.open(url || '', '_blank')
} }
@ -667,7 +667,10 @@ export const ListGitspaces = ({ data, refreshList }: { data: TypesGitspaceConfig
if (row?.state === GitspaceStatus.RUNNING) { if (row?.state === GitspaceStatus.RUNNING) {
if (row?.ide === IDEType.VSCODE) { 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 { } else {
window.open(row?.instance?.url || '', '_blank') window.open(row?.instance?.url || '', '_blank')
} }

View File

@ -313,7 +313,7 @@ export const GitspaceDetails = () => {
const pathparamsList = data?.space_path?.split('/') || [] const pathparamsList = data?.space_path?.split('/') || []
const projectIdentifier = pathparamsList[pathparamsList.length - 1] || '' const projectIdentifier = pathparamsList[pathparamsList.length - 1] || ''
window.open( window.open(
`vscode://harness-inc.gitspaces/${projectIdentifier}/${data?.identifier}?gitness`, `vscode://harness-inc.oss-gitspaces/${projectIdentifier}/${data?.identifier}?gitness`,
'_blank' '_blank'
) )
} else { } else {