-
Notifications
You must be signed in to change notification settings - Fork 43
Description
When starting VS Code with the OpenAPI (Swagger) Editor by 42Crunch enabled, the extension host logs a Node.js deprecation warning:
[DEP0040] DeprecationWarning: The 'punycode' module is deprecated. Please use a userland alternative instead.
This indicates that the extension (or one of its dependencies) is importing Node’s built‑in punycode module, which has been deprecated. While functionality is not broken, the warning appears on every startup and may cause future compatibility issues as Node/Electron evolves.
Steps to Reproduce:
- Install the OpenAPI (Swagger) Editor by 42Crunch in VS Code.
- Launch VS Code.
- Observe the extension host output in the logs.
Actual Behavior: Deprecation warning [DEP0040] is printed during startup.
Expected Behavior: No deprecation warnings should be emitted. The extension should use the npm punycode package or another maintained alternative instead of the deprecated built‑in module.
Environment:
VS Code version: 1.107.0 (user setup)
Commit: 618725e67565b290ba4da6fe2d29f8fa1d4e3622
Date: 2025-12-10T07:43:47.883Z
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200
42crunch.vscode-openapi@4.40.0