@@ -100,7 +100,7 @@ function onDidChangeActiveTextEditor(editor: TextEditor | undefined) {
100
100
const { languageId, uri } = editor . document ;
101
101
102
102
const workspace = clientWorkspaceForUri ( uri , {
103
- startIfMissing : languageId === 'rust' || languageId === 'toml' ,
103
+ initializeIfMissing : languageId === 'rust' || languageId === 'toml' ,
104
104
} ) ;
105
105
if ( ! workspace ) {
106
106
return ;
@@ -139,12 +139,12 @@ function whenChangingWorkspaceFolders(e: WorkspaceFoldersChangeEvent) {
139
139
const workspaces : Map < string , ClientWorkspace > = new Map ( ) ;
140
140
141
141
/**
142
- * Fetches a `ClientWorkspace` for a given URI. If missing and `startIfMissing `
142
+ * Fetches a `ClientWorkspace` for a given URI. If missing and `initializeIfMissing `
143
143
* option was provided, it is additionally initialized beforehand, if applicable.
144
144
*/
145
145
function clientWorkspaceForUri (
146
146
uri : Uri ,
147
- options ?: { startIfMissing : boolean } ,
147
+ options ?: { initializeIfMissing : boolean } ,
148
148
) : ClientWorkspace | undefined {
149
149
const rootFolder = workspace . getWorkspaceFolder ( uri ) ;
150
150
if ( ! rootFolder ) {
@@ -157,7 +157,7 @@ function clientWorkspaceForUri(
157
157
}
158
158
159
159
const existing = workspaces . get ( folder . uri . toString ( ) ) ;
160
- if ( ! existing && options && options . startIfMissing ) {
160
+ if ( ! existing && options && options . initializeIfMissing ) {
161
161
const workspace = new ClientWorkspace ( folder ) ;
162
162
workspaces . set ( folder . uri . toString ( ) , workspace ) ;
163
163
workspace . autoStart ( ) ;
0 commit comments