How to use the typescript-language-server/lib/commands.Commands.APPLY_RENAME_FILE 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 eclipse-theia / theia / packages / typescript / src / browser / typescript-frontend-contribution.ts View on Github external
protected async renameFile({ sourceUri, targetUri }: FileMoveEvent): Promise {
        const client = await this.clientContribution.languageClient;
        return client.sendRequest(ExecuteCommandRequest.type, {
            command: Commands.APPLY_RENAME_FILE,
            arguments: [{
                sourceUri: sourceUri.toString(),
                targetUri: targetUri.toString()
            }]
        });
    }

typescript-language-server

Language Server Protocol (LSP) implementation for TypeScript using tsserver

Apache-2.0
Latest version published 3 months ago

Package Health Score

82 / 100
Full package analysis

Similar packages