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

Overriding default file grammars automatically #80

Open
jacobmischka opened this issue Apr 5, 2016 · 5 comments
Open

Overriding default file grammars automatically #80

jacobmischka opened this issue Apr 5, 2016 · 5 comments

Comments

@jacobmischka
Copy link

Currently, when I install meteor-api it overrides the default grammars for .js and .cson and other general filetypes. This is not correct behavior as mentioned in the docs, I did not manually disable the language-javascript package.

I'd much rather have to manually select the Meteor syntax when working in meteor than deselect it when I'm not.

@LeNiglo
Copy link

LeNiglo commented Dec 20, 2016

Months later, it's still the case.
Any chance we get an update on this ?

@awatson1978
Copy link
Owner

Hi there. The Atom Package Manager account is borked. I've logged requests for someone to reset it, but it may be easier to create a new package. Not much I can do about it.

@jacobmischka
Copy link
Author

I ended up just uninstalling this package, but I have since run into this problem with some other packages.

For the other packages, I ended up working around the issue using the core.customFileTypes setting in config.cson

Unfortunately, meteor-api doesn't set a custom scope (source.js.meteor, for example), and instead uses the standard source.js. Because of this I'm not sure if you'll be able to override it.

This would work if the scope were set correctly, but you can try it anyway:

customFileTypes:
  "source.js": [
    "js"
]

@hayk94
Copy link

hayk94 commented Jan 27, 2017

Any fixes or workarounds yet?

@jacobmischka
Copy link
Author

You can fork this package, fix the scope like I mentioned then use the workaround I mentioned, and then install it with am via git.

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

No branches or pull requests

4 participants