Skip to content

Commit b747a97

Browse files
v3.2.0
1 parent 3085859 commit b747a97

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

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.2.0] - 2024-08-20
6+
7+
- Update to rule permalinks. Thanks to alanmcruickshank's [Pull Request](https://github.com/sqlfluff/vscode-sqlfluff/pull/152)
8+
59
## [3.1.5] - 2024-08-16
610
- Fix bug with ignoring diagnostics
711

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-sqlfluff",
33
"displayName": "sqlfluff",
4-
"version": "3.1.5",
4+
"version": "3.2.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",

src/features/providers/linter/actions/hover.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ export default class HoverProvider implements vscode.HoverProvider {
3232
// Link to the rule permalinks so that if the rule docs move in the future that
3333
// we don't have to update the links here. We rely on the docs internally redirecting
3434
// us to the appropriate location.
35-
// const path = `https://docs.sqlfluff.com/en/stable/perma/rule/${Utilities.getDiagnosticCode(diagnostic)}.html`;
36-
const path = `https://docs.sqlfluff.com/en/stable/rules.html#sqlfluff.rules.sphinx.Rule_${diagnostic.code}`;
35+
const path = `https://docs.sqlfluff.com/en/stable/perma/rule/${Utilities.getDiagnosticCode(diagnostic)}.html`;
3736
const markdownString = new vscode.MarkdownString();
3837

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

0 commit comments

Comments
 (0)