edubkendo / atom-racer

Intelligent code completion for Rust in the Atom Editor. Requires Racer.
MIT License
115 stars 24 forks source link

Fix: atom-racer does not need to create temporary files #76

Open mindsbackyard opened 7 years ago

mindsbackyard commented 7 years ago

atom-racer creates temporary files to provide completion even for unsafed content. This results in a lot of writes to the disk and is unnecessary. The racer command allows to pass a subsitute file whose content will be used instead of the file completion is invoked for (its location is used nevertheless). Instead of specifying a real substitute file '-' is passed and the contents are read from stdin. This also removes the 'temp' dependency.

bronson commented 7 years ago

Love this. Hope it can be merged.

dszakallas commented 7 years ago

why isn't this merged yet?

Xaeroxe commented 6 years ago

merged into racer-plus package here https://github.com/Xaeroxe/atom-racer