File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
editors/code/src/commands Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,10 @@ export function analyzerStatus(ctx: Ctx): Cmd {
3737
3838class TextDocumentContentProvider
3939 implements vscode . TextDocumentContentProvider {
40- private ctx : Ctx ;
4140 uri = vscode . Uri . parse ( 'rust-analyzer-status://status' ) ;
4241 eventEmitter = new vscode . EventEmitter < vscode . Uri > ( ) ;
4342
44- constructor ( ctx : Ctx ) {
45- this . ctx = ctx ;
43+ constructor ( private readonly ctx : Ctx ) {
4644 }
4745
4846 provideTextDocumentContent (
Original file line number Diff line number Diff line change @@ -42,12 +42,10 @@ function code_format(expanded: ExpandedMacro): string {
4242
4343class TextDocumentContentProvider
4444 implements vscode . TextDocumentContentProvider {
45- private ctx : Ctx ;
4645 uri = vscode . Uri . parse ( 'rust-analyzer://expandMacro/[EXPANSION].rs' ) ;
4746 eventEmitter = new vscode . EventEmitter < vscode . Uri > ( ) ;
4847
49- constructor ( ctx : Ctx ) {
50- this . ctx = ctx ;
48+ constructor ( private readonly ctx : Ctx ) {
5149 }
5250
5351 async provideTextDocumentContent ( _uri : vscode . Uri ) : Promise < string > {
Original file line number Diff line number Diff line change @@ -68,12 +68,10 @@ interface SyntaxTreeParams {
6868
6969class TextDocumentContentProvider
7070 implements vscode . TextDocumentContentProvider {
71- private ctx : Ctx ;
7271 uri = vscode . Uri . parse ( 'rust-analyzer://syntaxtree' ) ;
7372 eventEmitter = new vscode . EventEmitter < vscode . Uri > ( ) ;
7473
75- constructor ( ctx : Ctx ) {
76- this . ctx = ctx ;
74+ constructor ( private readonly ctx : Ctx ) {
7775 }
7876
7977 provideTextDocumentContent ( uri : vscode . Uri ) : vscode . ProviderResult < string > {
You can’t perform that action at this time.
0 commit comments