Skip to content

Commit

Permalink
fix(connect-form): Update file path resolve to use fsPath instead of …
Browse files Browse the repository at this point in the history
…path (#350)
  • Loading branch information
Anemy authored Oct 4, 2021
1 parent 2bc4334 commit d7df781
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 24 deletions.
96 changes: 75 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@
"debug": "^4.3.2",
"dotenv": "^8.2.0",
"micromatch": "^4.0.4",
"mongodb": "^4.1.0",
"mongodb": "^4.1.2",
"mongodb-cloud-info": "^1.1.2",
"mongodb-connection-model": "^21.5.4",
"mongodb-data-service": "^21.5.4",
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/views/webviewController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ suite('Webview Test Suite', () => {

const fakeVSCodeOpenDialog = sinon.fake.resolves([
{
path: '/somefilepath/test.text'
fsPath: '/somefilepath/test.text'
}
]);

Expand Down
2 changes: 1 addition & 1 deletion src/views/webviewController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class WebviewController {
command: MESSAGE_TYPES.FILE_PICKER_RESULTS,
action: message.action,
files: (files && files.length > 0)
? files.map((file) => file.path)
? files.map((file) => file.fsPath)
: undefined
});
};
Expand Down

0 comments on commit d7df781

Please sign in to comment.