dql-language-support 1.4.4 → 1.6.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dql-language-support",
3
3
  "displayName": "DQL Language Support",
4
4
  "description": "Syntax highlighting, snippets, formatting, and language server support for DQL.",
5
- "version": "1.4.4",
5
+ "version": "1.6.2",
6
6
  "publisher": "dql",
7
7
  "license": "Apache-2.0",
8
8
  "repository": {
@@ -23,6 +23,17 @@
23
23
  "onLanguage:dql"
24
24
  ],
25
25
  "main": "./dist/extension.js",
26
+ "files": [
27
+ "dist",
28
+ "language-configuration.json",
29
+ "syntaxes",
30
+ "snippets",
31
+ "README.md",
32
+ "LICENSE.txt"
33
+ ],
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
26
37
  "contributes": {
27
38
  "languages": [
28
39
  {
package/snippets/dql.json CHANGED
@@ -40,6 +40,47 @@
40
40
  ],
41
41
  "description": "Create a reusable DQL block"
42
42
  },
43
+ "Business View": {
44
+ "prefix": "dql-business-view",
45
+ "body": [
46
+ "business_view \"${1:Customer 360}\" {",
47
+ " domain = \"${2:Customer}\"",
48
+ " status = \"${3:draft}\"",
49
+ " description = \"${4:Complete customer view for retention and account review}\"",
50
+ " owner = \"${5:customer-analytics}\"",
51
+ " terms = [\"${6:Customer}\"]",
52
+ " businessOutcome = \"${7:Understand customer value, activity, and service risk}\"",
53
+ " decisionUse = \"${8:Account planning, churn review, expansion targeting}\"",
54
+ " reviewCadence = \"${9:weekly}\"",
55
+ "",
56
+ " includes {",
57
+ " block \"${10:Customer Identity}\"",
58
+ " block \"${11:Customer Orders Rollup}\"",
59
+ " business_view \"${12:Customer Service Summary}\"",
60
+ " }",
61
+ "}"
62
+ ],
63
+ "description": "Create a DQL business composition view"
64
+ },
65
+ "Term": {
66
+ "prefix": "dql-term",
67
+ "body": [
68
+ "term \"${1:Customer}\" {",
69
+ " domain = \"${2:Customer}\"",
70
+ " type = \"${3:entity}\"",
71
+ " status = \"${4:draft}\"",
72
+ " description = \"${5:A person or account that can place orders or receive service}\"",
73
+ " owner = \"${6:customer-analytics}\"",
74
+ " tags = [\"${7:customer}\"]",
75
+ " identifiers = [\"${8:customer_id}\"]",
76
+ " synonyms = [\"${9:Account}\"]",
77
+ " businessOwner = \"${10:Customer Success}\"",
78
+ " businessRules = [\"${11:One row per customer_id}\"]",
79
+ " caveats = []",
80
+ "}"
81
+ ],
82
+ "description": "Create a DQL business term"
83
+ },
43
84
  "Workbook": {
44
85
  "prefix": "dql-workbook",
45
86
  "body": [
@@ -31,7 +31,7 @@
31
31
  "patterns": [
32
32
  {
33
33
  "name": "keyword.control.dql",
34
- "match": "\\b(dashboard|workbook|page|layout|row|span|chart|filter|param|let|import|from|use|block|domain|type|description|tags|owner|params|query|visualization|tests|assert|IN)\\b"
34
+ "match": "\\b(dashboard|workbook|page|layout|row|span|chart|filter|param|let|import|from|use|block|term|terms|business_view|includes|domain|type|description|tags|owner|params|query|visualization|tests|assert|IN)\\b"
35
35
  }
36
36
  ]
37
37
  },
@@ -1,9 +0,0 @@
1
-
2
- > dql-language-support@1.4.2 build /Users/Kranthi_1/DuckCode-DQL/DQL/dql/apps/vscode-extension
3
- > pnpm run typecheck && node ./scripts/build.mjs
4
-
5
-
6
- > dql-language-support@1.4.2 typecheck /Users/Kranthi_1/DuckCode-DQL/DQL/dql/apps/vscode-extension
7
- > tsc -p . --noEmit
8
-
9
- [dql-vscode-extension] build complete
package/.vscodeignore DELETED
@@ -1,8 +0,0 @@
1
- **/.git/**
2
- **/.turbo/**
3
- **/src/**
4
- **/scripts/**
5
- **/tsconfig.json
6
- **/*.tsbuildinfo
7
- **/*.map
8
- pnpm-lock.yaml
package/scripts/build.mjs DELETED
@@ -1,43 +0,0 @@
1
- import { mkdir } from 'node:fs/promises';
2
- import path from 'node:path';
3
- import process from 'node:process';
4
- import { context, build } from 'esbuild';
5
-
6
- const root = process.cwd();
7
- const outdir = path.join(root, 'dist');
8
- const watchMode = process.argv.includes('--watch');
9
-
10
- await mkdir(outdir, { recursive: true });
11
-
12
- const extensionBuild = {
13
- entryPoints: [path.join(root, 'src', 'extension.ts')],
14
- outfile: path.join(outdir, 'extension.js'),
15
- bundle: true,
16
- platform: 'node',
17
- format: 'cjs',
18
- sourcemap: true,
19
- target: ['node18'],
20
- external: ['vscode'],
21
- };
22
-
23
- const lspBuild = {
24
- entryPoints: [path.resolve(root, '../../packages/dql-lsp/src/cli.ts')],
25
- outfile: path.join(outdir, 'lsp-server.js'),
26
- bundle: true,
27
- platform: 'node',
28
- format: 'cjs',
29
- sourcemap: true,
30
- target: ['node18'],
31
- };
32
-
33
- if (watchMode) {
34
- const extensionCtx = await context(extensionBuild);
35
- const lspCtx = await context(lspBuild);
36
- await extensionCtx.watch();
37
- await lspCtx.watch();
38
- console.log('[dql-vscode-extension] watching extension and LSP bundles...');
39
- } else {
40
- await build(extensionBuild);
41
- await build(lspBuild);
42
- console.log('[dql-vscode-extension] build complete');
43
- }
package/src/extension.ts DELETED
@@ -1,39 +0,0 @@
1
- import * as path from 'node:path';
2
- import * as vscode from 'vscode';
3
- import { LanguageClient, LanguageClientOptions, ServerOptions, TransportKind } from 'vscode-languageclient/node';
4
-
5
- let client: LanguageClient | undefined;
6
-
7
- export async function activate(context: vscode.ExtensionContext): Promise<void> {
8
- const bundledServer = context.asAbsolutePath(path.join('dist', 'lsp-server.js'));
9
- const serverOptions: ServerOptions = {
10
- run: {
11
- module: bundledServer,
12
- transport: TransportKind.ipc,
13
- },
14
- debug: {
15
- module: bundledServer,
16
- transport: TransportKind.ipc,
17
- options: { execArgv: ['--nolazy', '--inspect=6009'] },
18
- },
19
- };
20
-
21
- const clientOptions: LanguageClientOptions = {
22
- documentSelector: [
23
- { scheme: 'file', language: 'dql' },
24
- { scheme: 'untitled', language: 'dql' },
25
- ],
26
- synchronize: {
27
- fileEvents: vscode.workspace.createFileSystemWatcher('**/*.dql'),
28
- },
29
- };
30
-
31
- client = new LanguageClient('dqlLanguageServer', 'DQL Language Server', serverOptions, clientOptions);
32
- context.subscriptions.push(client);
33
- await client.start();
34
- }
35
-
36
- export async function deactivate(): Promise<void> {
37
- if (!client) return;
38
- await client.stop();
39
- }
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "module": "CommonJS",
5
- "moduleResolution": "Node",
6
- "target": "ES2022",
7
- "lib": ["ES2022"],
8
- "outDir": "./dist",
9
- "rootDir": "./src",
10
- "types": ["node", "vscode"],
11
- "declaration": false,
12
- "declarationMap": false,
13
- "sourceMap": true,
14
- "composite": false
15
- },
16
- "include": ["src/**/*"]
17
- }