-
Notifications
You must be signed in to change notification settings - Fork 42
Description
In VSCode version 1.9 auto-indent was updated. Functionality is documented here.
This requires usto update the https://github.com/lingua-pupuli/puppet-vscode/blob/master/languages/puppet.configuration.json file, with a new indentationRules block that contains regex patterns for increasing and decreasing the indent. According to the documentation, we should also change the name from puppet.configuration.json to puppet-languages-configuration.json in order to get validation and editor support.
I did a POC locally and have it working somewhat, but it's controlled by a regex so it's going to need some further work to catch all the different cases we have. Examples show a known list of keywords ( if, else, when, do, etc) so we have a possible problem in that we want indentation to occur after both puppet language keywords (the puppet dsl) as well as any type name (file, package, etc)