Skip to content

Commit

Permalink
v3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertOstermann committed Jul 10, 2024
1 parent 996be55 commit 83652b8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## [3.1.1] - 2024-07-10

- Show the rule name in the problems tab [Issue](https://github.com/sqlfluff/vscode-sqlfluff/issues/134)

## [3.1.0] - 2024-07-03

- Allow the extension to accept warnings from the underlying linter. Thanks to TheCleric's [Pull Request](https://github.com/sqlfluff/vscode-sqlfluff/pull/140)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-sqlfluff",
"displayName": "sqlfluff",
"version": "3.1.0",
"version": "3.1.1",
"description": "A linter and auto-formatter for SQLfluff, a popular linting tool for SQL and dbt.",
"publisher": "dorzey",
"icon": "images/icon.png",
Expand Down
2 changes: 1 addition & 1 deletion src/features/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class LinterProvider implements Linter {
violation.description,
diagnosticSeverity,
);
diagnostic.code = violation.code;
diagnostic.code = violation?.name ? `${violation.code}: ${violation.name}` : violation.code;
diagnostic.source = "sqlfluff";
fileDiagnostic.diagnostics.push(diagnostic);
});
Expand Down
17 changes: 9 additions & 8 deletions src/features/providers/linter/types/violation.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
export default interface Violation {
line_no?: number,
line_pos?: number,
start_line_no?: number,
start_line_pos?: number,
end_line_no?: number,
end_line_pos?: number,
description: string,
code: string,
line_no?: number;
line_pos?: number;
start_line_no?: number;
start_line_pos?: number;
end_line_no?: number;
end_line_pos?: number;
description: string;
code: string;
name?: string;
warning?: boolean;
}

0 comments on commit 83652b8

Please sign in to comment.