diff --git a/src/connected/binding.ts b/src/connected/binding.ts index 7429423d6..082154baa 100644 --- a/src/connected/binding.ts +++ b/src/connected/binding.ts @@ -132,15 +132,11 @@ export class BindingService { ); const workspaceFolder = workspaceFolders.find(f => f.name === selectedWorkspaceFolderName); - const existingSettings = VSCode.workspace + await VSCode.workspace .getConfiguration(SONARLINT_CATEGORY, workspaceFolder) - .get(BINDING_SETTINGS); - if (existingSettings.projectKey === undefined) { - await VSCode.workspace - .getConfiguration(SONARLINT_CATEGORY, workspaceFolder) - .update(BINDING_SETTINGS, { connectionId: params.connectionId, projectKey: params.projectKey }); - await this.languageClient.didCreateBinding(params.isFromSharedConfiguration ? BindingCreationMode.IMPORTED : BindingCreationMode.AUTOMATIC); - } + .update(BINDING_SETTINGS, { connectionId: params.connectionId, projectKey: params.projectKey }); + await this.languageClient.didCreateBinding(params.isFromSharedConfiguration ? BindingCreationMode.IMPORTED : BindingCreationMode.AUTOMATIC); + return { configurationScopeId: workspaceFolder.uri.toString() }; }