Title: Add version check when loading tsserver plugins · Issue #19224 · microsoft/TypeScript · GitHub
Open Graph Title: Add version check when loading tsserver plugins · Issue #19224 · microsoft/TypeScript
X Title: Add version check when loading tsserver plugins · Issue #19224 · microsoft/TypeScript
Description: Problem A TS Server plugin may depend on a TypeScript API that is only available in specific versions of typescript, such as TS 2.6+ for example. Currently the TypeScript server will always attempt to load this plugin, even if it does no...
Open Graph Description: Problem A TS Server plugin may depend on a TypeScript API that is only available in specific versions of typescript, such as TS 2.6+ for example. Currently the TypeScript server will always attempt...
X Description: Problem A TS Server plugin may depend on a TypeScript API that is only available in specific versions of typescript, such as TS 2.6+ for example. Currently the TypeScript server will always attempt...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/19224
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add version check when loading tsserver plugins","articleBody":"**Problem**\r\nA TS Server plugin may depend on a TypeScript API that is only available in specific versions of typescript, such as TS 2.6+ for example. Currently the TypeScript server will always attempt to load this plugin, even if it does not meet those requirements.\r\n\r\n**Proposal**\r\nIn the plugin's `package.json`, add a `engines: typescriptserver` section:\r\n\r\n```\r\n{\r\n \"engines\": {\r\n \"typescriptserver\": \"^2.6.0\"\r\n }\r\n}\r\n```\r\n\r\nthis entry would specify a semver that the typescript server would check against its own version to determine if a plugin can be loaded or not. If a plugin is not compatible, we should generate an error event (see #18849)","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2017-10-16T18:33:57Z","url":"https://github.com/microsoft/TypeScript/issues/19224"}
| 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:3cfa8419-30f9-1c56-1324-9a96c3809f64 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC76:3D4705:728736:959966:6B00D467 |
| html-safe-nonce | 9130b76c77008904308c24387f4edbf37980f79851d5764dba84cd1ca18194b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzc2OjNENDcwNTo3Mjg3MzY6OTU5OTY2OjZCMDBENDY3IiwidmlzaXRvcl9pZCI6IjIyNjUyNjM3OTQ5MjQwODIyNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0cc58ac4c0fe3d0effa42bd8a3a8ffa809ffe750b62ff2b9faf4d9e87315042c |
| hovercard-subject-tag | issue:265870528 |
| 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/19224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0cc7d0c0fe7cd5adf776987d9e9add995e3fb813c41122307e38a84c4596e34a/microsoft/TypeScript/issues/19224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0cc7d0c0fe7cd5adf776987d9e9add995e3fb813c41122307e38a84c4596e34a/microsoft/TypeScript/issues/19224 |
| og:image:alt | Problem A TS Server plugin may depend on a TypeScript API that is only available in specific versions of typescript, such as TS 2.6+ for example. Currently the TypeScript server will always attempt... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjbvz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5 |
| 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 | 4943239a6d2c591325dad6e5c313e1cafda877f6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width