将自定义语言的Intellisense附加到Designer中的代码编辑器 [英] Attaching Intellisense for a custom language to a Code Editor within a Designer

查看:93
本文介绍了将自定义语言的Intellisense附加到Designer中的代码编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我们正在尝试向VS2015添加工具以支持自定义商务语言。  我们有一个功能解析器和编译器,以及我们各种设计师的VSIX。



我们的问题是将intellisense连接到这些设计器中的代码编辑器窗口。



我们已经查看了各种F#和Python集成示例以及VSSDK可扩展性文档,但没有一个与我们需要的完全一致,所以我们试图拼凑一些有用的东西。



大多数这些例子都是直接附加到代码编辑器标签,而不是设计师的窗口。



有没有人对如何将intellisense和语言服务附加到设计师的代码编辑器有任何指导?



任何帮助都很多赞赏。



谢谢!

Hi all, we are attempting to add tools to VS2015 to support a custom business language.  We have a functional parser and compiler, and a VSIX for our various designers.

Our problem is getting intellisense hooked up to the code editor windows within those designers.

We've looked through various examples of F# and Python integration, and VSSDK extensibility documentation, but none exactly lines up with what we need, so we're trying to piece together something that works.

Most of these examples are for attaching directly into a code editor tab, not a window within a designer.

Does anyone have any guidance on how to attach intellisense and language services to a code editor within a designer?

Any help is much appreciated.

Thanks!

推荐答案

Jon_Atkinson,

Hi Jon_Atkinson,

>>有没有人对如何将智能感知和语言服务附加到设计中的代码编辑器有任何指导ner?

您可以通过定义要为其提供的标识符来实现基于语言的语句完成

完成
,然后触发完成会话。有关详细信息,请参阅:

You can implement language-based statement completion by defining the identifiers for which you want to provide completion and then triggering a completion session. For more information, please refer to:

https:// msdn .microsoft.com / zh-CN / library / ee372314.aspx

https://github.com/Microsoft/VSLua/blob/master/src/LuaVSHost/Intellisense/CompletionSource.cs

祝你好运,

Cole Wu


这篇关于将自定义语言的Intellisense附加到Designer中的代码编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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