Skip to content

.NET types doesn't work in many cases. #148

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

Closed
savpek opened this issue Apr 17, 2016 · 5 comments
Closed

.NET types doesn't work in many cases. #148

savpek opened this issue Apr 17, 2016 · 5 comments
Labels
Issue-Bug A bug to squash.
Milestone

Comments

@savpek
Copy link

savpek commented Apr 17, 2016

Heres example how intellisense fails to support .net types.

First working version and then modified failing one.

pshell-bug

vscode: 1.0
extension: 0.5.0

@daviwil daviwil added the Issue-Bug A bug to squash. label Apr 17, 2016
@daviwil daviwil added this to the 0.6.0 milestone Apr 17, 2016
@daviwil
Copy link
Contributor

daviwil commented Apr 17, 2016

Hmm, will investigate this, thanks for reporting!

@rkeithhill
Copy link
Contributor

As a workaround for the NewGuid case, try this: type[System.Guid] and then press Ctrl+Space. You should see this:

vscode_staticmembercompletion

This will work a little better in 0.6.0 however @daviwil we currently do not provide parameter/arg Intellisense for .NET methods like we do for PowerShell commands AFAICT e.g.:

vscode_commandparameters

That would be really nice to have for .NET methods where you show various method overloads e.g. 1/6 instead of command parameter sets.

@daviwil
Copy link
Contributor

daviwil commented Apr 17, 2016

That's true, we don't yet provide parameter hints for .NET methods. I was looking for the signature string in the IntelliSense but it seems you just need to get to it a different way, as shown by your screenshot.

One thing that surprised me was that [System. doesn't get a completion list.

@daviwil daviwil added the Needs: Fix Verification Please verify the fix for us! label May 3, 2016
@daviwil daviwil removed the Needs: Fix Verification Please verify the fix for us! label May 11, 2016
@daviwil
Copy link
Contributor

daviwil commented May 11, 2016

Looks like the completion problems you were having are fixed in 0.6.0 which is releasing soon. I'll close this bug as soon as that is released.

We're tracking the lack of .NET method signature help here: PowerShell/PowerShellEditorServices#13. I'm going to start working on that in the next couple of releases since it will be a great productivity boost.

@daviwil
Copy link
Contributor

daviwil commented May 13, 2016

0.6.0 is now released! Let me know if you run into any further trouble.

@daviwil daviwil closed this as completed May 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

3 participants