File tree 3 files changed +6
-4
lines changed
lib/src/services/completion/dart
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,8 @@ class DartCompletionManager implements CompletionContributor {
241
241
kinds.add (protocol.ElementKind .ENUM_CONSTANT );
242
242
kinds.add (protocol.ElementKind .EXTENSION );
243
243
kinds.add (protocol.ElementKind .FUNCTION );
244
+ kinds.add (protocol.ElementKind .GETTER );
245
+ kinds.add (protocol.ElementKind .SETTER );
244
246
kinds.add (protocol.ElementKind .TOP_LEVEL_VARIABLE );
245
247
}
246
248
}
Original file line number Diff line number Diff line change @@ -370,7 +370,6 @@ void main() {
370
370
}
371
371
372
372
/// See: https://github.com/dart-lang/sdk/issues/40626
373
- @failingTest
374
373
Future <void > test_project_lib_getters () async {
375
374
await addProjectFile ('lib/a.dart' , r'''
376
375
int get g => 0;
@@ -383,8 +382,8 @@ void main() {
383
382
''' );
384
383
385
384
expectSuggestion (
386
- completion: 's ' ,
387
- element: ElementKind .SETTER ,
385
+ completion: 'g ' ,
386
+ element: ElementKind .GETTER ,
388
387
kind: CompletionSuggestionKind .INVOCATION );
389
388
}
390
389
@@ -412,7 +411,6 @@ void main() {
412
411
}
413
412
414
413
/// See: https://github.com/dart-lang/sdk/issues/40626
415
- @failingTest
416
414
Future <void > test_project_lib_setters () async {
417
415
await addProjectFile ('lib/a.dart' , r'''
418
416
set s(int s) {}
Original file line number Diff line number Diff line change @@ -184,7 +184,9 @@ main() {
184
184
ElementKind .EXTENSION ,
185
185
ElementKind .FUNCTION ,
186
186
ElementKind .FUNCTION_TYPE_ALIAS ,
187
+ ElementKind .GETTER ,
187
188
ElementKind .MIXIN ,
189
+ ElementKind .SETTER ,
188
190
ElementKind .TOP_LEVEL_VARIABLE ,
189
191
]),
190
192
);
You can’t perform that action at this time.
0 commit comments