@@ -104,40 +104,52 @@ export default class EditorsController {
104
104
_editDocumentCodeLensProvider : EditDocumentCodeLensProvider ;
105
105
_collectionDocumentsCodeLensProvider : CollectionDocumentsCodeLensProvider ;
106
106
107
- constructor (
108
- context : vscode . ExtensionContext ,
109
- connectionController : ConnectionController ,
110
- playgroundController : PlaygroundController ,
111
- statusView : StatusView ,
112
- telemetryService : TelemetryService ,
113
- playgroundResultViewProvider : PlaygroundResultProvider ,
114
- activeConnectionCodeLensProvider : ActiveConnectionCodeLensProvider ,
115
- exportToLanguageCodeLensProvider : ExportToLanguageCodeLensProvider ,
116
- playgroundSelectedCodeActionProvider : PlaygroundSelectedCodeActionProvider ,
117
- playgroundDiagnosticsCodeActionProvider : PlaygroundDiagnosticsCodeActionProvider ,
118
- editDocumentCodeLensProvider : EditDocumentCodeLensProvider
119
- ) {
107
+ constructor ( {
108
+ context,
109
+ connectionController,
110
+ playgroundController,
111
+ statusView,
112
+ telemetryService,
113
+ playgroundResultViewProvider,
114
+ activeConnectionCodeLensProvider,
115
+ exportToLanguageCodeLensProvider,
116
+ playgroundSelectedCodeActionProvider,
117
+ playgroundDiagnosticsCodeActionProvider,
118
+ editDocumentCodeLensProvider,
119
+ } : {
120
+ context : vscode . ExtensionContext ;
121
+ connectionController : ConnectionController ;
122
+ playgroundController : PlaygroundController ;
123
+ statusView : StatusView ;
124
+ telemetryService : TelemetryService ;
125
+ playgroundResultViewProvider : PlaygroundResultProvider ;
126
+ activeConnectionCodeLensProvider : ActiveConnectionCodeLensProvider ;
127
+ exportToLanguageCodeLensProvider : ExportToLanguageCodeLensProvider ;
128
+ playgroundSelectedCodeActionProvider : PlaygroundSelectedCodeActionProvider ;
129
+ playgroundDiagnosticsCodeActionProvider : PlaygroundDiagnosticsCodeActionProvider ;
130
+ editDocumentCodeLensProvider : EditDocumentCodeLensProvider ;
131
+ } ) {
120
132
this . _connectionController = connectionController ;
121
133
this . _playgroundController = playgroundController ;
122
134
this . _context = context ;
123
135
this . _statusView = statusView ;
124
136
this . _telemetryService = telemetryService ;
125
137
this . _memoryFileSystemProvider = new MemoryFileSystemProvider ( ) ;
126
138
this . _documentIdStore = new DocumentIdStore ( ) ;
127
- this . _mongoDBDocumentService = new MongoDBDocumentService (
128
- this . _context ,
129
- this . _connectionController ,
130
- this . _statusView ,
131
- this . _telemetryService
132
- ) ;
139
+ this . _mongoDBDocumentService = new MongoDBDocumentService ( {
140
+ context : this . _context ,
141
+ connectionController : this . _connectionController ,
142
+ statusView : this . _statusView ,
143
+ telemetryService : this . _telemetryService ,
144
+ } ) ;
133
145
this . _editDocumentCodeLensProvider = editDocumentCodeLensProvider ;
134
- this . _collectionViewProvider = new CollectionDocumentsProvider (
135
- this . _context ,
146
+ this . _collectionViewProvider = new CollectionDocumentsProvider ( {
147
+ context : this . _context ,
136
148
connectionController,
137
- this . _collectionDocumentsOperationsStore ,
138
- new StatusView ( context ) ,
139
- this . _editDocumentCodeLensProvider
140
- ) ;
149
+ operationsStore : this . _collectionDocumentsOperationsStore ,
150
+ statusView : new StatusView ( context ) ,
151
+ editDocumentCodeLensProvider : this . _editDocumentCodeLensProvider ,
152
+ } ) ;
141
153
this . _playgroundResultViewProvider = playgroundResultViewProvider ;
142
154
this . _activeConnectionCodeLensProvider = activeConnectionCodeLensProvider ;
143
155
this . _exportToLanguageCodeLensProvider = exportToLanguageCodeLensProvider ;
0 commit comments