Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: add documentation for code lens support
  • Loading branch information
tembleking committed Mar 28, 2025
commit 72e113fbe34fc591779e0157d84bcdef999c0a2f
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ helping you detect vulnerabilities and misconfigurations earlier in the developm
| Feature | **[VSCode Extension](https://github.com/sysdiglabs/vscode-extension)** | **Sysdig LSP** |
|---------------------------------|------------------------------------------------------------------------|----------------------------------------------------------|
| Scan base image in Dockerfile | Supported | [Supported](./docs/features/scan_base_image.md) (0.1.0+) |
| Code lens support | Supported | In roadmap |
| Code lens support | Supported | [Supported](./docs/features/code_lens.md) (0.2.0+) |
| Build and Scan Dockerfile | Supported | In roadmap |
| Layered image analysis | Supported | In roadmap |
| Docker-compose image analysis | Supported | In roadmap |
Expand Down
Binary file added docs/features/code_lens.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions docs/features/code_lens.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Code Lens Support

A CodeLens is a feature that displays additional information about the code,
such as suggestions, references, or action buttons, directly in the editor without modifying the code itself.

For example, in VS Code, you might see something like "Used 3 times" above a function,
with an option to click and view references.

In our case, for the **Sysdig LSP**, **CodeLens** allows executing actions that can also be
performed with **Code Actions** (like [scanning the base image](./scan_base_image.md)), but in a more graphical way by simply clicking.
This enhances usability by providing direct interaction within the editor.

![Sysdig LSP code lens for base image scanning](./code_lens.gif)