Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,9 @@ class HandleCompletionRequestCommand<T> extends Command<T> {
}

// Parse the completion level into completion suggestions
final completionResults = CompletionParser(
completionLevel: completionLevel,
).parse();

CompletionParser(completionLevel: completionLevel).parse()
// Render the completion suggestions
for (final completionResult in completionResults) {
runner.renderCompletionResult(completionResult);
}
.forEach(runner.renderCompletionResult);
} on Exception {
// Do not output any Exception here, since even error messages are
// interpreted as completion suggestions
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ dependencies:
dev_dependencies:
mocktail: ^1.0.4
test: ^1.25.8
very_good_analysis: ^9.0.0
very_good_analysis: ">=10.0.0 <11.0.0"
1 change: 0 additions & 1 deletion test/src/installer/completion_configuration_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Not required for test files
// ignore_for_file: prefer_const_constructors

import 'dart:collection';
import 'dart:io';
Expand Down
5 changes: 0 additions & 5 deletions test/src/installer/completion_installation_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ void main() {
expect(configFile.existsSync(), true);

// Different format needed for matching cli output
// ignore: leading_newlines_in_multiline_strings
expect(configFile.readAsStringSync(), '''
\n## [very_good]
## Completion config for "very_good"
Expand Down Expand Up @@ -287,7 +286,6 @@ void main() {
installation.writeToShellConfigFile('very_good');

// Different format needed for matching cli output
// ignore: leading_newlines_in_multiline_strings
expect(rcFile.readAsStringSync(), '''
\n## [Completion]
## Completion scripts setup. Remove the following line to uninstall
Expand Down Expand Up @@ -435,7 +433,6 @@ void main() {
// rc fle includes one reference to the global config

// Different format needed for matching cli output
// ignore: leading_newlines_in_multiline_strings
expect(rcFile.readAsStringSync(), '''
\n## [Completion]
## Completion scripts setup. Remove the following line to uninstall
Expand All @@ -450,7 +447,6 @@ void main() {
);

// Different format needed for matching cli output
// ignore: leading_newlines_in_multiline_strings
expect(globalConfig.readAsStringSync(), '''
\n## [very_good]
## Completion config for "very_good"
Expand Down Expand Up @@ -491,7 +487,6 @@ void main() {
..install('not_good');

// Different format needed for matching cli output
// ignore: leading_newlines_in_multiline_strings
expect(bashProfile.readAsStringSync(), '''
\n## [Completion]
## Completion scripts setup. Remove the following line to uninstall
Expand Down