Skip to content

Commit ba707e1

Browse files
fix: playground through ssh connection (#106)
1 parent bc1d017 commit ba707e1

File tree

7 files changed

+22
-122
lines changed

7 files changed

+22
-122
lines changed

examples/lucas_plant_temp_readings.mongodb

Lines changed: 0 additions & 101 deletions
This file was deleted.

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@
618618
"dotenv": "^8.2.0",
619619
"encoding": "^0.1.12",
620620
"mongodb-cloud-info": "^1.1.2",
621-
"mongodb-connection-model": "^16.0.1",
622-
"mongodb-data-service": "^16.6.6",
621+
"mongodb-connection-model": "^16.1.0",
622+
"mongodb-data-service": "^16.7.0",
623623
"mongodb-ns": "^2.2.0",
624624
"mongodb-schema": "^8.2.5",
625625
"react": "^16.13.1",

src/connectionModelType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
type ConnectionAttributes = {
22
driverUrl: string;
3+
driverUrlWithSsh: string;
34
driverOptions: any;
45
instanceId: string;
56
};

src/editors/playgroundController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ export default class PlaygroundController {
8787
.getActiveConnectionModel()
8888
?.getAttributes({ derived: true });
8989

90-
if (model && model.driverUrl) {
91-
this._connectionString = model.driverUrl;
90+
if (model && model.driverUrlWithSsh) {
91+
this._connectionString = model.driverUrlWithSsh;
9292
this._connectionOptions = model.driverOptions ? model.driverOptions : {};
9393

9494
return this._languageServerController.connectToServiceProvider({

src/test/suite/editors/playgroundController.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const expect = chai.expect;
1515
chai.use(require('chai-as-promised'));
1616

1717
const CONNECTION = {
18-
driverUrl: 'mongodb://localhost:27018',
18+
driverUrlWithSsh: 'mongodb://localhost:27018',
1919
driverOptions: {}
2020
};
2121

src/test/suite/language/languageServerController.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { TestExtensionContext } from '../stubs';
1919
import { mdbTestExtension } from '../stubbableMdbExtension';
2020

2121
const CONNECTION = {
22-
driverUrl: 'mongodb://localhost:27018',
22+
driverUrlWithSsh: 'mongodb://localhost:27018',
2323
driverOptions: {}
2424
};
2525

0 commit comments

Comments
 (0)