| 865 | } |
| 866 | |
| 867 | SC::Result SC::PluginRegistry::close() |
| 868 | { |
| 869 | Result result(true); |
| 870 | for (size_t idx = 0; idx < getNumberOfEntries(); ++idx) |
| 871 | { |
| 872 | // TODO: Investigate why releasing debugger PDB handles through Restart Manager can take |
| 873 | // several seconds when exiting SCExample under VSCode on a Parallels shared folder. |
| 874 | // Final process shutdown does not need it, but explicit unload/reload still does. |
| 875 | Result res = unloadPlugin(getIdentifierAt(idx).view(), false); |
| 876 | if (not res) |
| 877 | { |
| 878 | // We still want to continue unload all plugins |
| 879 | result = res; |
| 880 | } |
| 881 | } |
| 882 | return result; |
| 883 | } |
| 884 | |
| 885 | SC::Result SC::PluginRegistry::replaceDefinitions(Span<PluginDefinition>&& definitions) |
| 886 | { |