You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some LSP implementations, like for example PyLance for Python, you can get hints like this:
Right now with code-d I do not see any such tooltips when hovering over variables (or aliases, or function names, and so on), or after pressing ctrl+k ctrl+i.
Further, the auto-completion are extremely limited. I don't know if that's expected or I'm missing something.
For example, I don't get any auto-complete suggestions for struct methods.
What limited auto-complete suggestions are available also often do not show up if I'm writing in the middle of an expression. It has to be at the end of the line.
Ideally, I'd like tooltips to work in at least each of the following situations:
structThing {
int x;
intf(int y) => x + y;
intf2(int y) {
return x + y;
}
}
structFing(T) {
T t;
}
voidfunc() {
Thing thing;
thing.f(); // Auto-complete: Suggest function `f`.
thing.f2(); // This works, but not the short version.
thing; // Tooltips: Show type of `thing`.alias Fint = Fing!int;
Fing fint;
fint.t; // Tooltips and Auto-complete: Should show `t` as having type `int` not `T`.
}
Rangecopy(Range)(Range range)
if (isInputRange!Range)
{
staticif (isRandomAccessRange!Range)
{
const tlen = range.length;
const slen = range.length;
assert(tlen >= slen,
"Cannot copy a source range into a smaller target range.");
immutable overlaps = () @trusted {
return source.ptr < target.ptr + tlen &&
target.ptr < source.ptr + slen; };
// Can any tooltips at all be shown in this situation?// 1. Types in `overlaps`.// 2. The typing of `.length` in `range`, based on the checks in `isRandomAccessRange` which must pass for this static if branch to be active.
}
}
The text was updated successfully, but these errors were encountered:
In some LSP implementations, like for example PyLance for Python, you can get hints like this:
Right now with
code-d
I do not see any such tooltips when hovering over variables (or aliases, or function names, and so on), or after pressingctrl+k ctrl+i
.Further, the auto-completion are extremely limited. I don't know if that's expected or I'm missing something.
For example, I don't get any auto-complete suggestions for struct methods.
What limited auto-complete suggestions are available also often do not show up if I'm writing in the middle of an expression. It has to be at the end of the line.
Ideally, I'd like tooltips to work in at least each of the following situations:
The text was updated successfully, but these errors were encountered: