Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Hide unnamed grammars in package-detail view #872

Merged
merged 2 commits into from
Oct 28, 2016
Merged

Hide unnamed grammars in package-detail view #872

merged 2 commits into from
Oct 28, 2016

Conversation

Alhadis
Copy link
Contributor

@Alhadis Alhadis commented Oct 23, 2016

It isn't uncommon for language packages to include a few "helper" grammars for internal use. Most of the time, this is to provide embeddable highlighting for one or more "real" grammars. These shouldn't be visible to the end user... and certainly not with a title of undefined Grammar:

Figure 1

Complements: atom/grammar-selector#34

Many packages include "anonymous" grammars to store embeddable patterns;
these shouldn't be visible to the end user.

References: atom/grammar-selector#34
@Alhadis
Copy link
Contributor Author

Alhadis commented Oct 23, 2016

Sigh... Travis brings nothing but pain, I swear.

Figure 2

Seems to be a race condition, but it's not related to this PR. Running the specs enough times on master eventually leads to the same result.

@Alhadis
Copy link
Contributor Author

Alhadis commented Oct 23, 2016

@thomasjo Any idea why the specs are passing 4/5 times locally, but failing every time in CI?

Can you reproduce this locally? Even on master?

I attempted to amend the specs by loading both language-test and snippets in the same Promise, in the outermost scope, but that didn't work...

No idea what to do right now. =)

@damieng damieng merged commit c4a19a0 into atom:master Oct 28, 2016
@damieng
Copy link
Contributor

damieng commented Oct 28, 2016

The test that's failing is flakey in master already and isn't caused by your code.

Thanks for your contribution!

@Alhadis
Copy link
Contributor Author

Alhadis commented Oct 28, 2016

No problem! :-)

I thought it was, because it failed on master too. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants