mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Code: enable prettier trailing commas
This commit is contained in:
parent
897b550049
commit
273299693b
31 changed files with 233 additions and 232 deletions
|
@ -4,7 +4,7 @@ import { Range, TextDocumentIdentifier } from 'vscode-languageclient';
|
|||
import { Server } from '../server';
|
||||
import {
|
||||
handle as applySourceChange,
|
||||
SourceChange
|
||||
SourceChange,
|
||||
} from './apply_source_change';
|
||||
|
||||
interface JoinLinesParams {
|
||||
|
@ -19,11 +19,11 @@ export async function handle() {
|
|||
}
|
||||
const request: JoinLinesParams = {
|
||||
range: Server.client.code2ProtocolConverter.asRange(editor.selection),
|
||||
textDocument: { uri: editor.document.uri.toString() }
|
||||
textDocument: { uri: editor.document.uri.toString() },
|
||||
};
|
||||
const change = await Server.client.sendRequest<SourceChange>(
|
||||
'rust-analyzer/joinLines',
|
||||
request
|
||||
request,
|
||||
);
|
||||
await applySourceChange(change);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue