massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / node_modules / vscode-languageserver / lib / node / resolve.js
1 "use strict";
2 /* --------------------------------------------------------------------------------------------
3  * Copyright (c) Microsoft Corporation. All rights reserved.
4  * Licensed under the MIT License. See License.txt in the project root for license information.
5  * ------------------------------------------------------------------------------------------ */
6 process.on('message', (message) => {
7     if (message.command === 'exit') {
8         process.exit(0);
9     }
10     else if (message.command === 'resolve') {
11         try {
12             let result = require.resolve(message.args);
13             process.send({ command: 'resolve', success: true, result: result });
14         }
15         catch (err) {
16             process.send({ command: 'resolve', success: false });
17         }
18     }
19 });
20 //# sourceMappingURL=resolve.js.map