-
Notifications
You must be signed in to change notification settings - Fork 91
chore: use erasable syntax #1175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Now, we should definetely adopt erasable syntax but this is a bit too much refactoring right now so this quick fix will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR disables the experimental strip types feature in Node.js to fix failing tests. The change adds the --no-experimental-strip-types flag to the test-webview script while also adding new MongoDB syntax highlighting for similarity operators ($similarityCosine, $similarityDotProduct, $similarityEuclidean) and the $scoreFusion operator.
- Disables experimental strip types feature for webview tests
- Adds syntax highlighting support for MongoDB similarity operators
- Adds syntax highlighting support for MongoDB
$scoreFusionoperator
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Adds --no-experimental-strip-types flag to test-webview script to disable the experimental feature |
| syntaxes/mongodbInjection.tmLanguage.json | Adds TextMate grammar rules for MongoDB similarity operators and score fusion operator |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
| }, | ||
| { | ||
| "name": "meta.object.member.mongodb", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like some auto-generated that was missed from previous PRs
I admit this went out of hand, originally I thought erasable syntax will be just a couple of enums being converted to consts.
Then I noticed we use a lot of enums.
Then I noticed half of scripts use CJS-specific things.
Then I realized configuring mocha properly to use this erasable syntax is too complicated... so we still use
ts-nodefor that, a shame 😢Still, having less ts-node is cool. 🤷