Created
February 5, 2023 17:04
-
-
Save saneef/5d8337a97a6ae5c85c45eb83c226cf4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Troubleshooting: LSP-typescript | |
## Version | |
- LSP: 1.22.0 | |
- Sublime Text: 4143 | |
## Server Test Run | |
- exit code: 0 | |
- output | |
``` | |
``` | |
## Server Configuration | |
- command | |
```json | |
[ | |
"${node_bin}", | |
"${server_path}", | |
"--stdio" | |
] | |
``` | |
- shell command | |
```sh | |
/Users/saneef/Library/Caches/fnm_multishells/78786_1675616593490/bin/node "/Users/saneef/Library/Caches/Sublime Text/Package Storage/LSP-typescript/18.7.0/typescript-language-server/node_modules/typescript-language-server/lib/cli.mjs" --stdio | |
``` | |
- selector | |
``` | |
source.js, source.jsx, source.ts, source.tsx | |
``` | |
- priority_selector | |
``` | |
source.js, source.jsx, source.ts, source.tsx | |
``` | |
- init_options | |
```json | |
{ | |
"locale": "en", | |
"maxTsServerMemory": 0, | |
"npmLocation": "", | |
"plugins": [], | |
"preferences": { | |
"allowIncompleteCompletions": true, | |
"allowRenameOfImportPath": true, | |
"allowTextChangesInNewFiles": true, | |
"autoImportFileExcludePatterns": [], | |
"displayPartsForJSDoc": true, | |
"generateReturnInDocTemplate": true, | |
"includeAutomaticOptionalChainCompletions": true, | |
"includeCompletionsForImportStatements": true, | |
"includeCompletionsForModuleExports": true, | |
"includeCompletionsWithClassMemberSnippets": true, | |
"includeCompletionsWithInsertText": true, | |
"includeCompletionsWithObjectLiteralMethodSnippets": true, | |
"includeCompletionsWithSnippetText": true, | |
"jsxAttributeCompletionStyle": "auto", | |
"providePrefixAndSuffixTextForRename": true, | |
"useLabelDetailsInCompletionEntries": true | |
}, | |
"tsserver": { | |
"logDirectory": "", | |
"logVerbosity": "off", | |
"path": "", | |
"trace": "off" | |
} | |
} | |
``` | |
- settings | |
```json | |
{ | |
"diagnostics": { | |
"ignoredCodes": [] | |
}, | |
"implicitProjectConfiguration": { | |
"checkJs": false, | |
"experimentalDecorators": false, | |
"module": "ESNext", | |
"strictFunctionTypes": true, | |
"strictNullChecks": true, | |
"target": "ES2020" | |
}, | |
"javascript": { | |
"format": { | |
"insertSpaceAfterCommaDelimiter": true, | |
"insertSpaceAfterConstructor": false, | |
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, | |
"insertSpaceAfterKeywordsInControlFlowStatements": true, | |
"insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false, | |
"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, | |
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, | |
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, | |
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, | |
"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, | |
"insertSpaceAfterSemicolonInForStatements": true, | |
"insertSpaceAfterTypeAssertion": false, | |
"insertSpaceBeforeAndAfterBinaryOperators": true, | |
"insertSpaceBeforeFunctionParenthesis": false, | |
"insertSpaceBeforeTypeAnnotation": false, | |
"placeOpenBraceOnNewLineForControlBlocks": false, | |
"placeOpenBraceOnNewLineForFunctions": false, | |
"semicolons": "ignore", | |
"trimTrailingWhitespace": true | |
}, | |
"inlayHints": { | |
"includeInlayEnumMemberValueHints": false, | |
"includeInlayFunctionLikeReturnTypeHints": false, | |
"includeInlayFunctionParameterTypeHints": false, | |
"includeInlayParameterNameHints": "none", | |
"includeInlayParameterNameHintsWhenArgumentMatchesName": false, | |
"includeInlayPropertyDeclarationTypeHints": false, | |
"includeInlayVariableTypeHints": false, | |
"includeInlayVariableTypeHintsWhenTypeMatchesName": false | |
} | |
}, | |
"statusText": "$version, $source", | |
"typescript": { | |
"format": { | |
"insertSpaceAfterCommaDelimiter": true, | |
"insertSpaceAfterConstructor": false, | |
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, | |
"insertSpaceAfterKeywordsInControlFlowStatements": true, | |
"insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false, | |
"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, | |
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, | |
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, | |
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, | |
"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, | |
"insertSpaceAfterSemicolonInForStatements": true, | |
"insertSpaceAfterTypeAssertion": false, | |
"insertSpaceBeforeAndAfterBinaryOperators": true, | |
"insertSpaceBeforeFunctionParenthesis": false, | |
"insertSpaceBeforeTypeAnnotation": false, | |
"placeOpenBraceOnNewLineForControlBlocks": false, | |
"placeOpenBraceOnNewLineForFunctions": false, | |
"semicolons": "ignore", | |
"trimTrailingWhitespace": true | |
}, | |
"inlayHints": { | |
"includeInlayEnumMemberValueHints": false, | |
"includeInlayFunctionLikeReturnTypeHints": false, | |
"includeInlayFunctionParameterTypeHints": false, | |
"includeInlayParameterNameHints": "none", | |
"includeInlayParameterNameHintsWhenArgumentMatchesName": false, | |
"includeInlayPropertyDeclarationTypeHints": false, | |
"includeInlayVariableTypeHints": false, | |
"includeInlayVariableTypeHintsWhenTypeMatchesName": false | |
} | |
} | |
} | |
``` | |
- env | |
```json | |
{ | |
"PATH": "/Users/saneef/Library/Caches/fnm_multishells/78786_1675616593490/bin:/Users/saneef/Library/Caches/fnm_multishells/78786_1675616593490/bin:" | |
} | |
``` | |
## Active view | |
- File name | |
``` | |
/Users/saneef/tmp/test-ts-project-copy/src/log.ts | |
``` | |
- Settings | |
```json | |
{ | |
"auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", | |
"lsp_active": true, | |
"syntax": "Packages/JavaScript/TypeScript.sublime-syntax" | |
} | |
``` | |
- base scope | |
``` | |
source.ts | |
``` | |
## Project / Workspace | |
- folders | |
```json | |
[ | |
"/Users/saneef/tmp/test-ts-project-copy" | |
] | |
``` | |
- is project: False | |
## LSP configuration | |
```json | |
{ | |
"clients": { | |
"clojure-lsp": { | |
"command": [ | |
"clojure-lsp" | |
], | |
"enabled": true, | |
"initializationOptions": {}, | |
"selector": "source.clojure" | |
} | |
}, | |
"diagnostics_panel_include_severity_level": 2, | |
"show_diagnostics_count_in_view_status": true, | |
"show_diagnostics_severity_level": 2, | |
"show_inlay_hints": true | |
} | |
``` | |
## System PATH | |
- /Users/saneef/.asdf/shims | |
- /opt/homebrew/opt/asdf/libexec/bin | |
- /Users/saneef/.yarn/bin | |
- /usr/local/sbin | |
- /Users/saneef/bin | |
- /usr/local/opt/fzf/bin | |
- /Users/saneef/Library/Caches/fnm_multishells/78786_1675616593490/bin | |
- /opt/homebrew/bin | |
- /opt/homebrew/sbin | |
- /usr/local/bin | |
- /System/Cryptexes/App/usr/bin | |
- /usr/bin | |
- /bin | |
- /usr/sbin | |
- /sbin | |
- /Library/Apple/usr/bin | |
- /Users/saneef/Library/Caches/fnm_multishells/76709_1675612982543/bin | |
- /opt/homebrew/bin | |
- /opt/homebrew/sbin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment