Releases: microsoft/vscode-documentdb
Releases · microsoft/vscode-documentdb
v0.8.1
New Features
- Item Counts on Tree Nodes: Database nodes now display a live collection count, and the Indexes folder shows an index count. Counts load asynchronously without blocking tree expansion. A new
documentDB.accessibility.hideCountPrefixsetting hides the··visual separator for accessibility or aesthetic preference. #714, #658, #659 - AI Model Transparency in Query Insights: Query Insights now discloses which model processed the request and confirms upfront that the utility model does not count against the GitHub Copilot premium request quota. A model attribution byline ("Powered by {model} via GitHub Copilot") appears after each successful analysis. #690
- Batch Connection Deletion: Multi-select connections in the Connections View and delete them all in one command. The confirmation message adapts to the count, deletion continues on individual failures, and a summary is reported on completion. #667
Improvements
- Performance: Faster Connection Load and Startup: Significant startup speedup, especially on Remote-WSL and large connection lists. Connections now load concurrently; a short-lived cache coalesces redundant reads; startup cleanup is gated to run once per version, not every launch. Also removes the legacy one-time Azure Databases extension connection import. Note: users who had un-imported connections in
ms-azuretools.vscode-cosmosdbwill need to re-add them manually. #726 - Performance: Throttled Background Document-Count Fetches: A per-cluster concurrency limiter now caps simultaneous background count requests at 5 with a 250 ms inter-task delay, preventing connection pool saturation when expanding databases with many collections. #685
- Shard Key in Collection Tooltip: Sharded collections now show their shard key in the hover tooltip. Extracted from the existing
listCollections()response at no extra cost. #670, #661 - Contextual Query Playground Filenames: New playground files opened from the tree now use context-derived names (e.g.,
cluster_collection.documentdb.js) with invalid-character sanitization and numeric suffixes for duplicates. #664, #660 _id_Index Sorted First: The_id_index now always appears at the top of the Indexes list regardless of other index names and locale sort order. #662, #657credentialId→clusterIdParameter Rename: Renamed thecredentialIdparameter toclusterIdinClustersClientandClusterSessionfor naming consistency. Community contribution by @CalvinMagezi, @Jah-yee, and @Enocko. #652, #567- Hidden Index Tree Item: Hidden indexes now show a
hiddendescription label and only the appropriate context menu action (Hide or Unhide, not both). The_id_index shows neither action. #674, #656 - Removed Obsolete Notification Migration Code: Cleaned up pre-0.7.0 transitional release-notes logic and leftover
0.8.0-bugbashmigration paths. #622, #611
Fixes
- Node 24 Compatibility: VS Code 1.123 (released June 3, 2026) ships with Node 24, which broke extension loading. Updated
@microsoft/vscode-azext-utils(~3.3.1 → ~4.1.0) and@microsoft/vscode-azext-azureutils(~3.4.5 → ~4.2.0) to restore compatibility. #699
Dependencies
v0.8.0
New Features
- Context-Aware Autocompletion in Collection View: The filter, project, sort, and aggregation editors now provide schema-aware field suggestions, type-aware operator ordering, hover documentation, real-time syntax validation, and relaxed query syntax (unquoted keys, BSON constructors, JavaScript expressions). #508, #506, #513, #518
- Query Playground: Introduces
.documentdb.jsfiles for writing and running JavaScript scripts against your cluster with CodeLens execution (per-block and Run All),console.log()/print()/printjson()support, per-file connections, and autocompletion fordb.*chains and schema fields. No external tools required: the runtime is bundled and works with Entra ID. #508, #573, #589 - Interactive Shell: A full REPL terminal in VS Code with shell commands (
show dbs,use <db>,help,it,exit), persistent eval context (variables carry over between commands), syntax highlighting, tab completion with ghost text,Ctrl+Ccancellation, and clickable result links. Bundled runtime, no external tools needed, works with Entra ID. #508, #573, #576, #580 - Cross-Feature Navigation: Collection View, Query Playground, and Interactive Shell are linked with toolbar buttons, CodeLens actions, clickable terminal links, and clipboard copy/paste for seamless query movement between surfaces. #589
- About Dialog: Adds an "About" entry to the Help & Feedback view with extension version, VS Code version, OS details, and registered plugins, plus a Copy button for bug reporting. #612
Improvements
- Query Insights: Static Analysis: Improved performance evaluation with selectivity and fetch overhead metrics, three-color badge system, index strategy advisories, and edge case fixes. AI analysis now aligns with static analysis to avoid contradictions. Demoted score for single-field bitmap indexes on high-selectivity queries. #615, #616, #623
- Double-Click to Open Collection View: The Documents tree item now requires a double-click to open the Collection View, preventing tabs from opening accidentally on single-click browse.
- Custom Editor Tab Icons: Collection View, Document View, and Query Playground tabs now display dedicated icons instead of the default webview icon.
- Telemetry: Simplified and standardized telemetry instrumentation across connection, discovery, shell, and playground features. #601, #544, #599
- Internal Package Rename: Renamed internal packages to
@documentdb-jsscope for consistency. #613 - Prerelease Version Migration: Implemented migration for prerelease version handling in notifications. #610
Fixes
- Duplicate Connection Reveal: Fixed an issue where revealing a duplicate connection failed when the connection was inside a folder. #602
Dependencies
v0.7.4
New Features & Improvements
- URL-Encoded Password Detection: When a connection attempt fails and the password contains URL-encoded characters, the extension now offers a "Retry with Decoded Password" option. If the retry succeeds, the decoded password can be saved. #444, #594
- Rich Markdown Tooltips: Cluster, database, and collection tree items in the Connections view now show rich markdown tooltips on hover, displaying useful details (host, auth method, document count, storage size) without requiring expansion or connection. #579, #588
- Copy Reference Context Menu: Adds a "Copy Reference…" right-click option to database, collection, and index nodes with a QuickPick format picker. Databases offer name, shell command (
use dbName), or qualified name; collections offer name, namespace, shell reference, ordb.getCollection()form; indexes offer name, key definition, or shell command. Names with special characters automatically use safe escaping. #545, #587
Documentation
- Improved CONTRIBUTING.md: Adds a PR submission checklist, corrects Node/npm version requirements, and adds multi-platform setup stubs. #565
Dependencies
v0.7.3
New Features
- Cancellable Connection: Users can now cancel in-progress cluster connection attempts via the progress notification. #529
Improvements
- Dependency Updates: Upgrades Node.js from 20 to 22 and bumps
undici,handlebars,brace-expansion,picomatch, andflattedto their latest versions. #523, #534, #537, #539, #541, #542 - Telemetry Improvements: Refines connection and discovery action telemetry with more specific, actionable diagnostic properties. #544
v0.7.2
Improvements
- Data Migration Discoverability: The "Data Migration…" menu is now always visible on cluster nodes and introduces announced providers infrastructure to help users discover and install migration extensions from the Marketplace. #515
- Reconnect Prompt After Credential Update: Offers a reconnect prompt when updating credentials from an error recovery node, so users no longer need to manually retry the connection. #504
- Experimental AI Query Generation Setting: Adds
documentDB.experimental.enableAIQueryGenerationsetting to control the AI query generation feature, disabled by default. Reports experimental feature status via activation telemetry. #503 - tRPC Upgrade and Abort Signal Support: Upgrades
@trpc/clientand@trpc/serverto v11.10.0 and addsAbortSignal-based cancellation for webview operations. #320, #502 - Connection String Validation: Adds defensive trimming (including BOM, NBSP) at all input entry points and simplifies credential validation to avoid unnecessary parse/serialize round-trips. #511
- Feedback Collection Documentation: Documents how the extension collects user feedback and its relation to VS Code's global telemetry setting in the README. #509
Security
- Dependency Updates: Updates
minimatch(3.1.2 → 3.1.4),qs, andbody-parserto address security vulnerabilities. #505, #514
Version 0.7.1 was reserved for an internal validation build and was not released on the Marketplace.
v0.7.0
New Features
- Collection Copy and Paste: Adds lightweight data migration to copy collections across databases and connections, with conflict resolution options and throttling-aware batching. #63, #170
- Connection Folders: Adds folders and subfolders in the Connections view to organize connections, including move/rename/delete workflows. #426
Improvements
- Accessibility: Improves screen reader announcements, keyboard navigation, and ARIA labeling across Query Insights and document editing. #374, #375, #377, #378, #379, #380, #381, #384, #385
- Alphabetical Collection Sorting: Sorts collections alphabetically in the tree view. #456, #465
- Cancellable Imports: Import operations can now be cancelled. #496
- Collection Paste Feedback: Refreshes collection metadata after paste and improves error reporting for failed writes. #482, #484
- Collection Paste Validation and Input Trimming Consistency: Fixes inconsistent trimming/validation of user input. #493
- Connection String Validation: Trims and validates connection string input to avoid empty values. #467
- Copy Connection String with Password: Adds an option to include the password when copying a connection string. #436
- Estimated Document Count: Shows an estimated document count for collections in the tree view. #170
- Import/Export Feedback: Improves user feedback and error handling for import/export operations. #495
- Query Insights Prompt Hardening: Updates the Query Insights model/prompt and adds additional prompt-injection mitigations. #468
- Release Notes Notification: Prompts users to view release notes after upgrading to a new major or minor version. #487
Fixes
- Azure Resources View Expansion: Fixes cluster expansion failures in the Azure Resources view by deriving resource group information from resource IDs. #480
- Connection String Deduplication: Fixes an issue where connection string parameters were duplicated, ensuring valid connection strings and compliance with specifications. #478
- Dark Theme Rendering: Fixes unreadable text in some dark themes by respecting theme colors. #457
- Import from Discovery View: Fixes document import for Azure Cosmos DB for MongoDB (RU) discovery when connection metadata is not yet cached. #368, #479
- Invalid Query JSON: Shows a clear error when query JSON fails to parse instead of silently using empty objects. #458, #471
- Keyboard Paste Shortcuts: Restores Ctrl+V/Cmd+V in the Query Editor and Document View by pinning Monaco to 0.52.2. #435, #470
- Query Insights Markdown Rendering: Restricts AI output formatting to avoid malformed markdown rendering. #428
Security
v0.6.3
Improvements
- Query Insights: The Query Insights feature has been updated to use the available
executionStatsinstead of running the analysis in the AI context, improving performance and reliability. #404, #423 - API Telemetry Support: Enhanced telemetry support in web views for better monitoring and diagnostics. #429
- Dependency Security Update: Updated
tRPCdependencies to address a security vulnerability. #430, #431
v0.6.2
Fixes
- Azure Tenant Filtering in Service Discovery: Resolved an issue where users could not deselect tenants when filtering from a large number of available tenants. This update improves the Azure account, tenant, and subscription management workflow. For more details on the enhanced workflow, see the updated documentation. #391, #415
- Service Discovery Defaults: The service discovery feature now starts with no pre-selected engines. Previously, the Azure Cosmos DB for MongoDB (RU) plugin was enabled by default, which has been corrected. #390, #412
- Accessibility in Query Insights: Fixed a responsive layout issue in the "Query Insights" tab where the 'AI response may be inaccurate' text would overlap with other UI elements on resize. #376, #416
Improvements
v0.6.1
New Features & Improvements
- Feedback Optimization: Introduces privacy consent and feedback signal controls for the Query Insights feature, primarily to ensure compliance with organizational data protection requirements and user telemetry settings. It also disables survey functionality and refines the feedback dialog UI. #392
Fixes
- Privacy Policy Link: Updated the outdated privacy policy link in the README to the current Microsoft privacy statement URL. #388
v0.6.0
New Features & Improvements
- Query Insights with Performance Advisor: Introduces a new "Query Insights" tab that provides a three-stage analysis of query performance. This includes a static query plan, detailed execution statistics, and AI-powered recommendations from GitHub Copilot to help understand performance bottlenecks and optimize slow queries.
- Improved Query Specification: The query editor now supports
projection,sort,skip, andlimitparameters, in addition tofilter. Autocompletion is also enabled forprojectionandsortfields. - Index Management from the Tree View: Users can now
drop,hide, andunhideindexes directly from the context menu in the Connections View. - Azure Cosmos DB for MongoDB (vCore) is now Azure DocumentDB: Renamed the service in the UI and in the documentation.
Fixes
- UI Element Visibility: Fixed issues where the autocomplete list in the query editor and tooltips in tree/table views could be hidden by other UI elements.