Repository navigation
Clarify local emulator connection message and prompt - #300
Merged
Mike Krüger (mkrueger) merged 2 commits intoNov 17, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mike Krüger (mkrueger)
requested review from
a team
and
a balanced review from Copilot
November 17, 2026 11:32
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the emulator connection-labeling changes.
No open issues 🎉
What changed in this PR
Clarifies how the shell identifies local Cosmos DB emulator connections while preserving cloud account labels.
Changes:
- Shows the emulator endpoint in connection success messages and
emulatorin prompts across account, database, and container scopes. - Adds regression tests for emulator labels and unchanged cloud account behavior.
- Updates localized messages, the localization catalog, and navigation documentation.
| File | Description |
|---|---|
l10n/CosmosDBShell.json |
Adds the emulator connection message to the catalog. |
docs/navigation.md |
Documents emulator connection messages and prompt labels. |
CosmosDBShell/lang/en.ftl |
Defines the localized emulator connection message. |
CosmosDBShell/Azure.Data.Cosmos.Shell.Core/ShellInterpreter.cs |
Selects connection success messages based on the endpoint. |
CosmosDBShell/Azure.Data.Cosmos.Shell.Core/CosmosShellPrompt.cs |
Uses emulator for local emulator prompt labels. |
CosmosDBShell.Tests/Shell/CosmosShellPromptTests.cs |
Tests emulator and cloud labels across connected scopes. |
CosmosDBShell.Tests/CommandTests/ConnectCommandTests.cs |
Tests emulator endpoint messages and preserved cloud messages. |
Review effort: Balanced
Vsevolod Kukol (sevoku)
approved these changes
Nov 17, 2026
Code coverage overviewLanguages: C# C# / code-coverage/dotnet
View coverage of the 2 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mike Krüger (mkrueger)
added a commit
that referenced
this pull request
Nov 17, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> (cherry picked from commit cf422ce)
Mike Krüger (mkrueger)
enabled auto-merge (squash)
November 17, 2026 12:35
Vsevolod Kukol (sevoku)
approved these changes
Nov 17, 2026
Mike Krüger (mkrueger)
deleted the
dev/mkrueger/fix/emulator-connection-label
branch
November 17, 2026 12:41
Mike Krüger (mkrueger)
added a commit
that referenced
this pull request
Nov 17, 2026
* Clarify local emulator connection message and prompt Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> (cherry picked from commit f40607a) * Update emulator connection integration test expectation for #300 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> (cherry picked from commit cf422ce) --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cosmosdev).emulatorin the interactive prompt instead of127orlocalhost, including database and container scopes.Validation
git diff --checkpassed.Scope
This does not address the separate missing-command-output issue from the screenshot. No breaking changes or migration steps.
Backport
Backport to
rel/1.2: #301. Merge this PR first, then the backport.