stackbreak / comment-divider

Divide your code by sections with styled separators
https://marketplace.visualstudio.com/items?itemName=stackbreak.comment-divider
GNU General Public License v3.0
71 stars 19 forks source link

[Request] Support different comment-divider.length for different language #55

Open vepain opened 4 months ago

vepain commented 4 months ago

An option comment-divider.languagesLengthMap should precise the line length for a particular language:

"comment-divider.languagesLengthMap": {
      "toml": 80,
      "scss": 120
}

This option should have the priority over the comment-divider.length option. If a language is not present in the new option comment-divider.languagesLengthMap, then the default given by comment-divider.length is applied.

vepain commented 3 months ago

The option comment-divider.length should also (preferred) be language specific:

"[toml]": {
  "comment-divider.length": 80
},
"[scss]": {
  "comment-divider.length": 120
}