-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
80 additions
and
32 deletions.
There are no files selected for viewing
46 changes: 32 additions & 14 deletions
46
...shots/JsonRpcGenerationTests.Should_Report_Diagnostic_If_Missing_Information.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,42 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: JRPC1003, | ||
Title: Cannot infer request router(s), | ||
Severity: Error, | ||
WarningLevel: 0, | ||
Location: Test0.cs: (15,66)-(15,88), | ||
MessageFormat: Could not infer the request router(s) to use, please specify the target interface(s)., | ||
Location: /* | ||
{ | ||
[Serial, Method(GeneralNames.Exit, Direction.ClientToServer), GenerateHandlerMethods, GenerateRequestMethods] | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
public interface IExitHandler : IJsonRpcNotificationHandler<ExitParams> | ||
*/ | ||
Test0.cs: (15,66)-(15,88), | ||
Message: Could not infer the request router(s) to use, please specify the target interface(s)., | ||
Category: JsonRPC | ||
Severity: Error, | ||
Descriptor: { | ||
Id: JRPC1003, | ||
Title: Cannot infer request router(s), | ||
MessageFormat: Could not infer the request router(s) to use, please specify the target interface(s)., | ||
Category: JsonRPC, | ||
DefaultSeverity: Error, | ||
IsEnabledByDefault: true | ||
} | ||
}, | ||
{ | ||
Id: JRPC1003, | ||
Title: Cannot infer request router(s), | ||
Severity: Error, | ||
WarningLevel: 0, | ||
Location: Test0.cs: (15,90)-(15,112), | ||
MessageFormat: Could not infer the request router(s) to use, please specify the target interface(s)., | ||
Location: /* | ||
{ | ||
[Serial, Method(GeneralNames.Exit, Direction.ClientToServer), GenerateHandlerMethods, GenerateRequestMethods] | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
public interface IExitHandler : IJsonRpcNotificationHandler<ExitParams> | ||
*/ | ||
Test0.cs: (15,90)-(15,112), | ||
Message: Could not infer the request router(s) to use, please specify the target interface(s)., | ||
Category: JsonRPC | ||
Severity: Error, | ||
Descriptor: { | ||
Id: JRPC1003, | ||
Title: Cannot infer request router(s), | ||
MessageFormat: Could not infer the request router(s) to use, please specify the target interface(s)., | ||
Category: JsonRPC, | ||
DefaultSeverity: Error, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |
22 changes: 16 additions & 6 deletions
22
....Supports_Generating_Notifications_And_Infers_Direction_DidChangeTextHandler.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: JRPC1001, | ||
Title: No Response Router Provided, | ||
Location: /* | ||
[Serial, Method(TextDocumentNames.DidChange, Direction.ClientToServer), GenerateHandlerMethods, GenerateRequestMethods] | ||
public interface IDidChangeTextDocumentHandler : IJsonRpcNotificationHandler<DidChangeTextDocumentParams>, | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
IRegistration<TextDocumentChangeRegistrationOptions, TextSynchronizationCapability> | ||
*/ | ||
Test0.cs: (17,21)-(17,50), | ||
Message: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Severity: Info, | ||
WarningLevel: 1, | ||
Location: Test0.cs: (17,21)-(17,50), | ||
MessageFormat: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Message: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Category: JsonRPC | ||
Descriptor: { | ||
Id: JRPC1001, | ||
Title: No Response Router Provided, | ||
MessageFormat: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Category: JsonRPC, | ||
DefaultSeverity: Info, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |
22 changes: 16 additions & 6 deletions
22
...tionTests.Supports_Generating_Notifications_And_Infers_Direction_ExitHandler.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: JRPC1001, | ||
Title: No Response Router Provided, | ||
Location: /* | ||
[Serial, Method(GeneralNames.Exit, Direction.ClientToServer), GenerateHandlerMethods, GenerateRequestMethods] | ||
public interface IExitHandler : IJsonRpcNotificationHandler<ExitParams> | ||
^^^^^^^^^^^^ | ||
{ | ||
*/ | ||
Test0.cs: (16,21)-(16,33), | ||
Message: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Severity: Info, | ||
WarningLevel: 1, | ||
Location: Test0.cs: (16,21)-(16,33), | ||
MessageFormat: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Message: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Category: JsonRPC | ||
Descriptor: { | ||
Id: JRPC1001, | ||
Title: No Response Router Provided, | ||
MessageFormat: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Category: JsonRPC, | ||
DefaultSeverity: Info, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |
22 changes: 16 additions & 6 deletions
22
...ots/JsonRpcGenerationTests.Supports_Generating_Requests_And_Infers_Direction.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: JRPC1001, | ||
Title: No Response Router Provided, | ||
Location: /* | ||
[Parallel, Method(TextDocumentNames.Definition, Direction.ClientToServer), GenerateHandlerMethods, GenerateRequestMethods, Obsolete("This is obsolete")] | ||
public interface IDefinitionHandler : IJsonRpcRequestHandler<DefinitionParams, LocationOrLocationLinks>, IRegistration<DefinitionRegistrationOptions, DefinitionCapability> { } | ||
^^^^^^^^^^^^^^^^^^ | ||
} | ||
*/ | ||
Test0.cs: (17,21)-(17,39), | ||
Message: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Severity: Info, | ||
WarningLevel: 1, | ||
Location: Test0.cs: (17,21)-(17,39), | ||
MessageFormat: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Message: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Category: JsonRPC | ||
Descriptor: { | ||
Id: JRPC1001, | ||
Title: No Response Router Provided, | ||
MessageFormat: No Response Router Provided for handler {0}, defaulting to {1}., | ||
Category: JsonRPC, | ||
DefaultSeverity: Info, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |