--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discuss+unsubscribe@dartlang.org.
Visit this group at https://groups.google.com/a/dartlang.org/group/analyzer-discuss/.
Maybe we should add the corresponding SignatureHelp API.
Do you know why it has multiple SignatureInformation objects?Is it for invocations inside of invocations?
So, here the caret is in "bar", which is in "foo".But should SignatureHelp also include "baz" signature?How about "blah" in "main" or outside of "main"?Or are these multiple signatures only for overloads?
On Sun, 7 Aug 2016 at 21:29 'Konstantin Shcheglov' via Dart Analyzer Discussion <analyzer...@dartlang.org> wrote:Maybe we should add the corresponding SignatureHelp API.I'd definitely vote for that as a feature! I should have a look at what the other IDEs are doing; it seems weird if none of them are giving any help on the arguments to methods/constructors?!
Do you know why it has multiple SignatureInformation objects?Is it for invocations inside of invocations?So, here the caret is in "bar", which is in "foo".But should SignatureHelp also include "baz" signature?How about "blah" in "main" or outside of "main"?Or are these multiple signatures only for overloads?It's just for overloads. You get given a Position in the request for signature info and you return an array or SignatureInformation which correspond to each overload. You also include indexes for which overload and parameters are selected (since it's possible the call is already complete and the user re-typed a "(" or ","). Each overload (SignatureInformation) contains a label and doc and an array of ParameterInfo. Each parameter includes a further label and doc.
As far as I can tell, there is no support for showing the "outer" argument info if you're cursor is as shown in your image (which isn't a surprise to me, in Visual Studio/.NET you'd only get the help for bar there, but move your cursor outside of the parens and then you'd be back to foo's help).Obviously I'd love to see support for all of this in the server; but if anyone knows if it's possible to get the required info (even if parsing from other data) in the meantime; it'd be useful. I'm trying to pick Dart up again and I'm really missing being able to see overload/arg help! ;(Danny
--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discuss+unsubscribe@dartlang.org.
Visit this group at https://groups.google.com/a/dartlang.org/group/analyzer-discuss/.
IDEA parses Dart code itself, and uses this to map offsets to parameters.
OKDart does not have overloads, so just one SignatureInformation.
Simples? 😂
--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discuss+unsubscribe@dartlang.org.
Visit this group at https://groups.google.com/a/dartlang.org/group/analyzer-discuss/.
Unlike Java, in Dart parameters don't have documentation - there is no @param of something like.Instead parameters are freely referenced using [parameter_name] markup in the method documentation.So, for parameters we can provide their name, type and kind (required, optional positional, optional named).
--
Let's use https://github.com/dart-lang/sdk/issues/27034 to hammer out the finer points of the API.Will the proposal there get you the information you need?Would this API be useful to other tools, and if so what changes would we need to make for them?BrianOn Sun, Aug 7, 2016 at 2:46 PM, Danny Tuppeny <da...@tuppeny.com> wrote:On Sun, 7 Aug 2016, 22:38 'Konstantin Shcheglov' via Dart Analyzer Discussion, <analyzer...@dartlang.org> wrote:Unlike Java, in Dart parameters don't have documentation - there is no @param of something like.Instead parameters are freely referenced using [parameter_name] markup in the method documentation.So, for parameters we can provide their name, type and kind (required, optional positional, optional named).Oh yeah, whoops! Sounds reasonable; when can I have it? 😂--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discu...@dartlang.org.
--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discu...@dartlang.org.
Sounds great to me; just one minor tweak I've suggested on the GH Issue (parameter index for cursor location).
On Mon, 8 Aug 2016 at 16:40 'Brian Wilkerson' via Dart Analyzer Discussion <analyzer...@dartlang.org> wrote:
Let's use https://github.com/dart-lang/sdk/issues/27034 to hammer out the finer points of the API.Will the proposal there get you the information you need?Would this API be useful to other tools, and if so what changes would we need to make for them?BrianOn Sun, Aug 7, 2016 at 2:46 PM, Danny Tuppeny <da...@tuppeny.com> wrote:On Sun, 7 Aug 2016, 22:38 'Konstantin Shcheglov' via Dart Analyzer Discussion, <analyzer...@dartlang.org> wrote:Unlike Java, in Dart parameters don't have documentation - there is no @param of something like.Instead parameters are freely referenced using [parameter_name] markup in the method documentation.So, for parameters we can provide their name, type and kind (required, optional positional, optional named).Oh yeah, whoops! Sounds reasonable; when can I have it? 😂--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discuss+unsubscribe@dartlang.org.
--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discuss+unsubscribe@dartlang.org.
Danny,I would love to add this, but I honestly don't know when we might get it implemented, so I certainly don't want to suggest that you wait for it. Do let us know if it turns out to be too hard to implement it using another request, and we'll see whether we can increase the priority.Brian
On Mon, Aug 22, 2016 at 10:55 AM, Danny Tuppeny <da...@tuppeny.com> wrote:
Do you think this is something you'd be likely to add? I understand if it's only me that wants it, but knowing if it will come will help me decide whether to try and achieve it another way (eg. using hovers) in the meantime. I think this is the biggest thing remaining that bugs me when I try to write Dart in Dart Code (I'm quite unfamiliar with the SDK and currently get zero help once inside the parens!)If it's unlikely to happen (or soon), I'm happy to try and do it another way for now!
On Monday, 8 August 2016 16:51:36 UTC+1, Danny Tuppeny wrote:
Sounds great to me; just one minor tweak I've suggested on the GH Issue (parameter index for cursor location).
On Mon, 8 Aug 2016 at 16:40 'Brian Wilkerson' via Dart Analyzer Discussion <analyzer...@dartlang.org> wrote:
Let's use https://github.com/dart-lang/sdk/issues/27034 to hammer out the finer points of the API.Will the proposal there get you the information you need?Would this API be useful to other tools, and if so what changes would we need to make for them?BrianOn Sun, Aug 7, 2016 at 2:46 PM, Danny Tuppeny <da...@tuppeny.com> wrote:On Sun, 7 Aug 2016, 22:38 'Konstantin Shcheglov' via Dart Analyzer Discussion, <analyzer...@dartlang.org> wrote:Unlike Java, in Dart parameters don't have documentation - there is no @param of something like.Instead parameters are freely referenced using [parameter_name] markup in the method documentation.So, for parameters we can provide their name, type and kind (required, optional positional, optional named).Oh yeah, whoops! Sounds reasonable; when can I have it? 😂--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discu...@dartlang.org.
--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discu...@dartlang.org.
Visit this group at https://groups.google.com/a/dartlang.org/group/analyzer-discuss/.
--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discu...@dartlang.org.
Visit this group at https://groups.google.com/a/dartlang.org/group/analyzer-discuss/.
--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discu...@dartlang.org.