microsoft / microsoft/vscode-cpptools
Notification of breaking api change with v1.92 release of VS Code
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
Hello from the VS Code team 👋
In our next release v1.92, we will update to Electron 30 which includes Node.js 20.14.0. This Node version contains a breaking change, in response to a CVE, which may affect you if you execute .bat or .cmd files on Windows. Based on a simple scan of your extension's source code, you may be impacted by this change. The stable VS Code that contains this update will be released in early August.
Action: please try out your extension on this month's VS Code Insiders on Windows. If you are affected by this change, you will encounter an EINVAL error when you try to spawn a bat/cmd file.
Node.js has added a section on batch file spawning to their documentation. To fix any issues:
- Find locations where you call
child_process.spawnto execute a batch file on Windows - Add
shell: trueorshell: process.platform === 'win32'to the options object - If the batch script path may contain spaces, you will also need to wrap the path in quotation marks.
Please let us know if you run into issues or if you need clarification.
Happy coding!
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Quellcode der Extension nach child_process.spawn-Aufrufen zu durchsuchen, die unter Windows .bat- oder .cmd-Dateien ausführen, und teste die Extension anschließend mit VS Code Insiders unter Windows. Abgeschlossen ist die Aufgabe, wenn die betroffenen Spawns nach Anwendung der dokumentierten Änderungen an den Optionen und der Pfadbehandlung nicht mehr EINVAL erzeugen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- node.js, typescript, vscode
- Bereich
- tooling
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 35/100