Skip to content

Commit 26a7253

Browse files
committed
temp
[ci skip]
1 parent 752d891 commit 26a7253

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

vscode/extension/src/lsp/lsp.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export class LSPClient implements Disposable {
109109
args: sqlmesh.value.args,
110110
},
111111
}
112+
const projectPaths = getSqlmeshConfiguration().projectPaths
112113
const clientOptions: LanguageClientOptions = {
113114
documentSelector: [
114115
{ scheme: 'file', pattern: '**/*.sql' },
@@ -118,7 +119,7 @@ export class LSPClient implements Disposable {
118119
diagnosticCollectionName: 'sqlmesh',
119120
outputChannel,
120121
initializationOptions: {
121-
project_paths: ['test1', 'test2'],
122+
project_paths: getSqlmeshConfiguration().projectPaths,
122123
},
123124
}
124125

@@ -259,3 +260,4 @@ export class LSPClient implements Disposable {
259260
}
260261
}
261262
}
263+

vscode/extension/tests/lineage.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test('Lineage panel renders correctly - relative project path', async ({
4040
await fs.copy(SUSHI_SOURCE_PATH, projectDir)
4141

4242
const settings = {
43-
'sqlmesh.projectPath': './projects/sushi',
43+
'sqlmesh.projectPaths': ['./projects/sushi'],
4444
'python.defaultInterpreterPath': sharedCodeServer.defaultPythonInterpreter,
4545
}
4646
await fs.ensureDir(path.join(tempDir, '.vscode'))
@@ -67,7 +67,7 @@ test('Lineage panel renders correctly - absolute project path', async ({
6767
await fs.copy(SUSHI_SOURCE_PATH, projectDir)
6868

6969
const settings = {
70-
'sqlmesh.projectPath': projectDir,
70+
'sqlmesh.projectPaths': [projectDir],
7171
'python.defaultInterpreterPath': sharedCodeServer.defaultPythonInterpreter,
7272
}
7373
await fs.writeJson(path.join(tempDir, '.vscode', 'settings.json'), settings, {
@@ -90,7 +90,7 @@ test('Lineage panel renders correctly - relative project outside of workspace',
9090
await fs.ensureDir(workspaceDir)
9191

9292
const settings = {
93-
'sqlmesh.projectPath': './../projects/sushi',
93+
'sqlmesh.projectPaths': ['./../projects/sushi'],
9494
'python.defaultInterpreterPath': sharedCodeServer.defaultPythonInterpreter,
9595
}
9696
await fs.ensureDir(path.join(workspaceDir, '.vscode'))
@@ -115,7 +115,7 @@ test('Lineage panel renders correctly - absolute path project outside of workspa
115115
await fs.ensureDir(workspaceDir)
116116

117117
const settings = {
118-
'sqlmesh.projectPath': projectDir,
118+
'sqlmesh.projectPaths': [projectDir],
119119
'python.defaultInterpreterPath': sharedCodeServer.defaultPythonInterpreter,
120120
}
121121
await fs.ensureDir(path.join(workspaceDir, '.vscode'))

0 commit comments

Comments
 (0)