Title: Support a file blacklist in tsserver configuration options · Issue #36391 · microsoft/TypeScript · GitHub
Open Graph Title: Support a file blacklist in tsserver configuration options · Issue #36391 · microsoft/TypeScript
X Title: Support a file blacklist in tsserver configuration options · Issue #36391 · microsoft/TypeScript
Description: My scenario is this: suppose I'm working in my editor, and I open a file which, by chance, crashes the language service. Repeatedly. (usually because of it's size or shape). Today, after the service crashes 5 times in short order, the se...
Open Graph Description: My scenario is this: suppose I'm working in my editor, and I open a file which, by chance, crashes the language service. Repeatedly. (usually because of it's size or shape). Today, after the servic...
X Description: My scenario is this: suppose I'm working in my editor, and I open a file which, by chance, crashes the language service. Repeatedly. (usually because of it's size or shape). Today, after th...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/36391
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support a file blacklist in tsserver configuration options","articleBody":"My scenario is this: suppose I'm working in my editor, and I open a file which, by chance, crashes the language service. Repeatedly. (usually because of it's size or shape). Today, after the service crashes 5 times in short order, the service is disabled by the editor (which if it crashes on load, is what will occur). What I propose is this; if the service crashes after a file open request is issued, and we would shut down the service, instead we automatically add the file to a workspace-local tsserver blacklist config (probably in `.vscode/settings.json`) and reload the language service with the new option. The language service will then refuse to actually load the blacklisted file contents, instead reporting them as empty files/empty modules/empty json documents and potentially issue a warning-type error message in the diagnostics that certain files are blacklisted, which may affect the compilation.\r\n\r\ncc @mjbvz do you think this'd be a good idea for a slightly more progressive degradation of experience when the language service has trouble with a file?","author":{"url":"https://github.com/weswigham","@type":"Person","name":"weswigham"},"datePublished":"2020-01-24T01:02:43Z","url":"https://github.com/microsoft/TypeScript/issues/36391"}
| 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:d302d7df-9912-514b-03ee-d7501fc81dd0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C856:2270F4:2CE4A74:3B9BFA5:6B01CBA6 |
| html-safe-nonce | 4a261f2d31055d38590c0d65eab36a7a7af1d49b0d051d86ce5e1a53612e5bae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODU2OjIyNzBGNDoyQ0U0QTc0OjNCOUJGQTU6NkIwMUNCQTYiLCJ2aXNpdG9yX2lkIjoiMjMxODY1ODkwOTk1MjM5NjE5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 116a290f48d8b1e2dba2358a0bc83270a703fcdd6f1aa033ad62cd1191430a33 |
| hovercard-subject-tag | issue:554493242 |
| 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/36391/issue_layout |
| twitter:image | https://opengraph.githubassets.com/916f67c36920a4de5f082788f1a49a9c5b97716e8346d17f936cca454cc35ec0/microsoft/TypeScript/issues/36391 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/916f67c36920a4de5f082788f1a49a9c5b97716e8346d17f936cca454cc35ec0/microsoft/TypeScript/issues/36391 |
| og:image:alt | My scenario is this: suppose I'm working in my editor, and I open a file which, by chance, crashes the language service. Repeatedly. (usually because of it's size or shape). Today, after the servic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | weswigham |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width