mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Simplify some more ctors
This commit is contained in:
parent
3c12cd49ec
commit
3717b0e03f
3 changed files with 3 additions and 9 deletions
|
@ -37,12 +37,10 @@ export function analyzerStatus(ctx: Ctx): Cmd {
|
|||
|
||||
class TextDocumentContentProvider
|
||||
implements vscode.TextDocumentContentProvider {
|
||||
private ctx: Ctx;
|
||||
uri = vscode.Uri.parse('rust-analyzer-status://status');
|
||||
eventEmitter = new vscode.EventEmitter<vscode.Uri>();
|
||||
|
||||
constructor(ctx: Ctx) {
|
||||
this.ctx = ctx;
|
||||
constructor(private readonly ctx: Ctx) {
|
||||
}
|
||||
|
||||
provideTextDocumentContent(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue