Skip to content

Commit c0d9dee

Browse files
committed
chore: use ts private fields for now
1 parent debc6f9 commit c0d9dee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/common/connectionManager.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,23 @@ export class ConnectionStateConnected implements ConnectionState {
4242
public connectedAtlasCluster?: AtlasClusterConnectionInfo
4343
) {}
4444

45-
#isSearchSupported?: boolean;
45+
private _isSearchSupported?: boolean;
4646

4747
public async isSearchSupported(): Promise<boolean> {
48-
if (this.#isSearchSupported === undefined) {
48+
if (this._isSearchSupported === undefined) {
4949
try {
5050
// If a cluster supports search indexes, the call below will succeed
5151
// with a cursor otherwise will throw an Error.
5252
// the Search Index Management Service might not be ready yet, but
5353
// we assume that the agent can retry in that situation.
5454
await this.serviceProvider.getSearchIndexes(MCP_TEST_DATABASE, "test");
55-
this.#isSearchSupported = true;
55+
this._isSearchSupported = true;
5656
} catch {
57-
this.#isSearchSupported = false;
57+
this._isSearchSupported = false;
5858
}
5959
}
6060

61-
return this.#isSearchSupported;
61+
return this._isSearchSupported;
6262
}
6363
}
6464

0 commit comments

Comments
 (0)