You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support the "dart.analysisExcludedFolders" setting in LSP #2680
@dcharkes this option is going to stop working when moving to LSP anyway, so I think we need to find another fix if the SDK repo still needs it. Do you know if that's still the case? (and if so, does enabling dart.previewLsp in your VS Code settings break it again?)
(Side note: the whole situation has become worse with NNBD - because now we have tons of files which give either give errors with NNBD turned on (--enable-experiment=non-nullable) or give errors with NNBD turned off error • This requires the 'non-nullable' language feature to be enabled.)
I've been working around it by just manually adding subfolders to the analysis_options.yaml.
Does this mean you won't be negatively affected if I removed this setting?
Side note: the whole situation has become worse with NNBD - because now we have tons of files which give either give errors with NNBD turned on
I don't know if it'll work (or be easy to maintain), but I use a .code-workspace file that only adds the folders I need to work on (though for me that's a very small list!):
I don't know if it'll work (or be easy to maintain), but I use a .code-workspace file that only adds the folders I need to work on (though for me that's a very small list!)
I use VSCode as my file browser basically 🙈 , so that doesn't work for me.
Does this mean you won't be negatively affected if I removed this setting?
I'm reverting this and bring back the setting (at least for now). There are other cases that this supports where analysis_options won't help (for example you open a multi-root workspace in VS Code and want some non-Dart folder to be excluded entirely, to avoid the needless file scanning - #2524 (comment)).
I'll look into supporting this in some form for LSP as this seems like a fair requirement.
changed the title [-]Remove the "dart.analysisExcludedFolders" setting[/-][+]Support the "dart.analysisExcludedFolders" setting in LSP[/+]on Sep 2, 2020
Activity
DanTup commentedon Aug 5, 2020
Found another place that was relying on this - the Dart SDK repo (which may not be able to use the
analysis_option.yamlsetting):dart-lang/sdk#35562
@dcharkes this option is going to stop working when moving to LSP anyway, so I think we need to find another fix if the SDK repo still needs it. Do you know if that's still the case? (and if so, does enabling
dart.previewLspin your VS Code settings break it again?)Remove excludedFolders setting
dcharkes commentedon Aug 10, 2020
I've been working around it by just manually adding subfolders to the analysis_options.yaml.
(Side note: the whole situation has become worse with NNBD - because now we have tons of files which give either give errors with NNBD turned on (
--enable-experiment=non-nullable) or give errors with NNBD turned offerror • This requires the 'non-nullable' language feature to be enabled.)DanTup commentedon Aug 10, 2020
Does this mean you won't be negatively affected if I removed this setting?
I don't know if it'll work (or be easy to maintain), but I use a
.code-workspacefile that only adds the folders I need to work on (though for me that's a very small list!):This starts up quickly as it's analysing a lot less code, and also avoids all those other folders.
dcharkes commentedon Aug 10, 2020
I use VSCode as my file browser basically 🙈 , so that doesn't work for me.
No. Thanks for asking!
DanTup commentedon Sep 2, 2020
I'm reverting this and bring back the setting (at least for now). There are other cases that this supports where analysis_options won't help (for example you open a multi-root workspace in VS Code and want some non-Dart folder to be excluded entirely, to avoid the needless file scanning - #2524 (comment)).
I'll look into supporting this in some form for LSP as this seems like a fair requirement.
[-]Remove the "dart.analysisExcludedFolders" setting[/-][+]Support the "dart.analysisExcludedFolders" setting in LSP[/+]DanTup commentedon Sep 23, 2020
This is now supported in the LSP server too with dart-lang/sdk@f7b1a1e.