Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
languageClient.onReady().then(() => {
languageClient.onRequest(TypeScriptRenameRequest.type, params => {
editor.setPosition(p2m.asPosition(params.position));
editor.trigger('', 'editor.action.rename', {});
});
});
const disposable = languageClient.start();