How to use the typescript-language-server/lib/commands.Commands.APPLY_CODE_ACTION 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 applyCodeAction(codeAction: tsp.CodeAction): Promise {
        const client = await this.clientContribution.languageClient;
        return client.sendRequest(ExecuteCommandRequest.type, {
            command: Commands.APPLY_CODE_ACTION,
            arguments: [codeAction]
        });
    }

typescript-language-server

Language Server Protocol (LSP) implementation for TypeScript using tsserver

Apache-2.0
Latest version published 9 months ago

Package Health Score

79 / 100
Full package analysis

Similar packages