Skip to content

Commit 6ffcefb

Browse files
authored
Release v0.3.1 (#235)
2 parents f7a99e5 + ba45aa8 commit 6ffcefb

File tree

7 files changed

+41
-10
lines changed

7 files changed

+41
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 0.3.1
4+
5+
### Fixes
6+
7+
- **Tree View Stability**: Improved the stability of the Connections View when adding or removing databases and collections. This change prevents internal warnings that could occur when displaying temporary items in the tree. [#233](https://github.com/microsoft/vscode-documentdb/pull/233)
8+
39
## 0.3.0
410

511
### New Features & Improvements

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ This section contains detailed documentation for specific features and concepts
6262

6363
Explore the history of updates and improvements to the DocumentDB for VS Code extension. Each release brings new features, enhancements, and fixes to improve your experience.
6464

65-
- [0.3.0](./release-notes/0.3.0.md)
65+
- [0.3](./release-notes/0.3.md)
6666
- [0.2.4](./release-notes/0.2.4.md)
6767
- [0.2.3](./release-notes/0.2.3.md)
6868
- [0.2.2](./release-notes/0.2.2.md)
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!-- Release Notes Section Badge or Breadcrumb -->
22

3-
> **Release Notes** &mdash; [Back to Release Notes Index](./index)
3+
> **Release Notes** [Back to Home](../index.md)
44
55
---
66

7-
# DocumentDB for VS Code Extension v0.3.0
7+
# DocumentDB for VS Code Extension v0.3
88

9-
We are excited to announce the release of **DocumentDB for VS Code Extension v0.3.0**. This release introduces a major new feature: support for **Microsoft Entra ID** authentication with **Azure Cosmos DB for MongoDB (vCore)** clusters. This enhances security for enterprise scenarios and aligns with modern identity management practices.
9+
We are excited to announce the release of **DocumentDB for VS Code Extension v0.3**. This release introduces a major new feature: support for **Microsoft Entra ID** authentication with **Azure Cosmos DB for MongoDB (vCore)** clusters. This enhances security for enterprise scenarios and aligns with modern identity management practices.
1010

11-
## What's New in v0.3.0
11+
## What's New in v0.3
1212

1313
### **Support for Entra ID for Azure Cosmos DB for MongoDB (vCore)** ([#123](https://github.com/microsoft/vscode-documentdb/issues/123))
1414

@@ -44,3 +44,20 @@ To help guide you, if the provided hostname is not recognized as an Azure Cosmos
4444

4545
See the full changelog entry for this release:
4646
➡️ [CHANGELOG.md#030](https://github.com/microsoft/vscode-documentdb/blob/main/CHANGELOG.md#030)
47+
48+
---
49+
50+
## Patch Release v0.3.1
51+
52+
This patch release includes a fix to improve the stability of the extension.
53+
54+
### What's Fixed in v0.3.1
55+
56+
#### 🐛 **Tree View Stability** ([#233](https://github.com/microsoft/vscode-documentdb/pull/233))
57+
58+
We've improved the stability of the **Connections View** when adding or removing databases and collections. This change prevents internal warnings that could occur when displaying temporary items in the tree, ensuring a smoother experience when managing your connections.
59+
60+
### Changelog
61+
62+
See the full changelog entry for this release:
63+
➡️ [CHANGELOG.md#031](https://github.com/microsoft/vscode-documentdb/blob/main/CHANGELOG.md#031)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vscode-documentdb",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
55
"publisher": "ms-azuretools",
66
"displayName": "DocumentDB for VS Code",

src/tree/discovery-view/DiscoveryBranchDataProvider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ export class DiscoveryBranchDataProvider extends vscode.Disposable implements Ex
260260
) as TreeElement;
261261

262262
// Register parent-child relationship in the cache
263-
if (element.id && wrappedChild.id) {
263+
// Note: The check for `typeof wrappedChild.id === 'string'` is necessary because `wrapItemInStateHandling`
264+
// can process temporary nodes that don't have an `id` property, which would otherwise cause a runtime error.
265+
if (element.id && typeof wrappedChild.id === 'string') {
264266
this.parentCache.registerRelationship(element, wrappedChild);
265267
}
266268

src/tree/documentdb/ClusterItemBase.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,13 @@ export abstract class ClusterItemBase
165165
* @returns True if any child in the array is an error node, false otherwise.
166166
*/
167167
public hasRetryNode(children: TreeElement[] | null | undefined): boolean {
168-
return !!(children && children.length > 0 && children.some((child) => child.id.endsWith('/reconnect')));
168+
// Note: The check for `typeof child.id === 'string'` is necessary because `showCreatingChild`
169+
// can add temporary nodes that don't have an `id` property, which would otherwise cause a runtime error.
170+
return !!(
171+
children &&
172+
children.length > 0 &&
173+
children.some((child) => typeof child.id === 'string' && child.id.endsWith('/reconnect'))
174+
);
169175
}
170176

171177
/**

0 commit comments

Comments
 (0)