Skip to content

Commit 9fc5649

Browse files
committed
filter out the shell-api text from debug results at new location, specify recent node types
1 parent f4d57d2 commit 9fc5649

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

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

packages/ts-autocomplete/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"@mongodb-js/tsconfig-devtools": "^1.0.3",
6464
"@types/chai": "^4.2.21",
6565
"@types/mocha": "^9.1.1",
66+
"@types/node": "^22.15.30",
6667
"@types/sinon-chai": "^3.2.5",
6768
"chai": "^4.5.0",
6869
"depcheck": "^1.4.7",

packages/ts-autocomplete/src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,7 @@ function filterDiagnostics(diagnostics: ts.Diagnostic[]): {
165165
..._.pick(item, 'messageText'),
166166
};
167167

168-
if (
169-
result.fileName === '/shell-api.ts' ||
170-
result.fileName?.startsWith('/connection-')
171-
) {
168+
if (result.fileName?.endsWith('shell-api.ts')) {
172169
delete result.text;
173170
}
174171

0 commit comments

Comments
 (0)