Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Add scoped settings to config - #3697

Merged
benogle merged 28 commits into
masterfrom
bo-config-scoped-properties
Oct 3, 2014
Merged

benogle merged 28 commits into
masterfrom
bo-config-scoped-properties

Conversation

@benogle

@benogle benogle commented Oct 1, 2014

Copy link
Copy Markdown
Contributor

Status: looking for feedback 👀

This moves the scoped properties from syntax into config and merges them with the 'global' config.

TODO

  • Add optional selectors to Config::get/set
  • Forward deprecated writes to atom.syntax to atom.config
  • Forward deprecated reads on atom.syntax to atom.config
  • Read from atom.config instead of atom.syntax
  • Register scoped properties with atom.config instead of atom.syntax when loading packages.
  • Allow scoped settings to be observed
  • Update docs to explain the scope descriptors

Closes #3674

@benogle benogle self-assigned this Oct 1, 2014
@benogle benogle mentioned this pull request Oct 1, 2014
10 tasks done
@benogle

benogle commented Oct 2, 2014

Copy link
Copy Markdown
Contributor Author

This all works (provided tests pass). 👀?

Comment thread spec/spec-helper.coffee

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Dont need this anymore as Config is created on each spec

@kevinsawicki

Copy link
Copy Markdown
Contributor

Looks good to me :shipit:

@benogle
benogle force-pushed the bo-config-scoped-properties branch from eab697c to a711e90 Compare October 3, 2014 17:47
Comment thread src/config.coffee

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this actually needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it wont assign [x, y] = arguments with arguments.

@nathansobo

Copy link
Copy Markdown
Contributor

⚡ Looking pretty good overall!

@benogle benogle mentioned this pull request Oct 3, 2014
13 tasks done
benogle added a commit that referenced this pull request Oct 3, 2014
@benogle
benogle merged commit 64cc7f9 into master Oct 3, 2014
Comment thread src/config.coffee

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Don't be mad at me, but it seems like this method should probably be ::scopeDescriptorAtCursor for consistency.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For sure. There are ~3 methods that need to change names. Was going to do it in another unit of work.

@benogle
benogle deleted the bo-config-scoped-properties branch October 13, 2014 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config API changes

3 participants