-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Fix 'The operand of a 'delete' operator must be optional' errors in VS Code codebase #96022
Comments
I've marked this as April since it blocks us from picking up the latest TS build and providing feedback on it /cc @DanielRosenwasser for awareness of the impact of this change |
Actually looks like TS may be reverting this change for TS 3.9. We should still fix these issues but don't need to do it this iteration |
@mjbvz How can force the error so I can make sure it's fixed? |
In the root of the VS Code project:
|
Closing this since most bugs have been fixed. I believe that TS 4.0 should add this check back |
The latest TS 3.9 nightly catches a potential strict null check violation where you delete a property that is not marked optional:
This revealed a few potential errors in our code:
vs/workbench/contrib/tasks/browser/taskQuickPick.ts(56,11)
@alexr00vs/workbench/contrib/tasks/browser/taskQuickPick.ts(57,11)
@alexr00vs/workbench/contrib/tasks/common/taskConfiguration.ts(1204,13)
@alexr00vs/workbench/contrib/search/test/browser/queryBuilder.test.ts(954,10)
@roblourensvs/workbench/contrib/search/test/browser/queryBuilder.test.ts(955,10)
@roblourensvs/workbench/contrib/search/common/searchModel.ts(1103,10)
@roblourensvs/workbench/contrib/debug/browser/debugToolBar.ts(274,11)
@isidornvs/workbench/browser/parts/statusbar/statusbarPart.ts(706,12)
@bpaserovs/platform/environment/node/argv.ts(253,9)
@aeschlivs/workbench/api/node/extHostDebugService.ts(100,12)
@weinandvs/code/electron-main/window.ts(762,11)
@bpaserovs/code/electron-main/app.ts(196,12)
@mjbvzvs/server/remoteCli.ts(128,9)
@aeschliI've made some initial assignments but please reassign if you are not the correct owner
The text was updated successfully, but these errors were encountered: