Skip to content

Commit c6792cd

Browse files
committed
Bump version to 0.2.0, add environment variable support for LspStdio, and fix LSP suggestion conflicts with LSP hover.
1 parent aef6063 commit c6792cd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,8 @@
7878

7979
## 0.1.9
8080

81-
Added environement variable support for LspStdio.
81+
* Added environement variable support for LspStdio.
82+
83+
## 0.2.0
84+
85+
* Fix:LSP Suggestion conflicts with LSP hover.

lib/code_crafter/code_area.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@ class _CodeCrafterState extends State<CodeCrafter> {
337337
final List<LspCompletion> suggestion = await widget.lspConfig!
338338
.getCompletions(line, character);
339339
_hoverDetails = await widget.lspConfig!.getHover(line, character);
340-
if (suggestion.isNotEmpty && cursorOffset > 0) {
340+
if (isTyping &&
341+
suggestion.isNotEmpty &&
342+
cursorOffset > 0 &&
343+
prefix.isNotEmpty) {
341344
_suggestions = suggestion;
342345
_selected = 0;
343346
_sortSuggestions(prefix);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_code_crafter
22
description: "Powerful code editor with AI code completion and LSP support"
3-
version: 0.1.9
3+
version: 0.2.0
44
homepage: https://github.com/heckmon/flutter_code_crafter
55

66
environment:

0 commit comments

Comments
 (0)