Skip to content
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

Move Member Up/Down commands do not work in VB.NET #72

Open
mancze opened this issue Sep 15, 2017 · 1 comment
Open

Move Member Up/Down commands do not work in VB.NET #72

mancze opened this issue Sep 15, 2017 · 1 comment

Comments

@mancze
Copy link

mancze commented Sep 15, 2017

For me the command "Move Member Up/Down" does not work at all. I did not manage to make it work at all. I'm getting the "Nullable object must have value" error message.

2017-09-15_1119

I'm using Visual Studio 2017 for VB.NET development.

By the way the "Go To Previous/Next Member" does not work either. It does nothing. No error message, no beep sound. I'm mentioning it as it might be related. Fortunately this command is replacable with VS's native "Next/Previous Method". It cycles not only methods, but also properties and fields. It skips delegates and events though (so that is why Go To Previous/Next Member" still has sense).

This is the sample class to test with:

Public Class SampleClass

    Public Property First As Boolean

    Public Property Second As String
        Get
            Return Nothing
        End Get
        Set(value As String)
            ' noop
        End Set
    End Property

    Private ReadOnly Property Third As Integer
        Get
            Return 0
        End Get
    End Property

    Public Event OnFooBar()

    Public Delegate Sub DoSomething()

    Public Delegate Function DoSomethingElse() As Boolean

    Private ReadOnly _x As Boolean
    Private ReadOnly _y As Integer
    Private ReadOnly _z As String

    Public Sub New()

    End Sub

    Public Sub Foo()

    End Sub

    Public Function Bar() As Integer
        Return Third
    End Function

End Class
@justcla
Copy link
Owner

justcla commented Sep 15, 2017

Thanks for the feedback.

We have not built HotCommands to work with VB.Net. It was mostly built to work for C#.

The code is open-sourced. If you think you can fix it, please give it a go, then submit a PR.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants