How to use the typescript-language-server/lib/ts-protocol.TypeScriptRenameRequest.type function in typescript-language-server

To help you get started, we’ve selected a few typescript-language-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github theia-ide / typescript-language-server / example / src / client.ts View on Github external
languageClient.onReady().then(() => {
            languageClient.onRequest(TypeScriptRenameRequest.type, params => {
                editor.setPosition(p2m.asPosition(params.position));
                editor.trigger('', 'editor.action.rename', {});
            });
        });
        const disposable = languageClient.start();

typescript-language-server

Language Server Protocol (LSP) implementation for TypeScript using tsserver

Apache-2.0
Latest version published 9 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages