-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Debugger outstanding issues #15392
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?
Debugger outstanding issues #15392
Conversation
This reverts commit d8b0b38.
| static void SetUIThreadDispatcher(IReactPropertyBag const &properties) noexcept; | ||
|
|
||
| static IReactPropertyName JSDispatcherProperty() noexcept; | ||
| static IReactDispatcher GetJSDispatcher(IReactPropertyBag const &properties) noexcept; |
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.
Please keep the IReactDispatcher.h and IReactDispatcher.cpp files unchanged.
Let's keep the access to the JS dispatcher as we do it for the UI Dispatcher.
| winrt::Windows::Foundation::IAsyncOperation<winrt::hstring> getApplicationDataPath(const wchar_t *childfolder); | ||
|
|
||
| // string formatting | ||
| std::string string_format(_Printf_format_string_ const char *format, ...); |
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.
The string_format name does not play well with other naming conventions that we have. We mostly use the Pascal naming conventions. Also, the function should typically start with a verb. Could you please change it to FormatString?
|
|
||
| TEST_METHOD(UtilsTest_StringFormat_Simple) | ||
| { | ||
| auto result = Microsoft::React::string_format("Hello, %s!", "World"); |
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.
Please avoid using auto unless you absolutely must use it.
Having the std::string here in the new code is much more readable.
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.
curious, why avoid auto? I've never actually known what is better style
|
|
||
| TEST_METHOD(UtilsTest_StringFormat_EmptyString) | ||
| { | ||
| auto result = Microsoft::React::string_format(""); |
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.
What if someone passes nullptr?
Description
1> Provides the real process ID to the RuntimeSamplingProfile constructor
2>Remove DevSupportManager::OpenDevTools not needed with modern inspector infra
3> move string_format to Microsoft::React namespace
4> Remove support for the old sampling profiler
Type of Change
Why
solves modern Inspector Outstanding Issues
Resolves [Add Relevant Issue Here]
#15349
What
1> Provides the real process ID to the RuntimeSamplingProfile constructor
2>Remove DevSupportManager::OpenDevTools not needed with modern inspector infra
3> move string_format to Microsoft::React namespace
Screenshots
Testing
tested locally on playground and added unittests for string_format changes.
Changelog
Should this change be included in the release notes: indicate no
Microsoft Reviewers: Open in CodeFlow