Coder Social home page Coder Social logo

Comments (9)

travi avatar travi commented on May 22, 2024

+1

from atom-editorconfig.

mstn avatar mstn commented on May 22, 2024

+1

from atom-editorconfig.

xlaywan avatar xlaywan commented on May 22, 2024

+1

from atom-editorconfig.

sindresorhus avatar sindresorhus commented on May 22, 2024

Yes, that would be nice, but I'm not aware of any way to do that in Atom. Though I would love to be proven wrong.

from atom-editorconfig.

erikdonohoo avatar erikdonohoo commented on May 22, 2024

I will have to look. But I know it is done in the atom jshint package. They watch for changes to any .jshintrc file and update the hinting.

from atom-editorconfig.

sindresorhus avatar sindresorhus commented on May 22, 2024

Sure. PR welcome.

from atom-editorconfig.

cemrich avatar cemrich commented on May 22, 2024

There is a fs.watch() function that could be used.
The problem is we don't know the exact files the config rules are parsed from. In most cases it will be .editorconfig on root level but there could be more config files in subdirectories as well.
Searching for this files could be expensive (however, that's just an assumption) - especially when handling deeply nested node_modules directories.

from atom-editorconfig.

florianb avatar florianb commented on May 22, 2024

We could try to watch all involved files, if one file changes the config is resembled and set.

from atom-editorconfig.

florianb avatar florianb commented on May 22, 2024

This feature will be implemented with the next (and first) feature-milestone. I will close this issue in favor of the more technical discussion in #85 - please feel free to follow up and participate!

Thank you all for contributing! 💝

from atom-editorconfig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.