-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Implement interface helper does not consider what is already implemented on base classes #19847
Comments
PRs welcomed... |
I would like to work on this issue but I need some guidance |
sure. The code for this fix is in https://github.com/Microsoft/TypeScript/blob/master/src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts The fix should probably be in https://github.com/Microsoft/TypeScript/blob/d998e97d8c64acf1ed4b8cd508a4589c110bd3aa/src/services/codefixes/helpers.ts#L36 to change |
@mhegazy I've made the required changes and would like to test now. How can I test whether the issue is fixed? Also how to debug ts compiler changes? PS: I used vscode to reproduce the issue. |
VSCode ships with an older version of TypeScript. Please see Using Newer TypeScript Versions documentation for more details on updating your VSCode to use a different version of TypeScript. |
u also should write a unit test for it, see https://github.com/Microsoft/TypeScript/blob/master/tests/cases/fourslash/codeFixClassImplementInterfaceProperty.ts |
@mhegazy @Tyriar Need help debugging ts executions from vscode. I tried putting a Thanks in advance. |
@mjbvz might be able to help with debugging in vscode |
Ping @mjbvz. Can you help with this? |
@shobhitchittora To debug the ts server loaded by code: First point your vscode
Using a local build of code, change the Attach to the ts server spawned by the local build of code using: {
"type": "node",
"request": "attach",
"name": "Attach to TS Server",
"protocol": "inspector",
"port": 5859
} |
A few updates on this thread -
Blocker-
|
This issue should be closed. It no longer happens since 3.0. (Had my eye on fixing it and found I had nothing to fix :) ) |
Confirmed that this is fixed with TS 3.7.5 |
TypeScript Version: 2.6.1 (VS Code Insiders)
Code
When I implement interface
IBase
, it's not figuring out which methods are already implemented on the base classes.Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: