8.2.0 • Published 23 days ago

vscode-jsonrpc v8.2.0

Weekly downloads
790,542
License
MIT
Repository
github
Last release
23 days ago

VSCode JSON RPC

NPM Version NPM Downloads Build Status

This npm module implements the base messaging protocol spoken between a VSCode language server and a VSCode language client.

The npm module can also be used standalone to establish a JSON-RPC channel between a client and a server. Below an example how to setup a JSON-RPC connection. First the client side.

import * as cp from 'child_process';
import * as rpc from 'vscode-jsonrpc';

let childProcess = cp.spawn(...);

// Use stdin and stdout for communication:
let connection = rpc.createMessageConnection(
	new rpc.StreamMessageReader(childProcess.stdout),
	new rpc.StreamMessageWriter(childProcess.stdin));

let notification = new NotificationType<string, void>('testNotification');

connection.listen();

connection.sendNotification(notification, 'Hello World');

The server side looks very symmetrical:

import * as rpc from 'vscode-jsonrpc';


let connection = rpc.createMessageConnection(
	new rpc.StreamMessageReader(process.stdin),
	new rpc.StreamMessageWriter(process.stdout));

let notification = new NotificationType<string, void>('testNotification');
connection.onNotification(notification, (param: string) => {
	console.log(param); // This prints Hello World
});

connection.listen();

History

3.0.0:

  • converted the NPM module to use TypeScript 2.0.3.
  • added strict null support.
  • support for passing more than one parameter to a request or notification.
  • Breaking changes:
    • due to the use of TypeScript 2.0.3 and differences in d.ts generation users of the new version need to move to TypeScript 2.0.3 as well.

License

MIT

@gitpod/gitpod-protocol@saasxx/rpchbuilderx-plugin-plugin-managerswagger-parameter-extactorjsonrpc-server-tsunofficial-grammarly-language-client-2unofficial-grammarly-language-server-2@leni-msft/oav@veonim/jsonrpc@infinitebrahmanuniverse/nolb-vsc@everything-registry/sub-chunk-3069@gedit/connection@gedit/application-servernuclidenuclide-commonsnuclide-commons-atom@aml-org/als-node-client@aml-org/als-serveratom-languageclient@abdeeel/react-yo-package@aabelmann/ui-layer@autorest/extension-basebicep-node@atom-ide-community/nuclide-commons@atom-ide-community/nuclide-commons-atom@alexmsmithca/flow-dev-tools@azure-tools/autorest-extension-base@azure/autorest-extension-base@csb-lang-server/utils@devpodio/plugin-extnuxtpaginationsocaml-language-serverocaml-language-server-ewenmacleanomnisharp-clientpugjs-angular-language-serverpugjs-angular-templatepurescript-language-serverraas-corerabbit-playgroundrescript-relay-routerresgraphxen22.omnisharp-clientvscode-textlint-sharedvscode-ws-jsonrpcvscode-ws-jsonrpc-cjsvscode-ws-jsonrpc-lokadvscode-languageserver-protocolvscode-languageserver-testclientvscode-bspvscode-catkin-tools-apivterm-servervscode-zapvolar-service-markdowntnexus-editor-clientunofficial-grammarly-language-clientunofficial-grammarly-language-servervscode-exthostty-vscode-ws-jsonrpctypefox-clienttypefox-monacotypescript-imba-plugin-fork-for-devwebide.sezenstackws-lsp-serverwxml-langserversml-language-serverswagger-parameters-extractorrsp-clientrhamt-vscode-extensionrekit-studiorekit-studio-sdkrefactor-cli@codingame/languageserver-mutualized@codingame/monaco-jsonrpc@codingame/monaco-languageclient@codingame/monaco-languageclient-wrappercoc-fzf-previewcoc-utilscoc-spell-checkercoc-fsharpcoffee-workflow-analyzer@divyenduz/graphql-language-service-server@difizen/vscode-languageserver-protocol@difizen/libro-lsp@dicy/server@difizen/libro-analyzer@advscript/coreazure-openapi-linter@apollographql/graphql-language-service-server@angular/language-server@epscript-lsp/types@g0t00/atom-languageclient@gabnor/graphql-language-service-server@fsjsd/monaco-jsonrpc@0x404/angular-language-serverdesign-system-trial-milyasbpa@eclipse-che/theia-terminal@eclipse-glsp/protocol@eclipse-glsp/vscode-integration@elastic/javascript-typescript-langserver
9.0.0-next.2

23 days ago

9.0.0-next.1

1 month ago

8.2.1-next.1

5 months ago

8.2.0

6 months ago

8.2.0-next.2

7 months ago

8.2.0-next.1

9 months ago

8.1.0

1 year ago

8.1.0-next.7

1 year ago

8.2.0-next.0

11 months ago

8.1.0-next.6

1 year ago

8.1.0-next.5

1 year ago

8.1.0-next.4

1 year ago

8.1.0-next.2

2 years ago

8.1.0-next.1

2 years ago

8.1.0-next.3

2 years ago

8.0.2-next.1

2 years ago

8.0.2

2 years ago

8.0.1

2 years ago

8.0.0

2 years ago

8.0.0-next.8

2 years ago

8.0.0-next.7

2 years ago

8.0.0-next.6

2 years ago

8.0.0-next.5

2 years ago

8.0.0-next.4

2 years ago

8.0.0-next.3

2 years ago

8.0.0-next.2

3 years ago

8.0.0-next.1

3 years ago

7.0.0-next.1

3 years ago

6.1.0-next.2

3 years ago

6.1.0-next.1

3 years ago

6.0.0

3 years ago

6.0.0-next.10

3 years ago

6.0.0-next.8

3 years ago

6.0.0-next.9

3 years ago

6.0.0-next.7

3 years ago

6.0.0-next.6

3 years ago

6.0.0-next.5

4 years ago

6.0.0-next.4

4 years ago

6.0.0-next.3

4 years ago

6.0.0-next.1

4 years ago

6.0.0-next.2

4 years ago

5.1.0-next.1

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

5.0.0-next.7

4 years ago

5.0.0-next.6

4 years ago

5.0.0-next.5

4 years ago

5.0.0-next.4

4 years ago

5.0.0-next.3

4 years ago

5.0.0-next.2

5 years ago

5.0.0-next.1

5 years ago

4.1.0-next.3

5 years ago

4.1.0-next.2

5 years ago

4.1.0-next.1

5 years ago

4.0.0

6 years ago

4.0.0-next.1

6 years ago

3.7.0-next.1

6 years ago

3.6.2

6 years ago

3.6.1

6 years ago

3.6.0

6 years ago

3.6.0-next.1

6 years ago

3.5.0

6 years ago

3.5.0-next.2

6 years ago

3.5.0-next.1

6 years ago

3.4.1

7 years ago

3.4.0

7 years ago

3.4.0-next.2

7 years ago

3.4.0-next.1

7 years ago

3.3.1

7 years ago

3.3.0

7 years ago

3.3.0-alpha.3

7 years ago

3.3.0-alpha.2

7 years ago

3.3.0-alpha.1

7 years ago

3.2.0

7 years ago

3.2.0-alpha.1

7 years ago

3.1.0

7 years ago

3.1.0-alpha.1

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2-beta.5

7 years ago

3.0.2-beta.4

7 years ago

3.0.2-beta.3

7 years ago

3.0.2-beta.2

7 years ago

3.0.2-beta.1

7 years ago

3.0.1-alpha.7

7 years ago

3.0.1-alpha.6

7 years ago

3.0.1-alpha.5

7 years ago

3.0.1-alpha.3

7 years ago

3.0.1-alpha.2

7 years ago

3.0.1-alpha.1

7 years ago

3.0.0-alpha.5

7 years ago

3.0.0-next.1

7 years ago

3.0.0-alpha.4

7 years ago

3.0.0-alpha.3

7 years ago

3.0.0-alpha.2

7 years ago

2.4.0

8 years ago

2.3.2-next.5

8 years ago

2.3.2-next.4

8 years ago

2.3.2-next.3

8 years ago

2.3.2-next.2

8 years ago

2.3.2-next.1

8 years ago

3.0.0-alpha.1

8 years ago

2.3.1

8 years ago

2.3.0

8 years ago

2.2.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

2.0.0-pre.2

8 years ago

2.0.0-pre.1

8 years ago

1.2.0

8 years ago

1.0.1

8 years ago

0.10.1

8 years ago

0.10.0

8 years ago

0.10.0-pre.13

8 years ago

0.10.0-pre.12

8 years ago

0.10.0-pre.11

8 years ago

0.10.0-pre.10

8 years ago

0.10.0-pre.8

8 years ago

0.10.0-pre.6

8 years ago

0.10.0-pre.5

8 years ago

0.10.0-pre.4

8 years ago

0.10.0-pre.3

8 years ago