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