Title: Filter keyword completions based on context · Issue #21200 · microsoft/TypeScript · GitHub
Open Graph Title: Filter keyword completions based on context · Issue #21200 · microsoft/TypeScript
X Title: Filter keyword completions based on context · Issue #21200 · microsoft/TypeScript
Description: When using vscode, there are times when suggestions are poorly suggested. Example (Pipe is the cursor): export class MyClass { public myMethod() { | } } When I am at that location, the words constructor , public, private, etc. shouldn't ...
Open Graph Description: When using vscode, there are times when suggestions are poorly suggested. Example (Pipe is the cursor): export class MyClass { public myMethod() { | } } When I am at that location, the words constr...
X Description: When using vscode, there are times when suggestions are poorly suggested. Example (Pipe is the cursor): export class MyClass { public myMethod() { | } } When I am at that location, the words constr...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/21200
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Filter keyword completions based on context","articleBody":"When using vscode, there are times when suggestions are poorly suggested.\r\n\r\nExample (Pipe is the cursor):\r\n\r\n```ts\r\nexport class MyClass {\r\n\r\n public myMethod() {\r\n |\r\n }\r\n\r\n}\r\n```\r\n\r\nWhen I am at that location, the words `constructor` , `public`, `private`, etc. shouldn't be suggested. With the change of how vscode selects the best word, when I type `con` it suggests `console`, `constructor`, and others. Due to habit I see `console` on top of the list and press enter, however `constructor` gets inserted because of vscode suggestion logic (this gets annoying).\r\n\r\nI feel that the best way around this would be to remove items from the suggestions if they are not valid within that scope at the cursors location.","author":{"url":"https://github.com/TheColorRed","@type":"Person","name":"TheColorRed"},"datePublished":"2018-01-16T16:09:50Z","url":"https://github.com/microsoft/TypeScript/issues/21200"}
| 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:bf26e33e-38b8-a4fe-b785-a52dedfab628 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B570:1CEA6F:AEC34E:E8A123:6B00EBCB |
| html-safe-nonce | 8535753b259bea0da7d03ead7e01bac5abb42db5580e6a9e5db7f1fb897a5a69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTcwOjFDRUE2RjpBRUMzNEU6RThBMTIzOjZCMDBFQkNCIiwidmlzaXRvcl9pZCI6IjY1MzA2MTAzOTM3MDA2OTA4OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c10667d52c43e555e5c99e55d38e1dc97199943b5312f2482bbe33d4efed9343 |
| hovercard-subject-tag | issue:288963789 |
| 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/microsoft/TypeScript/21200/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dda32c1fa2ebc4d4a87d5878f1dbaabbeb599795e0ad825ec98229de0e51cd3d/microsoft/TypeScript/issues/21200 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dda32c1fa2ebc4d4a87d5878f1dbaabbeb599795e0ad825ec98229de0e51cd3d/microsoft/TypeScript/issues/21200 |
| og:image:alt | When using vscode, there are times when suggestions are poorly suggested. Example (Pipe is the cursor): export class MyClass { public myMethod() { | } } When I am at that location, the words constr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheColorRed |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width