Skip to content

[JsonRpc Protocol] Separate location.method to location.method-name and location.method-parameters #5476

Open

Description

One challenge in F# is its identifier name rules, where ( for example is allowed. That means that clients cannot separate method name from parameter types.

I strongly believe that for MTP we should separate location.method to 2 different properties, matching the model of TestMethodIdentifierProperty. This means we don't need the escaping rules of ManagedMethod, and we are not forcing framework authors to implement the escaping logic and plug it in TestMethodIdentifierProperty for no good reason.

It's probably even better to separate it to 3 properties, location.method-name, location.method-arity, and location.method.parameters. This will require a public API change to TestMethodIdentifierProperty.

Activity

  1. added
    area/server-mode-jsonrpc
    and removed on Aug 11, 2025
  2. Youssef1313 commented on Dec 4, 2025

    @Youssef1313
    MemberAuthor

    As part of this, I would like us to well standardize and document TestMethodIdentifierProperty.

    1. Clearly document that this is the semantic type rather than the syntactic type (e.g, in case of method in base class being executed in the context of the derived class, the type should refer to the derived class)
    2. The Namespace+TypeName parts are constructed by accessing Type.FullName (e.g, uses backticks for arity and + for nested type). And just split the Type.FullName on the last dot to separate namespace + type name, which shouldn't cause any ambiguity in any case.
    3. The method name part is just the method name, no backticks or anything for generics is involved.
    4. Method arity is clear enough I think.
    5. Then we come to the parameters which is the most challenging and is not standardized today, at least for the case of generics.

    In addition, we could introduce VSTestBridge-specific properties that allow MSTest and NUnit to provide this information without needing the managed type/name stuff. We will also need to work with Test Explorer for the standardization of TestMethodIdentifierProperty so that the info is interpreted correctly on their side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/server-mode-jsonrpc

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions