Skip to content

Commit 8ea6ac9

Browse files
authored
fix(vscode): detect tcloud.yml file as well (#4486)
1 parent a149d13 commit 8ea6ac9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ export interface SqlmeshExecInfo {
2929
export const isTcloudProject = async (): Promise<Result<boolean, string>> => {
3030
const projectRoot = await getProjectRoot()
3131
const tcloudYamlPath = path.join(projectRoot.uri.fsPath, 'tcloud.yaml')
32+
const tcloudYmlPath = path.join(projectRoot.uri.fsPath, 'tcloud.yml')
3233
const isTcloudYamlFilePresent = fs.existsSync(tcloudYamlPath)
33-
if (isTcloudYamlFilePresent) {
34-
traceVerbose(`tcloud yaml file present at : ${tcloudYamlPath}`)
34+
const isTcloudYmlFilePresent = fs.existsSync(tcloudYmlPath)
35+
if (isTcloudYamlFilePresent || isTcloudYmlFilePresent) {
36+
traceVerbose(`tcloud yaml or yml file present at : ${tcloudYamlPath}`)
3537
return ok(true)
3638
}
3739
const isTcloudInstalled = await isPythonModuleInstalled('tcloud')

0 commit comments

Comments
 (0)