Skip to content

Commit

Permalink
feat: Update TS config
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Aug 26, 2024
1 parent c36b95b commit 99cd4a9
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions clients/lsp-javascript.el
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,23 @@ workspace."
(const "non-relative"))
:package-version '(lsp-mode . "6.1"))

(defcustom lsp-typescript-preferences-import-module-specifier "auto"
(defcustom lsp-typescript-preferences-import-module-specifier-preference "shortest"
"Infer the shortest path type."
:type '(choice
(const "auto")
(const "shortest")
(const "project-relative")
(const "relative")
(const "non-relative"))
(const "non-relative'"))
:package-version '(lsp-mode . "9.0.1"))

(defcustom lsp-typescript-preferences-import-module-specifier-ending "auto"
"Determines whether we import `foo/index.ts' as `foo', `foo/index',
or `foo/index.js'"
:type '(choice
(const "auto")
(const "minimal")
(const "index")
(const "js"))
:package-version '(lsp-mode . "6.1"))

(defcustom lsp-javascript-preferences-rename-shorthand-properties t
Expand Down Expand Up @@ -687,7 +698,8 @@ name (e.g. `data' variable passed as `data' parameter)."
("typescript.implementationsCodeLens.enabled" lsp-typescript-implementations-code-lens-enabled t)
("typescript.locale" lsp-typescript-locale)
("typescript.npm" lsp-typescript-npm)
("typescript.preferences.importModuleSpecifier" lsp-typescript-preferences-import-module-specifier)
("typescript.preferences.importModuleSpecifierPreference" lsp-typescript-preferences-import-module-specifier-preference)
("typescript.preferences.importModuleSpecifierEnding" lsp-typescript-preferences-import-module-specifier-ending)
("typescript.preferences.quoteStyle" lsp-typescript-preferences-quote-style)
("typescript.preferences.renameShorthandProperties" lsp-typescript-preferences-rename-shorthand-properties t)
("typescript.referencesCodeLens.enabled" lsp-typescript-references-code-lens-enabled t)
Expand Down

0 comments on commit 99cd4a9

Please sign in to comment.