Skip to content

Commit 25f2f77

Browse files
DanTupcommit-bot@chromium.org
authored andcommitted
Send LSP outlines for all open files
Change-Id: Icd785376c54965c53bd4ea0cf89ede74a4287981 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151390 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Danny Tuppeny <[email protected]>
1 parent e1d1adc commit 25f2f77

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -522,18 +522,14 @@ class LspAnalysisServer extends AbstractAnalysisServer {
522522
/// given absolute path.
523523
bool shouldSendFlutterOutlineFor(String file) {
524524
// Outlines should only be sent for open (priority) files in the workspace.
525-
return initializationOptions.flutterOutline &&
526-
priorityFiles.contains(file) &&
527-
contextManager.isInAnalysisRoot(file);
525+
return initializationOptions.flutterOutline && priorityFiles.contains(file);
528526
}
529527

530528
/// Returns `true` if outlines should be sent for [file] with the given
531529
/// absolute path.
532530
bool shouldSendOutlineFor(String file) {
533531
// Outlines should only be sent for open (priority) files in the workspace.
534-
return initializationOptions.outline &&
535-
priorityFiles.contains(file) &&
536-
contextManager.isInAnalysisRoot(file);
532+
return initializationOptions.outline && priorityFiles.contains(file);
537533
}
538534

539535
void showErrorMessageToUser(String message) {

0 commit comments

Comments
 (0)