Add semicolons

This commit is contained in:
Aleksey Kladov 2019-12-31 18:55:34 +01:00
parent cb41ffbbbd
commit ff0ceb30a9
14 changed files with 160 additions and 38 deletions

View file

@ -49,7 +49,7 @@ class TextDocumentContentProvider
_uri: vscode.Uri,
): vscode.ProviderResult<string> {
const editor = vscode.window.activeTextEditor;
const client = this.ctx.client
const client = this.ctx.client;
if (!editor || !client) return '';
return client.sendRequest<string>(

View file

@ -52,7 +52,7 @@ class TextDocumentContentProvider
async provideTextDocumentContent(_uri: vscode.Uri): Promise<string> {
const editor = vscode.window.activeTextEditor;
const client = this.ctx.client
const client = this.ctx.client;
if (!editor || !client) return '';
const position = editor.selection.active;

View file

@ -36,14 +36,14 @@ function showReferences(ctx: Ctx): Cmd {
function applySourceChange(ctx: Ctx): Cmd {
return async (change: sourceChange.SourceChange) => {
sourceChange.applySourceChange(ctx, change);
}
};
}
function reload(ctx: Ctx): Cmd {
return async () => {
vscode.window.showInformationMessage('Reloading rust-analyzer...');
await ctx.restartServer();
}
};
}
export {

View file

@ -76,7 +76,7 @@ class TextDocumentContentProvider
provideTextDocumentContent(uri: vscode.Uri): vscode.ProviderResult<string> {
const editor = vscode.window.activeTextEditor;
const client = this.ctx.client
const client = this.ctx.client;
if (!editor || !client) return '';
let range: lc.Range | undefined;