Title: Completion not filtering/sorting by prefix · Issue #630 · sourcegraph/javascript-typescript-langserver · GitHub
Open Graph Title: Completion not filtering/sorting by prefix · Issue #630 · sourcegraph/javascript-typescript-langserver
X Title: Completion not filtering/sorting by prefix · Issue #630 · sourcegraph/javascript-typescript-langserver
Description: Hello! I'm working on a tool which uses javascript-typescript-langserver among other LSPs. Diagnostics work fine, but I'm having trouble (or am I?) with the way completion works. Consider the example: I invoke completion (| is the positi...
Open Graph Description: Hello! I'm working on a tool which uses javascript-typescript-langserver among other LSPs. Diagnostics work fine, but I'm having trouble (or am I?) with the way completion works. Consider the examp...
X Description: Hello! I'm working on a tool which uses javascript-typescript-langserver among other LSPs. Diagnostics work fine, but I'm having trouble (or am I?) with the way completion works. Consider t...
Opengraph URL: https://github.com/sourcegraph/javascript-typescript-langserver/issues/630
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Completion not filtering/sorting by prefix","articleBody":"Hello! I'm working on a tool which uses `javascript-typescript-langserver` among other LSPs.\r\n\r\nDiagnostics work fine, but I'm having trouble (or am I?) with the way completion works. Consider the example:\r\n\r\n1) I invoke completion (`|` is the position of the cursor I send with `CompletionParams.Position`):\r\n\r\n```\r\ndocument.body.|textContent = user; \r\n```\r\n\r\nand get all kinds of relevant stuff, starting with `accessKey`, and including the `textContent`.\r\n\r\n2) Now I invoke the completion here:\r\n\r\n```\r\ndocument.body.tex|tContent = user; \r\n```\r\n\r\nand I get the very same result, not filtered or sorted by the `tex` prefix.\r\n\r\nIs it an expected behaviour? Is it LSP client's job to sort/filter the completion suggestions? Thank you!\r\n\r\nBtw, [theia-ide/typescript-language-server/](https://github.com/theia-ide/typescript-language-server/) displays the same behaviour.","author":{"url":"https://github.com/brainoutsource","@type":"Person","name":"brainoutsource"},"datePublished":"2019-09-05T04:59:27Z","url":"https://github.com/sourcegraph/javascript-typescript-langserver/issues/630"}
| 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:1b02f6a3-5793-1d0a-166e-3ba731f4b1fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADAA:36A3E:E3B57A:130EBAE:6B0108CB |
| html-safe-nonce | 1178322640b3c64a19d8ea0fc509f1a94a04e2aed5c55d2f9a6a8152c11327ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREFBOjM2QTNFOkUzQjU3QToxMzBFQkFFOjZCMDEwOENCIiwidmlzaXRvcl9pZCI6Ijg3MDYxMzAxNDUwOTk5NzQ4NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ae2e58c10e05658a12ec8e8a153b0b66cb25bf987591024b43638ecc5efe8bce |
| hovercard-subject-tag | issue:489528328 |
| 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/630/issue_layout |
| twitter:image | https://opengraph.githubassets.com/46d150372c31110dc8c95616e333a7eb41d56e6dbe3be09087a77d2be5695e47/sourcegraph/javascript-typescript-langserver/issues/630 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/46d150372c31110dc8c95616e333a7eb41d56e6dbe3be09087a77d2be5695e47/sourcegraph/javascript-typescript-langserver/issues/630 |
| og:image:alt | Hello! I'm working on a tool which uses javascript-typescript-langserver among other LSPs. Diagnostics work fine, but I'm having trouble (or am I?) with the way completion works. Consider the examp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brainoutsource |
| 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