Skip to content

Commit d68bced

Browse files
v3.3.0
1 parent 963aa6e commit d68bced

File tree

3 files changed

+38
-9
lines changed

3 files changed

+38
-9
lines changed

.vscode/launch.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
"type": "extensionHost",
88
"request": "launch",
99
"runtimeExecutable": "${execPath}",
10-
"args": [
11-
"${workspaceFolder}/test",
12-
"--extensionDevelopmentPath=${workspaceRoot}"
13-
],
10+
"args": ["${workspaceFolder}/test", "--extensionDevelopmentPath=${workspaceRoot}", "--disable-extensions"],
1411
"sourceMaps": true,
1512
"outFiles": ["${workspaceRoot}/out/**/*.js"],
1613
"preLaunchTask": "npm"
@@ -20,10 +17,7 @@
2017
"type": "extensionHost",
2118
"request": "launch",
2219
"runtimeExecutable": "${execPath}",
23-
"args": [
24-
"${workspaceFolder}/test/suite/test_sql/bad.sql",
25-
"--extensionDevelopmentPath=${workspaceRoot}"
26-
],
20+
"args": ["${workspaceFolder}/test/suite/test_sql/bad.sql", "--extensionDevelopmentPath=${workspaceRoot}"],
2721
"sourceMaps": true,
2822
"outFiles": ["${workspaceRoot}/out/**/*.js"],
2923
"preLaunchTask": "npm"

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to the "sqlfluff" extension will be documented in this file.
44

5+
## [3.3.0] - 2024-09-27
6+
7+
- Update the scope of the settings to 'resource' for more granular settings. [Issue](https://github.com/sqlfluff/vscode-sqlfluff/issues/156)
8+
59
## [3.2.1] - 2024-09-18
610

711
- Silence notification when file/path is in `.sqlfluffignore`. [Issue](https://github.com/sqlfluff/vscode-sqlfluff/issues/155)

package.json

+32-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-sqlfluff",
33
"displayName": "sqlfluff",
4-
"version": "3.2.1",
4+
"version": "3.3.0",
55
"description": "A linter and auto-formatter for SQLfluff, a popular linting tool for SQL and dbt.",
66
"publisher": "dorzey",
77
"icon": "images/icon.png",
@@ -76,11 +76,13 @@
7676
"configuration": {
7777
"properties": {
7878
"sqlfluff.config": {
79+
"scope": "resource",
7980
"type": "string",
8081
"default": "",
8182
"description": "Specify an additional configuration file that overrides the standard configuration files."
8283
},
8384
"sqlfluff.environmentVariables": {
85+
"scope": "resource",
8486
"type": "array",
8587
"default": [
8688
{
@@ -109,11 +111,13 @@
109111
"markdownDescription": "DEPRECATED: Use sqlfluff.env.environmentVariables"
110112
},
111113
"sqlfluff.executablePath": {
114+
"scope": "resource",
112115
"type": "string",
113116
"default": "sqlfluff",
114117
"description": "Points to the sqlfluff executable."
115118
},
116119
"sqlfluff.dialect": {
120+
"scope": "resource",
117121
"type": "string",
118122
"enum": [
119123
"",
@@ -144,26 +148,31 @@
144148
"description": "The dialect of SQL to lint."
145149
},
146150
"sqlfluff.excludeRules": {
151+
"scope": "resource",
147152
"type": "array",
148153
"default": [],
149154
"description": "Exclude specific rules. The excludedRules from the global settings and workspace settings are combined."
150155
},
151156
"sqlfluff.ignoreLocalConfig": {
157+
"scope": "resource",
152158
"type": "boolean",
153159
"default": false,
154160
"description": "Ignore config files in default search path locations. Can be used with config to only reference the custom config file."
155161
},
156162
"sqlfluff.ignoreParsing": {
163+
"scope": "resource",
157164
"type": "boolean",
158165
"default": false,
159166
"description": "Determines if the sql linter should ignore parsing errors."
160167
},
161168
"sqlfluff.rules": {
169+
"scope": "resource",
162170
"type": "array",
163171
"default": [],
164172
"description": "Narrow the search to only specific rules. The rules from the global settings and workspace settings are combined."
165173
},
166174
"sqlfluff.shell": {
175+
"scope": "resource",
167176
"type": [
168177
"boolean",
169178
"string"
@@ -172,26 +181,31 @@
172181
"markdownDescription": "Set the shell for the child process. This can be set to false (limited shell features), true (shell features such as the `dir` command), or the path to the shell executable."
173182
},
174183
"sqlfluff.suppressNotifications": {
184+
"scope": "resource",
175185
"type": "boolean",
176186
"default": false,
177187
"description": "Hide notification messages. The output channel will still be populated."
178188
},
179189
"sqlfluff.workingDirectory": {
190+
"scope": "resource",
180191
"type": "string",
181192
"default": "",
182193
"markdownDescription": "Set the working directory for the `sqlfluff lint` and `sqlfluff fix` commands. Use an absolute path (can use variables if necessary). This defaults to the root path of the workspace. This setting should only be changed if absolutely necessary."
183194
},
184195
"sqlfluff.codeActions.excludeRules.workspace": {
196+
"scope": "resource",
185197
"type": "boolean",
186198
"default": true,
187199
"markdownDescription": "Determines if the `Exclude Rule <rule> from Workspace Settings` code action is enabled."
188200
},
189201
"sqlfluff.codeActions.excludeRules.global": {
202+
"scope": "resource",
190203
"type": "boolean",
191204
"default": true,
192205
"markdownDescription": "Determines if the `Exclude Rule <rule> from Global Settings` code action is enabled."
193206
},
194207
"sqlfluff.codeActions.noqa": {
208+
"scope": "resource",
195209
"type": [
196210
"array",
197211
"boolean"
@@ -219,6 +233,7 @@
219233
"markdownDescription": "Set the rules that will not show the `noqa` code actions. Set this to `false` to disable all `noqa` code actions."
220234
},
221235
"sqlfluff.env.environmentVariables": {
236+
"scope": "resource",
222237
"type": "array",
223238
"default": [
224239
{
@@ -247,26 +262,31 @@
247262
"markdownDescription": "Set the environment variables for the linter and formatter."
248263
},
249264
"sqlfluff.env.customDotEnvFiles": {
265+
"scope": "resource",
250266
"type": "array",
251267
"default": [],
252268
"description": "Load the .env file from the specified paths."
253269
},
254270
"sqlfluff.env.useDotEnvFile": {
271+
"scope": "resource",
255272
"type": "boolean",
256273
"default": false,
257274
"description": "Load the .env file from the working directory."
258275
},
259276
"sqlfluff.format.arguments": {
277+
"scope": "resource",
260278
"type": "array",
261279
"default": [],
262280
"markdownDescription": "This is useful for setting extra arguments for the `sqlfluff fix` command. Include `--force` if running sqlfluff < 3.0.0."
263281
},
264282
"sqlfluff.format.enabled": {
283+
"scope": "resource",
265284
"type": "boolean",
266285
"default": true,
267286
"description": "Determines if the document formatter is enabled."
268287
},
269288
"sqlfluff.format.languages": {
289+
"scope": "resource",
270290
"type": "array",
271291
"default": [
272292
"sql",
@@ -306,21 +326,25 @@
306326
"description": "The languages formatting is enabled for."
307327
},
308328
"sqlfluff.experimental.format.executeInTerminal": {
329+
"scope": "resource",
309330
"type": "boolean",
310331
"default": false,
311332
"markdownDescription": "Determines if the `sqlfluff fix` command overwrites the file contents instead of this extension. You should not change the file contents while formatting is occurring if this is enabled. May lead to problems if `editor.formatOnSave = true`. This allows formatting to work when the templater is set to dbt. This can help solve [Mojibake](https://en.wikipedia.org/wiki/Mojibake) issues."
312333
},
313334
"sqlfluff.linter.arguments": {
335+
"scope": "resource",
314336
"type": "array",
315337
"default": [],
316338
"markdownDescription": "This is useful for setting extra arguments for the `sqlfluff lint` command."
317339
},
318340
"sqlfluff.linter.delay": {
341+
"scope": "resource",
319342
"type": "number",
320343
"default": 100,
321344
"markdownDescription": "Set the delay (milliseconds) before running the linter when using `sqlfluff.linter.run = 'onType'`."
322345
},
323346
"sqlfluff.linter.diagnosticSeverity": {
347+
"scope": "resource",
324348
"type": "string",
325349
"enum": [
326350
"error",
@@ -332,6 +356,7 @@
332356
"markdownDescription": "Set the default diagnostic severity of the linting results."
333357
},
334358
"sqlfluff.linter.diagnosticSeverityByRule": {
359+
"scope": "resource",
335360
"type": "array",
336361
"default": [],
337362
"items": {
@@ -361,11 +386,13 @@
361386
"markdownDescription": "Set the diagnostic severity of individual linting results."
362387
},
363388
"sqlfluff.linter.lintEntireProject": {
389+
"scope": "resource",
364390
"type": "boolean",
365391
"default": false,
366392
"markdownDescription": "Determines if the linter will lint the workspaces on startup and configuration changes. Does not work with `dbt-core-interface`."
367393
},
368394
"sqlfluff.linter.languages": {
395+
"scope": "resource",
369396
"type": "array",
370397
"default": [
371398
"sql",
@@ -377,6 +404,7 @@
377404
"description": "The languages linting is enabled for."
378405
},
379406
"sqlfluff.linter.run": {
407+
"scope": "resource",
380408
"type": "string",
381409
"enum": [
382410
"onType",
@@ -392,16 +420,19 @@
392420
]
393421
},
394422
"sqlfluff.dbtInterface.enabled": {
423+
"scope": "resource",
395424
"type": "boolean",
396425
"default": false,
397426
"markdownDescription": "Enable this if `dbt-core-interface` is installed. This disables all other options except for `sqlfluff.config`."
398427
},
399428
"sqlfluff.dbtInterface.host": {
429+
"scope": "resource",
400430
"type": "string",
401431
"default": "localhost",
402432
"description": "The host for the dbt-interface server."
403433
},
404434
"sqlfluff.dbtInterface.port": {
435+
"scope": "resource",
405436
"type": "number",
406437
"default": 8581,
407438
"description": "The port for the dbt-interface server."

0 commit comments

Comments
 (0)