8.2.1 • Published 9 months ago

vscode-jsonrpc v8.2.1

Weekly downloads
790,542
License
MIT
Repository
github
Last release
9 months 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

@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-3069wxml-langserverws-lsp-serverxen22.omnisharp-clientswagger-parameters-extractorvscode-textlint-sharedvscode-catkin-tools-apivscode-bspvscode-zapvscode-ws-jsonrpcvscode-ws-jsonrpc-cjsvscode-ws-jsonrpc-lokadvterm-servervolar-service-markdownvscode-pyrightvscode-exthostvscode-languageserver-protocolvscode-languageserver-testclientvleam@divyenduz/graphql-language-service-server@csb-lang-server/utils@devbookhq/code-editor@pbkit/pb-cli@rbpatt2019/coc-fzf-preview-rbpatt2019javascript-typescript-langserverjavascript-typescript-langserver-fastlanguageserver-clientlangium-minilogoicf-room-client-usertehmusimhujanty-vscode-ws-jsonrpctypefox-clienttypefox-monacotypescript-imba-plugin-fork-for-devtnexus-editor-client@apollographql/graphql-language-service-server@aml-org/als-node-client@aml-org/als-server@angular/language-server@atlaspack/lsp@atlaspack/lsp-protocol@atlaspack/reporter-lsp@atom-ide-community/nuclide-commons@atom-ide-community/nuclide-commons-atom@autorest/extension-base@advscript/core@alexmsmithca/flow-dev-tools@azure-tools/autorest-extension-base@celljs/rpc@0x404/angular-language-server@abdeeel/react-yo-package@aabelmann/ui-layer@codingame/monaco-languageclient@codingame/monaco-languageclient-wrapper@codingame/languageserver-mutualized@codingame/monaco-jsonrpc@azure/autorest-extension-base@devpodio/plugin-ext@difizen/libro-analyzer@difizen/libro-lsp@difizen/pylez@difizen/vscode-languageserver-protocol@dicy/client@dicy/serverzenstackwebide.seunofficial-grammarly-language-clientunofficial-grammarly-language-server@samatech/cadence-lint@fiberplane/studio@dtpui/dtp-vscode-ws-jsonrpc@eclipse-che/theia-terminal@eclipse-glsp/client@eclipse-glsp/protocol@eclipse-glsp/vscode-integration@eclipse-glsp/sprotty@eclipse-glsp/server@emacs-grammarly/unofficial-grammarly-language-client@emacs-grammarly/unofficial-grammarly-language-server@ember-tooling/ember-language-server@g0t00/atom-languageclient@gabnor/graphql-language-service-server@gedit/application-server@gedit/connection@fsjsd/monaco-jsonrpc@gitpod/gitpod-protocol@l1shen/monaco-languageclient@likec4/language-server@lloiser/atom-languageclient@layline-io/monaco-jsonrpc@layline-io/monaco-languageclient
9.0.0-next.6

9 months ago

9.0.0-next.5

11 months ago

9.0.0-next.4

11 months ago

9.0.0-next.3

12 months ago

8.2.1

12 months ago

9.0.0-next.2

1 year ago

9.0.0-next.1

1 year ago

8.2.1-next.1

2 years ago

8.2.0

2 years ago

8.2.0-next.2

2 years ago

8.2.0-next.1

2 years ago

8.1.0

2 years ago

8.1.0-next.7

2 years ago

8.2.0-next.0

2 years ago

8.1.0-next.6

2 years ago

8.1.0-next.5

2 years ago

8.1.0-next.4

2 years ago

8.1.0-next.2

3 years ago

8.1.0-next.1

3 years ago

8.1.0-next.3

3 years ago

8.0.2-next.1

3 years ago

8.0.2

3 years ago

8.0.1

3 years ago

8.0.0

3 years ago

8.0.0-next.8

3 years ago

8.0.0-next.7

3 years ago

8.0.0-next.6

3 years ago

8.0.0-next.5

3 years ago

8.0.0-next.4

3 years ago

8.0.0-next.3

4 years ago

8.0.0-next.2

4 years ago

8.0.0-next.1

4 years ago

7.0.0-next.1

4 years ago

6.1.0-next.2

4 years ago

6.1.0-next.1

4 years ago

6.0.0

4 years ago

6.0.0-next.10

4 years ago

6.0.0-next.8

4 years ago

6.0.0-next.9

4 years ago

6.0.0-next.7

5 years ago

6.0.0-next.6

5 years ago

6.0.0-next.5

5 years ago

6.0.0-next.4

5 years ago

6.0.0-next.3

5 years ago

6.0.0-next.1

5 years ago

6.0.0-next.2

5 years ago

5.1.0-next.1

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

5.0.0-next.7

5 years ago

5.0.0-next.6

5 years ago

5.0.0-next.5

5 years ago

5.0.0-next.4

6 years ago

5.0.0-next.3

6 years ago

5.0.0-next.2

6 years ago

5.0.0-next.1

6 years ago

4.1.0-next.3

6 years ago

4.1.0-next.2

6 years ago

4.1.0-next.1

6 years ago

4.0.0

7 years ago

4.0.0-next.1

7 years ago

3.7.0-next.1

7 years ago

3.6.2

7 years ago

3.6.1

7 years ago

3.6.0

7 years ago

3.6.0-next.1

7 years ago

3.5.0

8 years ago

3.5.0-next.2

8 years ago

3.5.0-next.1

8 years ago

3.4.1

8 years ago

3.4.0

8 years ago

3.4.0-next.2

8 years ago

3.4.0-next.1

8 years ago

3.3.1

8 years ago

3.3.0

8 years ago

3.3.0-alpha.3

8 years ago

3.3.0-alpha.2

8 years ago

3.3.0-alpha.1

8 years ago

3.2.0

8 years ago

3.2.0-alpha.1

8 years ago

3.1.0

8 years ago

3.1.0-alpha.1

8 years ago

3.0.4

8 years ago

3.0.3

8 years ago

3.0.2-beta.5

8 years ago

3.0.2-beta.4

8 years ago

3.0.2-beta.3

8 years ago

3.0.2-beta.2

8 years ago

3.0.2-beta.1

8 years ago

3.0.1-alpha.7

8 years ago

3.0.1-alpha.6

8 years ago

3.0.1-alpha.5

8 years ago

3.0.1-alpha.3

8 years ago

3.0.1-alpha.2

8 years ago

3.0.1-alpha.1

8 years ago

3.0.0-alpha.5

8 years ago

3.0.0-next.1

8 years ago

3.0.0-alpha.4

8 years ago

3.0.0-alpha.3

9 years ago

3.0.0-alpha.2

9 years ago

2.4.0

9 years ago

2.3.2-next.5

9 years ago

2.3.2-next.4

9 years ago

2.3.2-next.3

9 years ago

2.3.2-next.2

9 years ago

2.3.2-next.1

9 years ago

3.0.0-alpha.1

9 years ago

2.3.1

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

2.0.0-pre.2

9 years ago

2.0.0-pre.1

9 years ago

1.2.0

9 years ago

1.0.1

9 years ago

0.10.1

10 years ago

0.10.0

10 years ago

0.10.0-pre.13

10 years ago

0.10.0-pre.12

10 years ago

0.10.0-pre.11

10 years ago

0.10.0-pre.10

10 years ago

0.10.0-pre.8

10 years ago

0.10.0-pre.6

10 years ago

0.10.0-pre.5

10 years ago

0.10.0-pre.4

10 years ago

0.10.0-pre.3

10 years ago