UNPKG

@inst/vscode-bin-darwin

Version:

BINARY ONLY - VSCode binary deployment for macOS

71 lines (70 loc) 4.55 kB
{ "_args": [ [ { "raw": "vscode-jsonrpc@https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.4.0.tgz", "scope": null, "escapedName": "vscode-jsonrpc", "name": "vscode-jsonrpc", "rawSpec": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.4.0.tgz", "spec": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.4.0.tgz", "type": "remote" }, "/Users/code/tfs/agent3/_work/2/s/extensions/html/server" ] ], "_from": "vscode-jsonrpc@>=3.4.0 <4.0.0", "_id": "vscode-jsonrpc@3.4.0", "_inCache": true, "_location": "/vscode-jsonrpc", "_phantomChildren": {}, "_requested": { "raw": "vscode-jsonrpc@https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.4.0.tgz", "scope": null, "escapedName": "vscode-jsonrpc", "name": "vscode-jsonrpc", "rawSpec": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.4.0.tgz", "spec": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.4.0.tgz", "type": "remote" }, "_requiredBy": [ "/", "/vscode-languageserver-protocol" ], "_resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.4.0.tgz", "_shasum": "aa95ac583bf31d80f725d57c27c09f4c2cfe9fa9", "_shrinkwrap": null, "_spec": "vscode-jsonrpc@https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.4.0.tgz", "_where": "/Users/code/tfs/agent3/_work/2/s/extensions/html/server", "author": { "name": "Microsoft Corporation" }, "bugs": { "url": "https://github.com/Microsoft/vscode-languageserver-node/issues" }, "dependencies": {}, "description": "A json rpc implementation over streams", "devDependencies": {}, "engines": { "node": ">=4.0.0 || >=6.0.0" }, "homepage": "https://github.com/Microsoft/vscode-languageserver-node#readme", "license": "MIT", "main": "./lib/main.js", "name": "vscode-jsonrpc", "optionalDependencies": {}, "readme": "# VSCode JSON RPC\n\n[![NPM Version](https://img.shields.io/npm/v/vscode-jsonrpc.svg)](https://npmjs.org/package/vscode-jsonrpc)\n[![NPM Downloads](https://img.shields.io/npm/dm/vscode-jsonrpc.svg)](https://npmjs.org/package/vscode-jsonrpc)\n[![Build Status](https://travis-ci.org/Microsoft/vscode-languageserver-node.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-languageserver-node)\n\nThis npm module implements the base messaging protocol spoken between a VSCode language server and a VSCode language client.\n\nThe npm module can also be used standalone to establish a [JSON-RPC](http://www.jsonrpc.org/) channel between\na client and a server. Below an example how to setup a JSON-RPC connection. First the client side.\n\n```ts\nimport * as cp from 'child_process';\nimport * as rpc from 'vscode-jsonrpc';\n\nlet childProcess = cp.spawn(...);\n\n// Use stdin and stdout for communication:\nlet connection = rpc.createMessageConnection(\n\tnew rpc.StreamMessageReader(childProcess.stdout),\n\tnew rpc.StreamMessageWriter(childProcess.stdin));\n\nlet notification = new NotificationType<string, void>('testNotification');\n\nconnection.listen();\n\nconnection.sendNotification(notification, 'Hello World');\n```\n\nThe server side looks very symmetrical:\n\n```ts\nimport * as rpc from 'vscode-jsonrpc';\n\n\nlet connection = rpc.createMessageConnection(\n\tnew rpc.StreamMessageReader(process.stdin),\n\tnew rpc.StreamMessageWriter(process.stdout));\n\nlet notification = new NotificationType<string, void>('testNotification');\nconnection.onNotification(notification, (param: string) => {\n\tconsole.log(param); // This prints Hello World\n});\n\nconnection.listen();\n```\n\n# History\n\n### 3.0.0:\n\n- converted the NPM module to use TypeScript 2.0.3.\n- added strict null support.\n- support for passing more than one parameter to a request or notification.\n- Breaking changes:\n - due to the use of TypeScript 2.0.3 and differences in d.ts generation users of the new version need to move to\n TypeScript 2.0.3 as well.\n\n## License\n[MIT](https://github.com/Microsoft/vscode-languageserver-node/blob/master/License.txt)", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/Microsoft/vscode-languageserver-node.git" }, "scripts": { "compile": "tsc -p ./tsconfig.json", "prepublish": "npm run compile && npm test", "test": "node ../node_modules/mocha/bin/_mocha", "watch": "tsc -w -p ./tsconfig.json" }, "typings": "./lib/main.d.ts", "version": "3.4.0" }