inline-sql-toolkit 0.4.7

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 ADDED
@@ -0,0 +1,234 @@
1
+ {
2
+ "name": "inline-sql-toolkit",
3
+ "displayName": "Inline SQL Toolkit",
4
+ "description": "Highlight and manually format safe inline SQL in Python.",
5
+ "publisher": "hidenobunagai",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/hidenobunagai/inline-sql-toolkit.git"
9
+ },
10
+ "homepage": "https://github.com/hidenobunagai/inline-sql-toolkit#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/hidenobunagai/inline-sql-toolkit/issues"
13
+ },
14
+ "version": "0.4.7",
15
+ "icon": "icon.png",
16
+ "type": "module",
17
+ "bin": {
18
+ "inline-sql-toolkit": "dist/cli.js"
19
+ },
20
+ "engines": {
21
+ "vscode": "^1.95.0",
22
+ "node": ">=20"
23
+ },
24
+ "main": "./dist/extension.js",
25
+ "activationEvents": [
26
+ "onLanguage:python",
27
+ "onLanguage:mo-python"
28
+ ],
29
+ "capabilities": {
30
+ "untrustedWorkspaces": {
31
+ "supported": "limited",
32
+ "description": "%untrustedWorkspaces.description%",
33
+ "restrictedConfigurations": []
34
+ }
35
+ },
36
+ "contributes": {
37
+ "commands": [
38
+ {
39
+ "command": "inlineSql.formatAtCursor",
40
+ "title": "%command.formatAtCursor.title%",
41
+ "description": "%command.formatAtCursor.description%"
42
+ },
43
+ {
44
+ "command": "inlineSql.formatSelection",
45
+ "title": "%command.formatSelection.title%",
46
+ "description": "%command.formatSelection.description%"
47
+ },
48
+ {
49
+ "command": "inlineSql.formatAll",
50
+ "title": "%command.formatAll.title%",
51
+ "description": "%command.formatAll.description%"
52
+ }
53
+ ],
54
+ "configuration": {
55
+ "title": "%configuration.title%",
56
+ "properties": {
57
+ "inlineSql.format.keywordCase": {
58
+ "type": "string",
59
+ "enum": [
60
+ "upper",
61
+ "lower",
62
+ "preserve"
63
+ ],
64
+ "default": "upper",
65
+ "scope": "resource",
66
+ "description": "%configuration.format.keywordCase.description%"
67
+ },
68
+ "inlineSql.format.indentWidth": {
69
+ "type": "integer",
70
+ "default": 2,
71
+ "minimum": 1,
72
+ "maximum": 8,
73
+ "scope": "resource",
74
+ "description": "%configuration.format.indentWidth.description%"
75
+ },
76
+ "inlineSql.format.wrapAfter": {
77
+ "type": "integer",
78
+ "default": 88,
79
+ "minimum": 20,
80
+ "maximum": 500,
81
+ "scope": "resource",
82
+ "description": "%configuration.format.wrapAfter.description%"
83
+ },
84
+ "inlineSql.format.useSpaceAroundOperators": {
85
+ "type": "boolean",
86
+ "default": true,
87
+ "scope": "resource",
88
+ "description": "%configuration.format.useSpaceAroundOperators.description%"
89
+ },
90
+ "inlineSql.format.replaceOrdinals": {
91
+ "type": "boolean",
92
+ "default": true,
93
+ "scope": "resource",
94
+ "description": "%configuration.format.replaceOrdinals.description%"
95
+ },
96
+ "inlineSql.format.dialect": {
97
+ "type": "string",
98
+ "enum": [
99
+ "sql",
100
+ "mysql",
101
+ "postgresql",
102
+ "sqlite"
103
+ ],
104
+ "default": "postgresql",
105
+ "scope": "resource",
106
+ "description": "%configuration.format.dialect.description%"
107
+ }
108
+ }
109
+ },
110
+ "grammars": [
111
+ {
112
+ "scopeName": "inline-sql.injection",
113
+ "path": "./syntaxes/inline-sql.tmLanguage.json",
114
+ "injectTo": [
115
+ "source.python",
116
+ "source.mo-python"
117
+ ],
118
+ "embeddedLanguages": {
119
+ "meta.embedded.sql": "sql"
120
+ }
121
+ }
122
+ ],
123
+ "semanticTokenTypes": [
124
+ {
125
+ "id": "inlineSqlKeyword",
126
+ "superType": "keyword",
127
+ "description": "%semanticTokenTypes.inlineSqlKeyword.description%"
128
+ },
129
+ {
130
+ "id": "inlineSqlString",
131
+ "superType": "string",
132
+ "description": "%semanticTokenTypes.inlineSqlString.description%"
133
+ },
134
+ {
135
+ "id": "inlineSqlNumber",
136
+ "superType": "number",
137
+ "description": "%semanticTokenTypes.inlineSqlNumber.description%"
138
+ },
139
+ {
140
+ "id": "inlineSqlOperator",
141
+ "superType": "operator",
142
+ "description": "%semanticTokenTypes.inlineSqlOperator.description%"
143
+ },
144
+ {
145
+ "id": "inlineSqlComment",
146
+ "superType": "comment",
147
+ "description": "%semanticTokenTypes.inlineSqlComment.description%"
148
+ },
149
+ {
150
+ "id": "inlineSqlIdentifier",
151
+ "description": "%semanticTokenTypes.inlineSqlIdentifier.description%"
152
+ }
153
+ ],
154
+ "semanticTokenScopes": [
155
+ {
156
+ "scopes": {
157
+ "inlineSqlKeyword": [
158
+ "keyword.other.sql",
159
+ "keyword"
160
+ ],
161
+ "inlineSqlString": [
162
+ "string.quoted.sql",
163
+ "string.quoted.double.sql",
164
+ "string.quoted.single.sql",
165
+ "string"
166
+ ],
167
+ "inlineSqlNumber": [
168
+ "constant.numeric.sql",
169
+ "constant.numeric"
170
+ ],
171
+ "inlineSqlOperator": [
172
+ "keyword.operator.sql",
173
+ "keyword.operator"
174
+ ],
175
+ "inlineSqlComment": [
176
+ "comment.line.double-dash.sql",
177
+ "comment.block.sql",
178
+ "comment"
179
+ ],
180
+ "inlineSqlIdentifier": [
181
+ "source.sql"
182
+ ]
183
+ }
184
+ }
185
+ ]
186
+ },
187
+ "packageManager": "bun@1.3.8",
188
+ "scripts": {
189
+ "build": "bun tools/build.ts",
190
+ "format:check": "prettier --check .",
191
+ "lint": "eslint .",
192
+ "typecheck": "tsc --noEmit",
193
+ "ci:quality": "bun run format:check && bun run lint && bun run typecheck && bun run test:coverage",
194
+ "test:unit": "vitest run test/ts",
195
+ "test:docs": "vitest run test/ts/manifest.test.ts",
196
+ "test:coverage": "vitest run --coverage test/ts",
197
+ "test:integration:trusted": "bun tools/run_vscode_tests.ts trusted",
198
+ "test:integration:untrusted": "bun tools/run_vscode_tests.ts untrusted",
199
+ "test:integration:compatibility": "bun tools/run_vscode_tests.ts compatibility",
200
+ "package:vsix": "bun run build && mkdir -p dist-vsix && vsce package --no-dependencies --out dist-vsix",
201
+ "verify:vsix": "uv run python tools/verify_vsix.py dist-vsix/inline-sql-toolkit-$(node -p \"require('./package.json').version\").vsix",
202
+ "test:vsix-install": "bun tools/install_and_smoke_vsix.ts"
203
+ },
204
+ "dependencies": {
205
+ "sql-formatter": "^15.8.2"
206
+ },
207
+ "devDependencies": {
208
+ "@eslint/js": "10.0.1",
209
+ "@types/node": "20.19.43",
210
+ "@types/vscode": "1.95.0",
211
+ "@vitest/coverage-v8": "4.1.11",
212
+ "@vscode/test-electron": "3.1.0",
213
+ "@vscode/vsce": "3.9.2",
214
+ "esbuild": "0.28.1",
215
+ "eslint": "10.7.0",
216
+ "eslint-plugin-simple-import-sort": "14.0.0",
217
+ "eslint-plugin-unused-imports": "4.4.1",
218
+ "globals": "17.7.0",
219
+ "prettier": "3.9.6",
220
+ "typescript": "5.9.3",
221
+ "typescript-eslint": "8.65.0",
222
+ "vitest": "4.1.11",
223
+ "yaml": "2.9.0"
224
+ },
225
+ "overrides": {
226
+ "brace-expansion": "5.0.9",
227
+ "fast-uri": "3.1.6",
228
+ "js-yaml": "4.3.2",
229
+ "nanoid": "3.3.18",
230
+ "postcss": "8.5.23",
231
+ "qs": "6.16.0",
232
+ "undici": "7.29.0"
233
+ }
234
+ }