Skip to content

Conversation

@gagik
Copy link
Contributor

@gagik gagik commented Nov 4, 2025

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-node for that, a shame 😢
Still, having less ts-node is cool. 🤷

Now, we should definetely adopt erasable syntax but this is a bit too much refactoring right now so this quick fix will do.
@gagik gagik requested a review from a team as a code owner November 4, 2025 10:24
Copilot AI review requested due to automatic review settings November 4, 2025 10:24
Copy link
Contributor

Copilot AI left a 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 $scoreFusion operator

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",
Copy link
Contributor Author

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

@gagik gagik changed the title chore: disable experimental strip types to fix tests chore: use erasable syntax Nov 12, 2025
@gagik gagik marked this pull request as ready for review November 12, 2025 14:19
@gagik gagik marked this pull request as draft November 12, 2025 14:20
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