Skip to content

Commit

Permalink
fix(vls): enable VLS check features (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework authored Jul 30, 2021
1 parent 4f7abbe commit ba929c5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/vite-plugin-checker/src/checkers/vls/initParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export function getInitParams(workspaceUri: URI): InitializeParams {
const defaultVLSConfig = getDefaultVLSConfig()

defaultVLSConfig.vetur.validation = {
template: false,
style: false,
script: false,
template: true,
style: true,
script: true,
interpolation: true,
templateProps: true,
}
Expand All @@ -33,17 +33,18 @@ export function getInitParams(workspaceUri: URI): InitializeParams {
export function getDefaultVLSConfig() {
return {
vetur: {
ignoreProjectWarning: false,
useWorkspaceDependencies: false,
validation: {
template: true,
templateProps: false,
templateProps: true,
interpolation: true,
style: true,
script: true,
},
completion: {
autoImport: false,
tagCasing: 'kebab',
tagCasing: 'initial',
scaffoldSnippetSources: {
workspace: '💼',
user: '🗒️',
Expand All @@ -66,6 +67,8 @@ export function getDefaultVLSConfig() {
},
languageFeatures: {
codeActions: true,
updateImportOnFileMove: true,
semanticTokens: true,
},
trace: {
server: 'off',
Expand Down

0 comments on commit ba929c5

Please sign in to comment.