feat: add editor label and formatter configuration defaults

#2330

Pull request

Open
E
eltigerchino
Apr 5, 2024, 9:37 AM

Uses the VS Code extension configuration defaults contribution point to:

  • set the default formatter for svelte files as mentioned in the README (which some people may have missed)
  • uses the new VS Code custom labels setting to append the directory name to the editor label for SvelteKit +page and +server files.

Default

default editor labels

Label format

"workbench.editor.labelFormat": "short"

label format: short

Custom labels

  "workbench.editor.customLabels.patterns": {
    "**/+page.*": "${dirname}/${filename}.${extname}",
    "**/+server.*": "${dirname}/${filename}.${extname}",
  },

custom vscode editor labels

Info

Assignees None
Reviewers None
Labels None
Milestone None