Skip to content

Commit

Permalink
v3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertOstermann committed Aug 20, 2024
1 parent 3085859 commit b747a97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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.2.0] - 2024-08-20

- Update to rule permalinks. Thanks to alanmcruickshank's [Pull Request](https://github.com/sqlfluff/vscode-sqlfluff/pull/152)

## [3.1.5] - 2024-08-16
- Fix bug with ignoring diagnostics

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.5",
"version": "3.2.0",
"description": "A linter and auto-formatter for SQLfluff, a popular linting tool for SQL and dbt.",
"publisher": "dorzey",
"icon": "images/icon.png",
Expand Down
3 changes: 1 addition & 2 deletions src/features/providers/linter/actions/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export default class HoverProvider implements vscode.HoverProvider {
// Link to the rule permalinks so that if the rule docs move in the future that
// we don't have to update the links here. We rely on the docs internally redirecting
// us to the appropriate location.
// const path = `https://docs.sqlfluff.com/en/stable/perma/rule/${Utilities.getDiagnosticCode(diagnostic)}.html`;
const path = `https://docs.sqlfluff.com/en/stable/rules.html#sqlfluff.rules.sphinx.Rule_${diagnostic.code}`;
const path = `https://docs.sqlfluff.com/en/stable/perma/rule/${Utilities.getDiagnosticCode(diagnostic)}.html`;
const markdownString = new vscode.MarkdownString();

markdownString.appendMarkdown(`[View Documentation](${path}) for Rule ${diagnostic.code}.\n`);
Expand Down

0 comments on commit b747a97

Please sign in to comment.