用于运行 VSCode 扩展的自定义节点版本 [英] Custom node version to run VSCode extensions
问题描述
我正在制作一个供我个人使用的 vscode 扩展.我真的很想使用更新的节点版本.但是,我不确定 VSCode 是如何选择使用哪个节点版本的.
I'm making a vscode extension for my personal use. I'd really like to use a more recent node version. However, I'm not sure how does VSCode chooses which node version to use.
我唯一安装的 node.js 是 8.1.3
.但是当我调试扩展时,我看到 VSCode 使用 7.*.*
(通过 process.version
).
The only node.js that I have installed is 8.1.3
. But when I debug the extension, I see that VSCode uses 7.*.*
(via process.version
).
到目前为止,我一直在搜索文档一个小时,但没有运气.任何帮助表示赞赏.
I've been searching documentation for an hour, so far, without luck. Any help is appreciated.
推荐答案
这是不可能的.引用一名团队成员 (Andre Weinand) 在 #18253中的回复一个>:
This is not possible. Quoting the reply of one of the team members (Andre Weinand) in #18253:
VS Code 在 Electron 内置的节点版本上运行扩展(VS Code 是基于该版本).这是无法更改的.
VS Code runs extensions on the node version that is built into electron (on which VS Code is based). This cannot be changed.
这篇关于用于运行 VSCode 扩展的自定义节点版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!