-
-
Notifications
You must be signed in to change notification settings - Fork 6
Description
This may be due to a limitation of the language server itself, but I cannot get the extension to ignore files.
Assume I want to ignore checking and formatting for the file db/schema.rb in my Rails project. With the following .streerc file in the project root:
--ignore-files='db/schema.rb'
I can successfully have the CLI and Rake tasks ignore the file. However, the extension will always format the file, which is annoying because I like to use Format On Save. The language server does seem to pick up my other settings in .streerc, however.
Here's what I have tried. In each case I have restarted the language server. Also, it may be worth noting I am using a bundled syntax_tree.
- Ignore Files set to
db/schema.rb - Ignore Files set to
schema.rb - Ignore Files set to
**/schema.rb - Ignore Files set to
'**/schema.rb'(quoted to avoid shell expansion) - Ignore Files set to
/Users/chase/dev/my_project/db/schema.rb(Absolute path)
I expect the extension to do nothing when asked to format an ignored file either directly with the Command Pallete or with Format On Save.
If I need to dive into the language server and extension code to debug this, I will, because currently it's a bit annoying. I plan to generate a "TODO" list of files that fail stree check and adding them to my .streerc, so I can incrementally format my project.