Add semicolons
This commit is contained in:
@@ -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>(
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user