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

Json result format #23

Merged
merged 6 commits into from
Nov 4, 2015
Merged

Conversation

javaguirre
Copy link
Contributor

This is related to #10

screen shot 2015-11-04 at 11 50 15

The format is good now, but the syntax highlighting is a bit trickier if trying to use Atom internal system, although I almost have It. I am using the grammar tokenizer for highlighting, but I am trying to get a method from Atom API to pass the tokens to html, It doesn't seem is there anymore, or I need to read more code. Now I have:

grammar = atom.grammars.grammarForScopeName('source.json')
tokenizedLines = grammar.tokenizeLines(@processResult(body), undefined, 4))

I'll continue working on It.

I also refactored some constants, and I think all the json related code should go in a different file, I'll get into that.

@ddavison
Copy link
Owner

ddavison commented Nov 4, 2015

👍

When forcing the load of the Atom editor, the result is empty and opens
a buffer with undefined on It
@javaguirre
Copy link
Contributor Author

Found a couple of bugs, missing quotes, the other was already there, and It's related to the load of the package and initalization, both fixed.

I am adding tests for the features I added, we could use that as our starting base for testing the rest of the package.

@javaguirre
Copy link
Contributor Author

Added some specs to test the new json result process. Related to #22

@javaguirre
Copy link
Contributor Author

I added the travis-ci config too, It worked well! 🎉

screen shot 2015-11-04 at 17 37 31

@ddavison
Copy link
Owner

ddavison commented Nov 4, 2015

you can go ahead and merge this if it's finished :)

i'll also see what i can do about allowing you to do apm publish's as well

@javaguirre
Copy link
Contributor Author

Great, I'll do It.

Thank you!
On Nov 4, 2015 19:10, "Dj" notifications@github.com wrote:

you can go ahead and merge this if it's finished :)

i'll also see what i can do about allowing you to do apm publish's as well


Reply to this email directly or view it on GitHub
#23 (comment).

javaguirre added a commit that referenced this pull request Nov 4, 2015
Json result format

Added tests and travis-ci configuration
@javaguirre javaguirre merged commit 27987aa into ddavison:master Nov 4, 2015
@javaguirre javaguirre deleted the json-result-format branch November 4, 2015 20:50
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.

2 participants