Skip to content

Commit 85f70b3

Browse files
Don't blindly construct signature help if OmniSharp returns null
This is related to #64.
1 parent 83ea676 commit 85f70b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/features/signatureHelpProvider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export default class OmniSharpSignatureHelpProvider extends AbstractSupport impl
1717
let req = createRequest(document, position);
1818

1919
return serverUtils.signatureHelp(this._server, req, token).then(res => {
20+
21+
if (!res) {
22+
return undefined;
23+
}
2024

2125
let ret = new SignatureHelp();
2226
ret.activeSignature = res.ActiveSignature;

0 commit comments

Comments
 (0)