You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError('Either the extension or an NPM dependency is using the [unsupported "natives" node module](https://go.microsoft.com/fwlink/?linkid=871887).');
@@ -140,12 +157,31 @@ function patchProcess(allowExit: boolean) {
140
157
// NodeJS since v21 defines navigator as a global object. This will likely surprise many extensions and potentially break them
141
158
// because `navigator` has historically often been used to check if running in a browser (vs running inside NodeJS)
142
159
if(!args.supportGlobalNavigator){
160
+
letnavigatorAccessCount=0;
161
+
lethasSuppressedNavigatorLogs=false;
162
+
constmaxNavigatorLogs=25;
143
163
Object.defineProperty(globalThis,'navigator',{
144
164
get: ()=>{
145
165
onUnexpectedExternalError(newPendingMigrationError('navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator for additional info on this error.'));
0 commit comments