@duckcodeailabs/dql-lsp 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# `@duckcodeailabs/dql-lsp`
|
|
2
|
+
|
|
3
|
+
Language-server primitives for DQL tooling.
|
|
4
|
+
|
|
5
|
+
This package powers completions, hover text, diagnostics, and editor integrations such as the DQL VS Code extension.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @duckcodeailabs/dql-lsp
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { DQLLanguageService } from '@duckcodeailabs/dql-lsp';
|
|
17
|
+
|
|
18
|
+
const service = new DQLLanguageService();
|
|
19
|
+
|
|
20
|
+
const diagnostics = service.validate(`
|
|
21
|
+
block revenue_by_segment {
|
|
22
|
+
type = "custom"
|
|
23
|
+
title = "Revenue by Segment"
|
|
24
|
+
}
|
|
25
|
+
`, 'blocks/revenue_by_segment.dql');
|
|
26
|
+
|
|
27
|
+
console.log(diagnostics);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Common Uses
|
|
31
|
+
|
|
32
|
+
- build editor integrations for DQL
|
|
33
|
+
- provide completions and hover docs in custom IDE tooling
|
|
34
|
+
- surface diagnostics before compile time
|
|
35
|
+
|
|
36
|
+
## Learn More
|
|
37
|
+
|
|
38
|
+
- Root docs: [`../../README.md`](../../README.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckcodeailabs/dql-lsp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "DQL Language Server Protocol implementation",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"vscode-languageserver": "^9.0.1",
|
|
25
25
|
"vscode-languageserver-textdocument": "^1.0.11",
|
|
26
|
-
"@duckcodeailabs/dql-core": "0.1.
|
|
26
|
+
"@duckcodeailabs/dql-core": "0.1.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "^5.3.0"
|