-
Notifications
You must be signed in to change notification settings - Fork 319
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 Type Hierarchy for LSP #2527
Comments
It seems like the Dart extension may not have activated correctly (there should be a Dart or Flutter version number in the status bar when it has). Can you check Help -> Toggle Developer Tools and see if there are any errors listed about the extension failing to activate? Thanks! |
@DanTup |
Ah, ok - in the original screenshot it didn't show Flutter/Dart versions in the status bar, but your latest one does. Are you using the LSP preview mode ( |
Hi Dan, @DanTup |
Update: |
I think this is a bug that it doesn't work for LSP (eg. when you have |
@bwilkerson since I can't add screenshots to Gerrit, here's how this looks with https://dart-review.googlesource.com/c/sdk/+/264002. I may look at adding the type arguments to the class names on the nodes (I think it'd seem more natural to see |
I like the way that looks. Actual type arguments might be informative. We should be able to just drop everything after the first |
By "actual" do you mean those actually used in the declaration of the "parent" node (eg.
Yeah, that could work - although there are a few places we've talked about "element references" in the past and I wonder if they're a better solution here. I have a somewhat-abandoned CL that made it easier to get to/from elements<->strings and I wonder if it's worth extracting and finishing that to use in places like this (and inlay hints tooltips that I need to work on). |
By "actual" I meant the arguments from the type. For example, in
the actual type arguments for
the actual type arguments for
I don't remember that CL exactly; does it make use of |
You may not have seen it - it was related to trying to fix potential inconsistencies in diagnostic context messages (it requires some input, though I don't know if the benefit it provides is worth the apparent complexity it's adding) - https://dart-review.googlesource.com/c/sdk/+/240920 It uses the |
If you're storing the But for this purpose |
Fixes Dart-Code/Dart-Code#3313. Fixes Dart-Code/Dart-Code#2527. Change-Id: I9f471fd3d7d55999795fee7ab4761e906566bd10 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264002 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
I'll have a look and see if this is something I can add so I can use this here and in a few other places, thanks! I've opened #4217 to track including the type arguments and will close this one as the basic functionality is implemented (dart-lang/sdk@6f8d1e4 - shipping in the SDK rather than Dart-Code). |
How can I revover this function? Thanks!
My IDE:
Name: Visual Studio Code
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:33:47.663Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.7.0
My Flutter and Dart SDK :3.11.0
The text was updated successfully, but these errors were encountered: