VS Code,Git提交和Electron非上下文感知的本机模块

我将Windows 10上的Git 2.26.2.windows.1和VS Code 1.45.1用作提交日志消息编辑器

今天,我使用git commit并在VS Code中编辑了提交日志消息,然后退出了VS Code(保存过程中的更改)。 Git完成了提交,但是首先我从VS Code得到了各种电子警告:

hint: Waiting for your editor to close the file...
[main 2020-06-05T15:08:31.739Z] update#setState idle
(node:1924) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future,please see https://github.com/electron/electron/issues/18397 for more information
...
[main 2020-06-05T15:09:01.747Z] update#setState checking for updates
[main 2020-06-05T15:09:01.776Z] update#setState idle

这是什么意思?我的担心:这是否意味着Electron正在删除VS Code用作Git的编辑器的东西,以便Git很快将删除VS Code的支持? (我对Electron和VS Code的实现知之甚少,无法完全解释这一点。)

iCMS 回答:VS Code,Git提交和Electron非上下文感知的本机模块

此消息(如果来自VS Code的stdout日志)仅表示VS Code当前使用了Electron团队计划弃用的功能。由于VS Code是使用Electron构建的,因此这是VS Code开发人员必须解决的问题(他们很可能已经意识到了这一点),并不意味着您最终会遇到无法使用的编辑器。由于VS Code捆绑了Electron,因此只要捆绑了可以使用的版本(极有可能捆绑;否则它就没有意义),您就可以使用VS Code。

此外,Git从技术上讲并不“支持” VS Code,您只是告诉Git使用VS Code编辑消息。

本文链接:https://www.f2er.com/2195341.html

大家都在问