puppetlabs / puppet-editor-services

Puppet Language Server for editors
Apache License 2.0
45 stars 21 forks source link

(GH-289) Make Format On Type file size configurable #290

Closed glennsarti closed 3 years ago

glennsarti commented 3 years ago

Fixes #289

Previously only files that were less than 4KB in size could use the format-on-type feature. This commit updates the Language Server to honor a new configuration setting puppet.editorService.formatOnType.maxFileSize which will determine the maximum file size. A size of 0 will disable the size check. The default is 4096 as per the previous behaviour.

No specific tests have been added and has been manually tested.