Skip to content

Commit 4151ab9

Browse files
committed
fix: vscode tcloud fix order of checks
1 parent 31f90d0 commit 4151ab9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

vscode/extension/src/utilities/sqlmesh/sqlmesh.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,17 +390,17 @@ export const sqlmeshLspExec = async (): Promise<
390390
type: 'not_signed_in',
391391
})
392392
}
393-
const exists = await doesExecutableExist(sqlmeshLSP)
394-
if (!exists) {
395-
return err({
396-
type: 'sqlmesh_lsp_not_found',
397-
})
398-
}
399393
const ensured = await ensureSqlmeshEnterpriseInstalled()
400394
if (isErr(ensured)) {
401395
return ensured
402396
}
403397
}
398+
const exists = await doesExecutableExist(sqlmeshLSP)
399+
if (!exists) {
400+
return err({
401+
type: 'sqlmesh_lsp_not_found',
402+
})
403+
}
404404
const binPath = path.join(interpreterDetails.binPath!, sqlmeshLSP)
405405
traceLog(`Bin path: ${binPath}`)
406406
if (!fs.existsSync(binPath)) {

0 commit comments

Comments
 (0)