Skip to content

Commit

Permalink
Add less support for initial indent in non-template regions (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
oseibonsu committed Sep 19, 2022
1 parent a13eaf1 commit 9bc513d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/vscode-vue-language-features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@
"type": "boolean",
"default": false
},
"less": {
"type": "boolean",
"default": false
},
"json": {
"type": "boolean",
"default": false
Expand Down
1 change: 1 addition & 0 deletions packages/vue-language-core/src/plugins/vue-sfc-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { VueLanguagePlugin } from '../types';
const presetInitialIndentBrackets: Record<string, [string, string] | undefined> = {
css: ['{', '}'],
scss: ['{', '}'],
less: ['{', '}'],
};

const plugin: VueLanguagePlugin = () => {
Expand Down

0 comments on commit 9bc513d

Please sign in to comment.