hridoy / rails-vscode

Ruby on rails snippets for visual studio code
MIT License
15 stars 9 forks source link

Filename typos causing errors #7

Open contentfree opened 6 years ago

contentfree commented 6 years ago

Occasionally, this extension will cause extensionHost to go to 100% CPU.

While investigating, there appear to be a few things wrong in the package.json:

L53 references a non-existant file "./snippets/denug/log.json" (the file's actual name is snippets/debug/log.json)

L73 references a non-existant file "./snippets/helper/form-bootstrap.json" (the file's actual name is almost certainly typoed: It's from-bootstrap.json)

ogelacinyc commented 5 years ago

I have a same issue, but it couldn't update by pull requests. Because this repository doesn't have a code. I think it that this project is dead maybe.. So I fix directly some code from my local mac

/Users/[myname]/.vscode/extensions/hridoy.rails-snippets-1.0.8/packpage.json
line53: "path": "./snippets/denug/log.json",  'denub' change it to 'debug'

/Users/[myname]/.vscode/extensions/hridoy.rails-snippets-1.0.8/snippets/helper/from-bootstrap.json
change file name from from-bootstrap.json to form-bootstrap.json

It works fine, but it may causes some kind of the crash if it upgrades extension version. I hope to update this misspelling soon.