# Troubleshooting: LSP-typescript ## Version - LSP: 1.27.0 - Sublime Text: 4169 ## Server Test Run - exit code: 0 - output ``` ``` ## Server Configuration - command ```json [ "${node_bin}", "${server_path}", "--stdio" ] ``` - shell command ```sh "/Users/aashishsharma/Library/Caches/Sublime Text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin/node" "/Users/aashishsharma/Library/Caches/Sublime Text/Package Storage/LSP-typescript/18.18.1/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 { "completionDisableFilterText": true, "disableAutomaticTypingAcquisition": false, "locale": "en", "maxTsServerMemory": 0, "npmLocation": "", "plugins": [], "preferences": { "allowIncompleteCompletions": true, "allowRenameOfImportPath": true, "allowTextChangesInNewFiles": true, "autoImportFileExcludePatterns": [], "disableSuggestions": false, "displayPartsForJSDoc": true, "excludeLibrarySymbolsInNavTo": true, "generateReturnInDocTemplate": true, "importModuleSpecifierEnding": "auto", "importModuleSpecifierPreference": "shortest", "includeAutomaticOptionalChainCompletions": true, "includeCompletionsForImportStatements": true, "includeCompletionsForModuleExports": true, "includeCompletionsWithClassMemberSnippets": true, "includeCompletionsWithInsertText": true, "includeCompletionsWithObjectLiteralMethodSnippets": true, "includeCompletionsWithSnippetText": true, "includePackageJsonAutoImports": "auto", "interactiveInlayHints": true, "jsxAttributeCompletionStyle": "auto", "lazyConfiguredProjectsFromExternalProject": false, "organizeImportsAccentCollation": true, "organizeImportsCaseFirst": false, "organizeImportsCollation": "ordinal", "organizeImportsCollationLocale": "en", "organizeImportsIgnoreCase": "auto", "organizeImportsNumericCollation": false, "providePrefixAndSuffixTextForRename": true, "provideRefactorNotApplicableReason": true, "quotePreference": "auto", "useLabelDetailsInCompletionEntries": true }, "tsserver": { "fallbackPath": "", "logDirectory": "", "logVerbosity": "off", "path": "", "trace": "off", "useSyntaxServer": "auto" } } ``` - 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 }, "implementationsCodeLens": { "enabled": false }, "inlayHints": { "includeInlayEnumMemberValueHints": false, "includeInlayFunctionLikeReturnTypeHints": false, "includeInlayFunctionParameterTypeHints": false, "includeInlayParameterNameHints": "none", "includeInlayParameterNameHintsWhenArgumentMatchesName": false, "includeInlayPropertyDeclarationTypeHints": false, "includeInlayVariableTypeHints": false, "includeInlayVariableTypeHintsWhenTypeMatchesName": false }, "referencesCodeLens": { "enabled": false, "showOnAllFunctions": 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 }, "implementationsCodeLens": { "enabled": false }, "inlayHints": { "includeInlayEnumMemberValueHints": false, "includeInlayFunctionLikeReturnTypeHints": false, "includeInlayFunctionParameterTypeHints": false, "includeInlayParameterNameHints": "none", "includeInlayParameterNameHintsWhenArgumentMatchesName": false, "includeInlayPropertyDeclarationTypeHints": false, "includeInlayVariableTypeHints": false, "includeInlayVariableTypeHintsWhenTypeMatchesName": false }, "referencesCodeLens": { "enabled": false, "showOnAllFunctions": false } } } ``` - env ```json { "PATH": "/Users/aashishsharma/Library/Caches/Sublime Text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/Users/aashishsharma/Library/Caches/Sublime Text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:" } ``` ## Active view - File name ``` /Users/aashishsharma/Projects/Web/cbs-residential-web/apps/wl-customer-hub/src/components/homeHub/IntelligentRecommendations/components/RecommendationOverlay.jsx ``` - 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/JSX.sublime-syntax" } ``` - base scope ``` source.jsx ``` ## Project / Workspace - folders ```json [ "/Users/aashishsharma/Projects/Web/cbs-residential-web" ] ``` - is project: True - project data: ```json { "folders": [ { "path": "/Users/aashishsharma/Projects/Web/cbs-residential-web" } ] } ``` ## LSP configuration ```json { "diagnostics_panel_include_severity_level": 1, "log_debug": false, "lsp_code_actions_on_save": { "source.fixAll": true, "source.organizeImports": false }, "lsp_format_on_save": false, "show_diagnostics_count_in_view_status": true, "show_diagnostics_panel_on_save": 1, "show_diagnostics_severity_level": 4, "show_references_in_quick_panel": false } ``` ## System PATH - /Applications/Sublime Text.app/Contents/SharedSupport/bin - /opt/homebrew/bin - /opt/homebrew/sbin - /usr/local/bin - /System/Cryptexes/App/usr/bin - /usr/bin - /bin - /usr/sbin - /sbin - /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin - /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin - /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin - /usr/local/laps