Skip to content

Conversation

lerouxb
Copy link
Collaborator

@lerouxb lerouxb commented Jun 30, 2025

No description provided.

@@ -54,7 +54,7 @@
"dependencies": {
"debug": "^4.4.0",
"lodash": "^4.17.21",
"typescript": "^5.0.4"
"typescript": "^5.3.3"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same version as in mongosh.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here in the repo the package-lock points to 5.8.2 anyway, feel free to also bump it to that in mongosh too (not a blocker for this PR really, the version here in package.json doesn't really matter anyway)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bumped it to 5.8.2 anyway now.

@@ -63,6 +63,7 @@
"@mongodb-js/tsconfig-devtools": "^1.0.3",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.1.1",
"@types/node": "^22.15.30",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't have this specified explicitly which might be why in mongosh the language server is using old types - could be that it is just using the hoisted version of @types/node there.

result.fileName === '/shell-api.ts' ||
result.fileName?.startsWith('/connection-')
) {
if (result.fileName?.endsWith('shell-api.ts')) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

connection files actually start with connection_, not connection- but it is only the -shell-api.ts ones that are huge and clog up debug output, causing it to be cut off and then we can't see all the actual errors.

@@ -54,7 +54,7 @@
"dependencies": {
"debug": "^4.4.0",
"lodash": "^4.17.21",
"typescript": "^5.0.4"
"typescript": "^5.3.3"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here in the repo the package-lock points to 5.8.2 anyway, feel free to also bump it to that in mongosh too (not a blocker for this PR really, the version here in package.json doesn't really matter anyway)

@lerouxb lerouxb merged commit f085a10 into main Jun 30, 2025
30 checks passed
@lerouxb lerouxb deleted the debug-ts-autocomplete branch June 30, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants