test: add sample Slint file and test results template

Add test files for manual verification of the Slint LSP integration:
- hello.slint: Sample Slint component with common UI elements
- TEST_RESULTS.md: Checklist template for testing LSP features

Co-Authored-By: Claude (auto) <noreply@anthropic.com>
This commit is contained in:
me
2026-01-29 14:12:08 +08:00
parent 7ec9a01c78
commit 2a4ad9c7f2
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Slint LSP Integration Test Results
Date: 2026-01-29
## Test Environment
- IntelliJ IDEA: 2025.2.4
- Slint LSP Version: 1.14.1
- Plugin Version: 1.0-SNAPSHOT
## Test Results
### File Type Recognition
- [ ] .slint files show Slint icon
- [ ] File type is recognized as "Slint"
### Syntax Highlighting
- [ ] Keywords highlighted (import, export, component, inherits)
- [ ] Strings highlighted
- [ ] Comments highlighted
- [ ] Properties highlighted
### LSP Features
- [ ] LSP server starts automatically
- [ ] Code completion works
- [ ] Hover documentation works
- [ ] Goto definition works
- [ ] Diagnostics show errors/warnings
- [ ] Code formatting works
- [ ] Find references works
- [ ] Rename refactoring works
## Issues Found
(Document any issues here)
## Notes
(Any additional observations)

22
test-files/hello.slint Normal file
View File

@@ -0,0 +1,22 @@
import { Button, VerticalBox } from "std-widgets.slint";
export component HelloWorld inherits Window {
width: 400px;
height: 300px;
VerticalBox {
alignment: center;
Text {
text: "Hello, World!";
font-size: 24px;
}
Button {
text: "Click me";
clicked => {
debug("Button clicked!");
}
}
}
}