Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preference to turn off document symbols #414

Merged

Conversation

NikolasKomonen
Copy link
Contributor

Fixes #413

@NikolasKomonen NikolasKomonen force-pushed the documentSymbolPreference branch 2 times, most recently from 946ef8e to c167d0d Compare June 4, 2019 21:18
@@ -215,6 +216,11 @@ private XMLFormattingOptions getFormattingSettings(String uri) {
@Override
public CompletableFuture<List<Either<SymbolInformation, DocumentSymbol>>> documentSymbol(
DocumentSymbolParams params) {

if(!sharedSettings.symbolSettings.isEnabled()) {
return CompletableFuture.completedFuture(null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CompletableFuture.completedFuture(Collections.emptyList());

else, you might break some clients

@NikolasKomonen NikolasKomonen force-pushed the documentSymbolPreference branch from c167d0d to 8cee65c Compare June 4, 2019 21:45
@fbricon fbricon merged commit 119e2e9 into eclipse-lemminx:master Jun 4, 2019
@angelozerr angelozerr added this to the v0.7.0 milestone Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preferences to enable/disable symbol provider
3 participants