-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Allow testCaseRecorder to be nullable #1988
Conversation
This isn't done yet. |
Commit 6d3f4ec is what I was aware was missing. |
Hmm this all feels kinda wrong to me:
In our original slack discussion, I thought it was just limited to Do you have an easier hack you can do in your patch for now? |
Well, since I'm not just removing the symbol & code for TestCaseRecorder entirely, I have to define it to be something, so I'm locally patching it to be an empty class. I could instead locally patch it to be a no-op class. This gets pretty close to just defining an interface and injecting it. I like the idea of moving it (and perhaps other test code) to a separate package. I haven't considered what boilerplate is involved in doing that myself yet. |
Do you think the test case recorder commands should be disabled when isWeb or when some Google/Cider-specific context key is set? isWeb would be cleaner since the when clause will appear in packages.json, but I'm not sure if you aspire to have the recorder work on the web. |
The test case recorder only works when you're running the extension in development mode, so I'm happy to have it switched off on web. I don't think we need to support our devs recording new test cases from web; certainly not in the near term Btw is |
It looks like either would work: https://code.visualstudio.com/api/references/when-clause-contexts#available-context-keys. |
ah ok cool. I think in this case virtual filesystem is more specific because that's the primary reason we can't use the test case recorder; we have nowhere to put the tests. But I don't feel strongly |
Closing in favour of #2002 |
No description provided.