mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
Fix for completion after the closing quote in a directive.
R=brianwilkerson@google.com BUG= Review-Url: https://codereview.chromium.org/2572513003 .
This commit is contained in:
parent
0d16859d87
commit
a5b2e62bda
|
@ -229,7 +229,13 @@ class DartCompletionRequestImpl implements DartCompletionRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get sourceContents => context.getContents(source)?.data;
|
String get sourceContents {
|
||||||
|
if (result != null) {
|
||||||
|
return result.content;
|
||||||
|
} else {
|
||||||
|
return context.getContents(source)?.data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
SourceFactory get sourceFactory {
|
SourceFactory get sourceFactory {
|
||||||
|
|
Loading…
Reference in a new issue