diff --git a/CHANGELOG.md b/CHANGELOG.md index f4707e2..59de2ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- "Not configured" error messages now mention `tfvc.adoBaseUrl` as an alternative to `tfvc.adoOrg` for on-prem installs. Previously both the SCM error toast (`src/extension.ts`) and the review-diff placeholder text (`src/providers/fileContent.ts`) told users to set `tfvc.adoOrg`, sending on-prem users chasing a field they don't need — the underlying check has always accepted either. + ## [0.4.0] ### Changed diff --git a/src/extension.ts b/src/extension.ts index 1fdd22f..e29977a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -168,8 +168,8 @@ export async function activate(context: vscode.ExtensionContext): Promise function notConfigured(): void { vscode.window.showErrorMessage( - 'TFVC: Not configured. Run "TFVC: Set PAT", configure tfvc.adoOrg and tfvc.adoProject in settings, ' + - 'then run "TFVC: Initialize Workspace".' + 'TFVC: Not configured. Run "TFVC: Set PAT", set tfvc.adoProject and either tfvc.adoOrg (cloud) ' + + 'or tfvc.adoBaseUrl (on-prem) in settings, then run "TFVC: Initialize Workspace".' ); } diff --git a/src/providers/fileContent.ts b/src/providers/fileContent.ts index a7edde4..c568294 100644 --- a/src/providers/fileContent.ts +++ b/src/providers/fileContent.ts @@ -32,7 +32,7 @@ export class ReviewFileContentProvider implements vscode.TextDocumentContentProv async provideTextDocumentContent(uri: vscode.Uri): Promise { if (!this.restClient) { - return '// ADO REST client not configured. Set tfvc.pat and tfvc.adoOrg in settings.'; + return '// ADO REST client not configured. Set tfvc.pat and either tfvc.adoOrg (cloud) or tfvc.adoBaseUrl (on-prem) in settings.'; } const cacheKey = uri.toString();