Skip to content

Vue#

Server#

For more information about the LSP server, check vue-language-server.

Installation#

This Server supports automatic install. Install this language server with M-xlsp-install-serverRETvlsRET.

npm install -g vls

Debugger: Yes (Firefox/Chrome)#

Available configurations#

lsp-javascript-auto-closing-tags#

Type: boolean

Default: t

Enable/disable automatic closing of JSX tags. Requires using TypeScript 3.0 or newer in the workspace.


lsp-javascript-format-enable#

Type: boolean

Default: t

Enable/disable default JavaScript formatter.


lsp-javascript-format-insert-space-after-comma-delimiter#

Type: boolean

Default: t

Defines space handling after a comma delimiter.


lsp-javascript-format-insert-space-after-constructor#

Type: boolean

Default: nil

Defines space handling after the constructor keyword. Requires using TypeScript 2.3.0 or newer in the workspace.


lsp-javascript-format-insert-space-after-function-keyword-for-anonymous-functions#

Type: boolean

Default: t

Defines space handling after function keyword for anonymous functions.


lsp-javascript-format-insert-space-after-keywords-in-control-flow-statements#

Type: boolean

Default: t

Defines space handling after keywords in a control flow statement.


lsp-javascript-format-insert-space-after-opening-and-before-closing-jsx-expression-braces#

Type: boolean

Default: nil

Defines space handling after opening and before closing JSX expression braces.


lsp-javascript-format-insert-space-after-opening-and-before-closing-nonempty-braces#

Type: boolean

Default: t

Defines space handling after opening and before closing non-empty braces. Requires using TypeScript 2.3.0 or newer in the workspace.


lsp-javascript-format-insert-space-after-opening-and-before-closing-nonempty-brackets#

Type: boolean

Default: nil

Defines space handling after opening and before closing non-empty brackets.


lsp-javascript-format-insert-space-after-opening-and-before-closing-nonempty-parenthesis#

Type: boolean

Default: nil

Defines space handling after opening and before closing non-empty parenthesis.


lsp-javascript-format-insert-space-after-opening-and-before-closing-template-string-braces#

Type: boolean

Default: nil

Defines space handling after opening and before closing template string braces.


lsp-javascript-format-insert-space-after-semicolon-in-for-statements#

Type: boolean

Default: t

Defines space handling after a semicolon in a for statement.


lsp-javascript-format-insert-space-before-and-after-binary-operators#

Type: boolean

Default: t

Defines space handling after a binary operator.


lsp-javascript-format-insert-space-before-function-parenthesis#

Type: boolean

Default: nil

Defines space handling before function argument parentheses.


lsp-javascript-format-place-open-brace-on-new-line-for-control-blocks#

Type: boolean

Default: nil

Defines whether an open brace is put onto a new line for control blocks or not.


lsp-javascript-format-place-open-brace-on-new-line-for-functions#

Type: boolean

Default: nil

Defines whether an open brace is put onto a new line for functions or not.


lsp-javascript-implicit-project-config-check-js#

Type: boolean

Default: nil

Enable/disable semantic checking of JavaScript files. Existing jsconfig.json or tsconfig.json files override this setting. Requires using TypeScript 2.3.1 or newer in the workspace.


lsp-javascript-implicit-project-config-experimental-decorators#

Type: boolean

Default: nil


lsp-javascript-preferences-import-module-specifier#

Type: (choice (const auto) (const relative) (const non-relative))

Default: auto

Preferred path style for auto imports.


lsp-javascript-preferences-quote-style#

Type: (choice (const auto) (const single) (const double))

Default: auto


lsp-javascript-preferences-rename-shorthand-properties#

Type: boolean

Default: t

Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.


lsp-javascript-references-code-lens-enabled#

Type: boolean

Default: nil

Enable/disable references CodeLens in JavaScript files.


lsp-javascript-suggest-auto-imports#

Type: boolean

Default: t

Enable/disable auto import suggestions. Requires using TypeScript 2.6.1 or newer in the workspace.


lsp-javascript-suggest-complete-function-calls#

Type: boolean

Default: nil

Complete functions with their parameter signature.


lsp-javascript-suggest-complete-js-docs#

Type: boolean

Default: t

Enable/disable suggestion to complete JSDoc comments.


lsp-javascript-suggest-enabled#

Type: boolean

Default: t

Enabled/disable autocomplete suggestions.


lsp-javascript-suggest-names#

Type: boolean

Default: t

Enable/disable including unique names from the file in JavaScript suggestions.


lsp-javascript-suggest-paths#

Type: boolean

Default: t

Enable/disable suggestions for paths in import statements and require calls.


lsp-javascript-suggestion-actions-enabled#

Type: boolean

Default: t

Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace.


lsp-javascript-update-imports-on-file-move-enabled#

Type: (choice (const prompt) (const always) (const never))

Default: prompt

Prompt on each rename.


lsp-javascript-validate-enable#

Type: boolean

Default: t

Enable/disable JavaScript validation.


lsp-typescript-auto-closing-tags#

Type: boolean

Default: t

Enable/disable automatic closing of JSX tags. Requires using TypeScript 3.0 or newer in the workspace.


lsp-typescript-check-npm-is-installed#

Type: boolean

Default: t

Check if NPM is installed for Automatic Type Acquisition.


lsp-typescript-disable-automatic-type-acquisition#

Type: boolean

Default: nil

Disables automatic type acquisition. Automatic type acquisition fetches @types packages from npm to improve IntelliSense for external libraries.


lsp-typescript-format-enable#

Type: boolean

Default: t

Enable/disable default TypeScript formatter.


lsp-typescript-format-insert-space-after-comma-delimiter#

Type: boolean

Default: t

Defines space handling after a comma delimiter.


lsp-typescript-format-insert-space-after-constructor#

Type: boolean

Default: nil

Defines space handling after the constructor keyword. Requires using TypeScript 2.3.0 or newer in the workspace.


lsp-typescript-format-insert-space-after-function-keyword-for-anonymous-functions#

Type: boolean

Default: t

Defines space handling after function keyword for anonymous functions.


lsp-typescript-format-insert-space-after-keywords-in-control-flow-statements#

Type: boolean

Default: t

Defines space handling after keywords in a control flow statement.


lsp-typescript-format-insert-space-after-opening-and-before-closing-jsx-expression-braces#

Type: boolean

Default: nil

Defines space handling after opening and before closing JSX expression braces.


lsp-typescript-format-insert-space-after-opening-and-before-closing-nonempty-braces#

Type: boolean

Default: t

Defines space handling after opening and before closing non-empty braces. Requires using TypeScript 2.3.0 or newer in the workspace.


lsp-typescript-format-insert-space-after-opening-and-before-closing-nonempty-brackets#

Type: boolean

Default: nil

Defines space handling after opening and before closing non-empty brackets.


lsp-typescript-format-insert-space-after-opening-and-before-closing-nonempty-parenthesis#

Type: boolean

Default: nil

Defines space handling after opening and before closing non-empty parenthesis.


lsp-typescript-format-insert-space-after-opening-and-before-closing-template-string-braces#

Type: boolean

Default: nil

Defines space handling after opening and before closing template string braces.


lsp-typescript-format-insert-space-after-semicolon-in-for-statements#

Type: boolean

Default: t

Defines space handling after a semicolon in a for statement.


lsp-typescript-format-insert-space-after-type-assertion#

Type: boolean

Default: nil

Defines space handling after type assertions in TypeScript. Requires using TypeScript 2.4 or newer in the workspace.


lsp-typescript-format-insert-space-before-and-after-binary-operators#

Type: boolean

Default: t

Defines space handling after a binary operator.


lsp-typescript-format-insert-space-before-function-parenthesis#

Type: boolean

Default: nil

Defines space handling before function argument parentheses.


lsp-typescript-format-place-open-brace-on-new-line-for-control-blocks#

Type: boolean

Default: nil

Defines whether an open brace is put onto a new line for control blocks or not.


lsp-typescript-format-place-open-brace-on-new-line-for-functions#

Type: boolean

Default: nil

Defines whether an open brace is put onto a new line for functions or not.


lsp-typescript-implementations-code-lens-enabled#

Type: boolean

Default: nil

Enable/disable implementations CodeLens. This CodeLens shows the implementers of an interface.


lsp-typescript-locale#

Type: (choice (const de) (const es) (const en) (const fr) (const it) (const ja) (const ko) (const ru) (const zh-CN) (const zh-TW) nil)

Default: nil


lsp-typescript-npm#

Type: (repeat string)

Default: nil

Specifies the path to the NPM executable used for Automatic Type Acquisition. Requires using TypeScript 2.3.4 or newer in the workspace.


lsp-typescript-preferences-import-module-specifier#

Type: (choice (const auto) (const relative) (const non-relative))

Default: auto

Infer the shortest path type.


lsp-typescript-preferences-quote-style#

Type: (choice (const auto) (const single) (const double))

Default: auto


lsp-typescript-preferences-rename-shorthand-properties#

Type: boolean

Default: t

Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.


lsp-typescript-references-code-lens-enabled#

Type: boolean

Default: nil

Enable/disable references CodeLens in TypeScript files.


lsp-typescript-report-style-checks-as-warnings#

Type: boolean

Default: t

Report style checks as warnings.


lsp-typescript-suggest-auto-imports#

Type: boolean

Default: t

Enable/disable auto import suggestions. Requires using TypeScript 2.6.1 or newer in the workspace.


lsp-typescript-suggest-complete-function-calls#

Type: boolean

Default: nil

Complete functions with their parameter signature.


lsp-typescript-suggest-complete-js-docs#

Type: boolean

Default: t

Enable/disable suggestion to complete JSDoc comments.


lsp-typescript-suggest-enabled#

Type: boolean

Default: t

Enabled/disable autocomplete suggestions.


lsp-typescript-suggest-paths#

Type: boolean

Default: t

Enable/disable suggestions for paths in import statements and require calls.


lsp-typescript-suggestion-actions-enabled#

Type: boolean

Default: t

Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace.


lsp-typescript-surveys-enabled#

Type: boolean

Default: t

Enabled/disable occasional surveys that help us improve VS Code`s JavaScript and TypeScript support.


lsp-typescript-tsc-auto-detect#

Type: (choice (const on) (const off) (const build) (const watch))

Default: on

Controls auto detection of tsc tasks.


lsp-typescript-tsdk#

Type: (repeat string)

Default: nil

Specifies the folder path containing the tsserver and lib*.d.ts files to use.


lsp-typescript-tsserver-log#

Type: (choice (const off) (const terse) (const normal) (const verbose))

Default: off

Enables logging of the TS server to a file. This log can be used to diagnose TS Server issues. The log may contain file paths, source code, and other potentially sensitive information from your project.


lsp-typescript-tsserver-plugin-paths#

Type: (repeat string)

Default: nil

Additional paths to discover Typescript Language Service plugins. Requires using TypeScript 2.3.0 or newer in the workspace.


lsp-typescript-tsserver-trace#

Type: (choice (const off) (const messages) (const verbose))

Default: off

Enables tracing of messages sent to the TS server. This trace can be used to diagnose TS Server issues. The trace may contain file paths, source code, and other potentially sensitive information from your project.


lsp-typescript-update-imports-on-file-move-enabled#

Type: (choice (const prompt) (const always) (const never))

Default: prompt

Enable/disable automatic updating of import paths when you rename or move a file in VS Code. Requires using TypeScript 2.9 or newer in the workspace.


lsp-typescript-validate-enable#

Type: boolean

Default: t

Enable/disable TypeScript validation.


lsp-vetur-completion-auto-import#

Type: boolean

Default: t

Include completion for module export and auto import them


lsp-vetur-completion-tag-casing#

Type: (choice (const initial) (const kebab))

Default: kebab

Casing conversion for tag completion


lsp-vetur-completion-use-scaffold-snippets#

Type: boolean

Default: t

Enable/disable Vetur`s built-in scaffolding snippets


lsp-vetur-dev-log-level#

Type: (choice (const INFO) (const DEBUG))

Default: INFO

The vls log level for development


lsp-vetur-dev-vls-path#

Type: string

Default: ``

The vls path for development


lsp-vetur-dev-vls-port#

Type: integer

Default: -1

The vls port for development


lsp-vetur-emmet#

Type: (choice (const never) (const inMarkupAndStylesheetFilesOnly) (const always))

Default: never

Controls the Emmet suggestions that show up in the suggestion/completion list.


lsp-vetur-experimental-template-interpolation-service#

Type: boolean

Default: nil

Whether to have template interpolation service


lsp-vetur-format-default-formatter-css#

Type: (choice (const none) (const prettier))

Default: prettier

Default formatter for