-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discussion] Enable stricter TypeScript checks #1208
Comments
I 100% agree and will be happy to help! Regarding the specific compiler options, I would maybe reconsider |
Fantastic!
Good point. I agree, this should be linted as a warning not cause an error. If I am not mistaken it also already is via eslint no-unused-vars |
Thanks for raising this issue! I totally agree. |
@ElianHugh Would you like to test if live share functionality works? I tried live share, but it does not seem to work as usual as I cannot make guest attach to a new session and have shared plot and View, help tabs. It does not work with the current release either. Not sure if I'm missing something? Other than live share, everything seems to work nicely. |
Thanks for testing. This is likely a bug, I will investigate. |
Sounds like something wrong with the liveshare API, will investigate. Thanks for the heads up! Edit: definitely not an issue with the PR. issue is stemming from the shareService API failing for some reason |
I've bumped the liveshare thread here, but given this is happening independent of the PR, this shouldn't be a blocker for merging :) |
* Enable strict ckecks in tsconfig.json * Refactoring for strict TS * strict-ts lineCache.ts * Strict ts linterConfig.ts * strict ts preview.ts and some refactoring * Strict ts languageService.ts and use ES6 imports * Add catchAsError utility * Strict ts completions.ts * Strict ts rstudioapi.ts * Strict ts rTerminal.ts * Strict ts selection.ts * Begin work on strict ts session.ts * Strict ts tasks.ts * Strict ts workspaceViewer.ts * Help related code * Strict ts rmarkdown * Strict ts liveShare * Fix some propagated undefined * Strict ts tests, add types for glob * Strict ts httpgd * Strict ts session.ts * Finish up strict ts * Fix lint * Small changes * Small fix * Adjust wrong config default values Co-authored-by: ManuelHentschel <53863351+ManuelHentschel@users.noreply.github.com>
Is your feature request related to a problem? Please describe.
There are currently no additional TypeScript checks enabled in .tsconfig (/~https://github.com/REditorSupport/vscode-R/blob/master/tsconfig.json).
Using strict-mode in TypeScript is recommended: https://www.typescriptlang.org/tsconfig#strict
Opting out on a per-case basis via
// @ts-ignore
orfoo as FooType
should be preferred to indicate to other developers that a statement is not an error but a conscious decision.Describe the solution you'd like
The VSCode Python extension (see) uses the following settings:
Enabling the options below shows quite a number of errors:
(For reference, if only
"strict"
is enabled it showsFound 295 errors in 31 files.
)PR
If there is agreement on enabling strict mode I volunteer to work on a PR that fixes the existing errors. (I don't want to start working on it if its not desired)
The text was updated successfully, but these errors were encountered: