Skip to content

Commit ce674cf

Browse files
feat: add vscode handling tip
1 parent fea7a4a commit ce674cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

website/guide/project/lint-rule.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ labels:
195195

196196
Instead of highlighting the whole method declaration and class declaration, we are just highlighting the method name and class name. The `style` field specifies the highlighting style. The `message` field specifies the message to be displayed in the editor extension. See this post for a [demo](https://x.com/hd_nvim/status/1924120276939256154).
197197

198+
:::tip VSCode Extension respects `labels`
199+
ast-grep's LSP diagnostic reporting also respects the labels configuration. Labels with messages are displayed in the editor extension as [diagnostic related information](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#diagnosticRelatedInformation). Users can jump to the label by clicking the message in the editor.
200+
:::
201+
198202

199203
## Ignore Linting Error
200204

0 commit comments

Comments
 (0)