-
Notifications
You must be signed in to change notification settings - Fork 122
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
ivy-native issue - duplicated "Find all references" results #1124
Comments
I think it's not related to that issue. my guess is that one result comes from vscode ts server, another comes from Angular LS. |
@kunajs - What version of the extension are you using? v11.2.1 is known to have problems. |
@kunajs My mistake, I didn't realize there was another release. Do you have a project that you can share so we can reproduce the issue? I have not been able to reproduce this locally. |
@kunajs - I am able to reproduce this locally now. It appears VSCode may have a different internal implementation of "find all references" and "go to references". It was assumed that VSCode de-duplicated these results in both places but they may only be doing that for their https://github.com/microsoft/vscode/blob/ea4d99921cc790d49194e897021faee02a1847f7/src/vs/editor/contrib/gotoSymbol/referencesModel.ts#L144-L174 We can add a workaround on our end for this. I expect that this should also be considered an issue on the VSCode side that should be fixed there as well. |
The "Find all references" command is provided by the Reference Search View extension. It doesn't appear as though they have the same de-duplication logic there: https://github.com/microsoft/vscode-references-view/blob/f1b526b39c97981c81d52a98d6e66f8f699dc38a/src/references/model.ts#L63-L74 |
PR to fix in the vscode API: microsoft/vscode#117424 |
…uests VSCode only de-duplicates references results for "go to references" requests but does not de-duplicate them for "find all references" requests. The result is that users see duplicate references for results in TypeScript files - one from the built-in TS extension and one from us. While this is an issue in VSCode (see microsoft/vscode#117095) this commit provides a quick workaround on our end until it can be addressed there. This commit should be reverted when microsoft/vscode/issues/117095 is resolved. fixes angular/vscode-ng-language-service#1124
…uests VSCode only de-duplicates references results for "go to references" requests but does not de-duplicate them for "find all references" requests. The result is that users see duplicate references for results in TypeScript files - one from the built-in TS extension and one from us. While this is an issue in VSCode (see microsoft/vscode#117095) this commit provides a quick workaround on our end until it can be addressed there. This commit should be reverted when microsoft/vscode/issues/117095 is resolved. fixes angular/vscode-ng-language-service#1124
…uests (#41041) VSCode only de-duplicates references results for "go to references" requests but does not de-duplicate them for "find all references" requests. The result is that users see duplicate references for results in TypeScript files - one from the built-in TS extension and one from us. While this is an issue in VSCode (see microsoft/vscode#117095) this commit provides a quick workaround on our end until it can be addressed there. This commit should be reverted when microsoft/vscode/issues/117095 is resolved. fixes angular/vscode-ng-language-service#1124 PR Close #41041
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Describe the bug
After enabling the ivy-native feature, "Find all references" returns duplicated occurences of references (even with v11.2.1).
With unchecked "Experimental-Ivy" feature it works fine.
Seems to be somehow related to this issue: #1109
The text was updated successfully, but these errors were encountered: