Skip to content

Commit d7df781

Browse files
authored
fix(connect-form): Update file path resolve to use fsPath instead of path (#350)
1 parent 2bc4334 commit d7df781

File tree

4 files changed

+78
-24
lines changed

4 files changed

+78
-24
lines changed

package-lock.json

Lines changed: 75 additions & 21 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
@@ -879,7 +879,7 @@
879879
"debug": "^4.3.2",
880880
"dotenv": "^8.2.0",
881881
"micromatch": "^4.0.4",
882-
"mongodb": "^4.1.0",
882+
"mongodb": "^4.1.2",
883883
"mongodb-cloud-info": "^1.1.2",
884884
"mongodb-connection-model": "^21.5.4",
885885
"mongodb-data-service": "^21.5.4",

src/test/suite/views/webviewController.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ suite('Webview Test Suite', () => {
480480

481481
const fakeVSCodeOpenDialog = sinon.fake.resolves([
482482
{
483-
path: '/somefilepath/test.text'
483+
fsPath: '/somefilepath/test.text'
484484
}
485485
]);
486486

src/views/webviewController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default class WebviewController {
131131
command: MESSAGE_TYPES.FILE_PICKER_RESULTS,
132132
action: message.action,
133133
files: (files && files.length > 0)
134-
? files.map((file) => file.path)
134+
? files.map((file) => file.fsPath)
135135
: undefined
136136
});
137137
};

0 commit comments

Comments
 (0)