VSCode 插件和关于 alpha 版本的想法 [英] VSCode plugins and thoughts on alpha release

查看:23
本文介绍了VSCode 插件和关于 alpha 版本的想法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我开始猜测 Javascript 不是 VSCode 的最佳选择.它与 SublimeText 几乎相同,甚至更慢,尽管调试器和代码英特尔很棒并且远远超出 Sublime 的能力.

So I'm starting to guess Javascript wasn't the best choice for VSCode to be based on. It is pretty much the same as SublimeText and even slower, though the debugger and code intel is awesome and far beyond Sublime's capabilities.

问题是我突然在窗口右侧看到了一个类似 chrome 的检查器框架,这引起了我的注意并让我在谷歌上搜索它(太糟糕了几乎没有人在谈论 vscode,所以即使找到它也很痛苦一些信息),并发现另一个人遇到了同样奇怪的问题.有人告诉他 F12 像普通的 Web 应用程序一样打开检查器,因此您可以查看引擎盖下的内容(这很可能是废话,因为它毫无意义,可能只是一个错误).

The thing is I suddenly got a chrome-like inspector frame on the right side of the window, which caught my attention and got me googling about it (too bad almost nobody is talking about vscode yet so it's a pain to even find some info), and found out another person got the same weird issue. Somebody told him that F12 opens the inspector like a normal web app so you can look under the hood (which os most likely bullcrap since it makes no sense, probably just a bug).

问题是我决定测试按键,并发现 Fn+Shift+Cmd+F12 会打开一个带有奇怪按钮和 Web 检查器的新窗口,该窗口根本没有任何实用程序,但它在那里,所以我很好奇并且搞砸了一段时间.坏主意,因为它使整个应用程序崩溃.

The thing is I decided to test out keypresses, and discovered Fn+Shift+Cmd+F12 opens a new window with a weird button and a web inspector, which has no utility at all, but it's there so I got curious and messed up with it for a while. Bad idea since it crashed the entire app.

所有这些故事都有一个警告点,即 Javascript 不如 Objective C 稳定和独立,因为它显然在 V8 和 Webkit 等之上工作,其中任何一个都增加了崩溃的机会.

All this story has the point of warning about how Javascript is not as stable and independent as Objective C, since it's obviously working on top of V8 and Webkit and whatnot, any of which multiply its chances to crash.

Sublime 对我来说也崩溃过几次,但它执行 Atom Saving(操作系统的本机自动保存,可存储文件系统中的所有更改,因此应用程序崩溃不会影响文件).

Sublime has also crashed for me a couple times, but it does Atom Saving (operating system's native autosave that stores every change in the filesystem so app crashes don't affect the files).

VSCode 不是原生的并且处于非常稳定的状态(今天的 0.1.0 版),所以这是对他们的一种反馈,也是对其他用户的警告,发布在这里是因为有这个 stackoverflow 社区的链接在他们的网站上,并且是他们拥有的唯一以社区为导向的反馈方式.

VSCode is not native and is in a very alpa state (version 0.1.0 as today), so this is kind of a feedback for them and a warning for other users, posted here because there is a link for this stackoverflow community on their website, and is the only community-driven way of feedback they have.

我希望他们开放开发,以便其他人可以做出贡献,或者至少喜欢 SublimeText,它没有开放但支持通过插件和 python 控制台的可扩展性.

I wish they open the development so others can contribute or, at least, do like SublimeText which isn't open but supports extensibility thru plugins and python console.

现在,问题是:

有没有办法让 Sublime 插件在这里工作?

Is there a way to make Sublime plugins work here?

推荐答案

我们在内部使用您找到的键绑定来快速调试 VSCode,以防我们发现问题.我们只是忘记删除它们,有点像 Ctrl+Alt+Delete 发生的方式 :).

The keybindings you have found are used by us internally to debug VSCode quickly in case we notice a problem. We simply forgot to remove them, kind of like how Ctrl+Alt+Delete happened :).

我们将在几周内删除这些键绑定,以避免混淆.

We will remove these keybindings with our next update, to avoid confusion, in a couple of weeks.

我们有支持插件的计划,我们在这个故事上取得了进展,但我们对 API 不够满意,我们决定在公开之前进一步验证和改进它,以尽可能避免未来的 API破损.

We have plans on supporting plugins, we have made progress on this story, but we were not happy enough with the API, and we decided to further validate and improve it before making it public, to avoid as much as possible future API breakage.

至于实际问题,无法在 VSCode 中运行 Sublime 插件,原因与在 Eclipse 或 Visual Studio 中无法运行 Sublime 插件的原因类似.然而,在为不同平台开发的插件之间存在代码共享的可能性,例如参见 Omnisharp,它随 VSCode 一起提供,为此有一个 Sublime 插件.

As for the actual question, it is not possible to run Sublime plugins in VSCode, for similar reasons why it is not possible to run Sublime plugins in Eclipse or in Visual Studio. There is, however the possibility of code sharing between plugins developed for different platforms, see for example Omnisharp, which is shipped with VSCode and for which there is a Sublime plugin.

这篇关于VSCode 插件和关于 alpha 版本的想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆