8.2.1 • Published 1 year ago

vscode-jsonrpc v8.2.1

Weekly downloads
790,542
License
MIT
Repository
github
Last release
1 year 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@pbkit/pb-cli@rbpatt2019/coc-fzf-preview-rbpatt2019javascript-typescript-langserverjavascript-typescript-langserver-fastlanguageserver-clientlangium-minilogolibzaplsp-clientlsp-codemirrorlsp-editor-adapterlsp-repllspquerylsp-ws-connectionlspindexmangudinlagirajinmatrix-monaco-languageclient@webserverless/core@valuis0429/zenstack@workbench-stack/ext-go-server@workbench-stack/go-server@tvaintrob/vscode-ws-jsonrpc@typefox/pyright@totvs/tds-languageclient@toastate/vscode-ws-jsonrpc@theguild/graphql-language-service-server@tomw2w/my-nuxt-layer@tfdf/rpc@zachkirsch/monaco-jsonrpc@zachkirsch/monaco-languageclient@zhenglaizhang/oav@zenshixd/prettierlsanakketigaanaklanangteaanakwadonteaangelintent@zzzen/pyright-internalacode-lspazure-openapi-linteratom-languageclient@atlaspack/reporter-lsp@atom-ide-community/nuclide-commons@atom-ide-community/nuclide-commons-atom@azure/autorest-extension-base@azure-tools/autorest-extension-base@aabelmann/ui-layer@0x404/angular-language-server@hancomac/monaco-languageclient@abdeeel/react-yo-package@atlaspack/lsp@atlaspack/lsp-protocol@eclipse-che/theia-terminal@eclipse-glsp/client@eclipse-glsp/server@eclipse-glsp/sprotty@eclipse-glsp/vscode-integration@eclipse-glsp/vscode-integration-webview@eclipse-glsp/protocol@advscript/core@codingame/languageserver-mutualized@codingame/monaco-jsonrpc@codingame/monaco-languageclient@codingame/monaco-languageclient-wrapper@codesandbox/pitcher-client@alshdavid/atlaspack@alexmsmithca/flow-dev-tools@aml-org/als-node-client@aml-org/als-servericf-room-client-usertehmusimhujanty-vscode-ws-jsonrpctypefox-clienttypefox-monaco
9.0.0-next.6

1 year ago

9.0.0-next.5

1 year ago

9.0.0-next.4

1 year ago

9.0.0-next.3

1 year ago

8.2.1

1 year ago

9.0.0-next.2

2 years ago

9.0.0-next.1

2 years 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

3 years ago

8.1.0-next.7

3 years ago

8.2.0-next.0

3 years ago

8.1.0-next.6

3 years ago

8.1.0-next.5

3 years ago

8.1.0-next.4

3 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

4 years ago

8.0.0-next.6

4 years ago

8.0.0-next.5

4 years ago

8.0.0-next.4

4 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

5 years ago

6.1.0-next.1

5 years ago

6.0.0

5 years ago

6.0.0-next.10

5 years ago

6.0.0-next.8

5 years ago

6.0.0-next.9

5 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

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

5.0.0-next.7

6 years ago

5.0.0-next.6

6 years ago

5.0.0-next.5

6 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

7 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

8 years ago

3.6.0

8 years ago

3.6.0-next.1

8 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

9 years ago

3.2.0

9 years ago

3.2.0-alpha.1

9 years ago

3.1.0

9 years ago

3.1.0-alpha.1

9 years ago

3.0.4

9 years ago

3.0.3

9 years ago

3.0.2-beta.5

9 years ago

3.0.2-beta.4

9 years ago

3.0.2-beta.3

9 years ago

3.0.2-beta.2

9 years ago

3.0.2-beta.1

9 years ago

3.0.1-alpha.7

9 years ago

3.0.1-alpha.6

9 years ago

3.0.1-alpha.5

9 years ago

3.0.1-alpha.3

9 years ago

3.0.1-alpha.2

9 years ago

3.0.1-alpha.1

9 years ago

3.0.0-alpha.5

9 years ago

3.0.0-next.1

9 years ago

3.0.0-alpha.4

9 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

10 years ago

2.0.0-pre.2

10 years ago

2.0.0-pre.1

10 years ago

1.2.0

10 years ago

1.1.0-prerelease.1

10 years ago

1.0.3-prerelease.1

10 years ago

1.0.1

10 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