Title: Support leading slash imports using "paths" in tsconfig.json · Issue #680 · sourcegraph/javascript-typescript-langserver · GitHub
Open Graph Title: Support leading slash imports using "paths" in tsconfig.json · Issue #680 · sourcegraph/javascript-typescript-langserver
X Title: Support leading slash imports using "paths" in tsconfig.json · Issue #680 · sourcegraph/javascript-typescript-langserver
Description: Hello, It seems this language server does not support the import style of import Hello from '/folder/hello'; using the tsconfig.json setting: // ... "paths": { /* Support absolute /imports/* with a leading '/' */ "/*": ["*"] }, // ... Te...
Open Graph Description: Hello, It seems this language server does not support the import style of import Hello from '/folder/hello'; using the tsconfig.json setting: // ... "paths": { /* Support absolute /imports/* with a...
X Description: Hello, It seems this language server does not support the import style of import Hello from '/folder/hello'; using the tsconfig.json setting: // ... "paths": { /* Support absolute...
Opengraph URL: https://github.com/sourcegraph/javascript-typescript-langserver/issues/680
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support leading slash imports using \"paths\" in tsconfig.json","articleBody":"Hello,\r\n\r\nIt seems this language server does not support the import style of \r\n```ts\r\nimport Hello from '/folder/hello';\r\n```\r\nusing the `tsconfig.json` setting:\r\n```js\r\n// ...\r\n \"paths\": {\r\n /* Support absolute /imports/* with a leading '/' */\r\n \"/*\": [\"*\"]\r\n },\r\n// ...\r\n```\r\n**Test case:** https://github.com/javoire/sourcegraph-javascript-typescript-langserver-testcase\r\n\r\nVSCode supports it (which I believe uses [tsserver](https://github.com/microsoft/TypeScript), and https://github.com/theia-ide/typescript-language-server supports it.\r\n\r\nHere's an example result from me using Neovim and https://github.com/autozimu/LanguageClient-neovim:\r\n\r\n\r\n\r\nCheers\r\n","author":{"url":"https://github.com/javoire","@type":"Person","name":"javoire"},"datePublished":"2020-05-10T03:11:57Z","url":"https://github.com/sourcegraph/javascript-typescript-langserver/issues/680"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:77f4e404-f213-60dc-9831-68f3828c8561 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C288:22DB35:10C1398:158863C:6B01062C |
| html-safe-nonce | 8ddaf8b42ed62e100373fb0e3ba2219a52b3b7e8dba8e63dfe2bcf0a80802e30 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjg4OjIyREIzNToxMEMxMzk4OjE1ODg2M0M6NkIwMTA2MkMiLCJ2aXNpdG9yX2lkIjoiNDc3MTY2NzYyOTIzODcxNTk0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fda1c728e5b4cda532ad00d25ffc81161aad6ae921bb387ab96f5a3456bfa7bd |
| hovercard-subject-tag | issue:615305669 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sourcegraph/javascript-typescript-langserver/680/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f473285e6a79669abd6341812fbabda5b12a154cf36697b2841b3526d6e2af88/sourcegraph/javascript-typescript-langserver/issues/680 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f473285e6a79669abd6341812fbabda5b12a154cf36697b2841b3526d6e2af88/sourcegraph/javascript-typescript-langserver/issues/680 |
| og:image:alt | Hello, It seems this language server does not support the import style of import Hello from '/folder/hello'; using the tsconfig.json setting: // ... "paths": { /* Support absolute /imports/* with a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | javoire |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/sourcegraph/javascript-typescript-langserver git https://github.com/sourcegraph/javascript-typescript-langserver.git |
| octolytics-dimension-user_id | 3979584 |
| octolytics-dimension-user_login | sourcegraph |
| octolytics-dimension-repository_id | 68805662 |
| octolytics-dimension-repository_nwo | sourcegraph/javascript-typescript-langserver |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68805662 |
| octolytics-dimension-repository_network_root_nwo | sourcegraph/javascript-typescript-langserver |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width