Skip to content

Commit 926bfa0

Browse files
committed
temp
[ci skip]
1 parent 00c8565 commit 926bfa0

7 files changed

Lines changed: 30 additions & 113 deletions

File tree

package-lock.json

Lines changed: 21 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vscode/bus/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"noEmit": true,
99
"moduleResolution": "node",
1010
"baseUrl": "./",
11+
"types": ["jest"]
1112
},
1213
"include": ["src/**/*"]
1314
}

vscode/extension/src/extension.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,4 @@ export async function deactivate() {
307307
}
308308
await deactivateLsp();
309309
}
310-
<<<<<<< HEAD
311310

312-
>>>>>>> c5ee2535 (progress)
313-
=======
314-
>>>>>>> 0b5bbfc9 (trying to implement lsp)

vscode/extension/src/lsp/lsp.ts

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< HEAD
21
import { window, OutputChannel, Disposable } from "vscode"
32
import { ServerOptions, LanguageClientOptions, LanguageClient, TransportKind } from "vscode-languageclient/node"
43
import { sqlmesh_lsp_exec } from "../utilities/sqlmesh/sqlmesh"
@@ -88,69 +87,3 @@ export class LSPClient implements Disposable {
8887
await this.stop()
8988
}
9089
}
91-
=======
92-
import path from "path";
93-
import { workspace, ExtensionContext, OutputChannel, window } from "vscode";
94-
import { ServerOptions, LanguageClientOptions, LanguageClient, TransportKind } from "vscode-languageclient/node";
95-
import { sqlmesh_exec, sqlmesh_lsp_exec } from "../sqlmesh/sqlmesh";
96-
import { err, isErr, ok, Result } from "../functional/result";
97-
import { getWorkspaceFolders } from "../common/vscodeapi";
98-
99-
let client: LanguageClient;
100-
101-
export async function activateLsp(context: ExtensionContext): Promise<Result<undefined, string>> {
102-
const sqlmesh = await sqlmesh_lsp_exec()
103-
if (isErr(sqlmesh)) {
104-
return sqlmesh
105-
}
106-
const workspaceFolders = getWorkspaceFolders()
107-
if (workspaceFolders.length !== 1) {
108-
return err("Invalid number of workspace folders")
109-
}
110-
const outputChannel: OutputChannel = window.createOutputChannel('sqlmesh_actual_lsp_implementation');
111-
112-
let folder = workspaceFolders[0]
113-
const workspacePath = workspaceFolders[0].uri.fsPath
114-
let serverOptions: ServerOptions = {
115-
run: {
116-
command: sqlmesh.value.bin,
117-
transport: TransportKind.stdio,
118-
options: {
119-
cwd: workspacePath,
120-
},
121-
},
122-
debug: {
123-
command: sqlmesh.value.bin,
124-
transport: TransportKind.stdio,
125-
options: {
126-
cwd: workspacePath,
127-
}
128-
}
129-
}
130-
let clientOptions: LanguageClientOptions = {
131-
documentSelector: [
132-
{ scheme: 'file', pattern: `**/*.sql` }
133-
],
134-
workspaceFolder: folder,
135-
diagnosticCollectionName: 'sqlmesh',
136-
outputChannel: outputChannel,
137-
// synchronize: {
138-
// fileEvents: workspace.createFileSystemWatcher('**/*.{sql,py}'),
139-
// }
140-
}
141-
142-
client = new LanguageClient('sqlmesh-lsp-example', 'SQLMesh Language Server', serverOptions, clientOptions)
143-
console.log('Starting language client')
144-
client.start()
145-
146-
console.log('Language client started')
147-
return ok(undefined)
148-
}
149-
150-
export async function deactivateLsp() {
151-
if (client) {
152-
await client.stop()
153-
}
154-
}
155-
156-
>>>>>>> 0b5bbfc9 (trying to implement lsp)

vscode/extension/tsconfig.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"rootDir": "src",
1111
"strict": true, /* enable all strict type-checking options */
1212
/* Additional Checks */
13-
<<<<<<< HEAD
1413
"noImplicitReturns": true,
1514
"noFallthroughCasesInSwitch": true,
1615
"noUnusedParameters": true,
@@ -23,22 +22,6 @@
2322
"src/**/*",
2423
"../bus/src/**/*"
2524
],
26-
=======
27-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
28-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
29-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
30-
"paths": {
31-
"@bus/*": ["../bus/src/*"]
32-
}
33-
},
34-
<<<<<<< HEAD
35-
>>>>>>> c5ee2535 (progress)
36-
=======
37-
"include": [
38-
"src/**/*",
39-
"../bus/src/**/*"
40-
],
41-
>>>>>>> 65a751d1 (added ability to open files)
4225
"exclude": [
4326
"node_modules", "../node_modules"
4427
]

vscode/react/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
"scripts": {
66
"start": "vite --port 3000",
77
"dev": "vite",
8-
"build": "vite build && tsc",
8+
"build": "vite build",
99
"serve": "vite preview",
1010
"test": "vitest run",
11-
"generate:api": "orval --config ./orval.config.ts"
11+
"generate:api": "orval --config ./orval.config.ts",
12+
"lint": "tsc --noEmit"
1213
},
1314
"dependencies": {
1415
"@tailwindcss/postcss": "^4.1.3",
@@ -19,15 +20,15 @@
1920
"@tanstack/router-plugin": "^1.114.3",
2021
"apache-arrow": "^19.0.1",
2122
"orval": "^7.8.0",
22-
"react": "^19.0.0",
23-
"react-dom": "^19.0.0",
23+
"react": "^18.2.0",
24+
"react-dom": "^18.2.0",
2425
"tailwindcss": "^4.1.3"
2526
},
2627
"devDependencies": {
2728
"@testing-library/dom": "^10.4.0",
2829
"@testing-library/react": "^16.2.0",
29-
"@types/react": "^19.0.8",
30-
"@types/react-dom": "^19.0.3",
30+
"@types/react": "^18.2.0",
31+
"@types/react-dom": "^18.2.0",
3132
"@vitejs/plugin-react": "^4.3.4",
3233
"jsdom": "^26.0.0",
3334
"typescript": "^5.7.2",

vscode/react/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"jsx": "react-jsx",
66
"module": "ESNext",
77
"lib": ["ES2022", "DOM", "DOM.Iterable"],
8-
"types": ["vite/client"],
8+
"types": ["vite/client", "react", "react-dom"],
99

1010
/* Bundler mode */
1111
"moduleResolution": "bundler",

0 commit comments

Comments
 (0)