Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VS2010 Language Service disables VA features
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AnthonyBrien
New Member

Canada
2 Posts

Posted - Apr 03 2012 :  10:56:17 AM  Show Profile  Reply with Quote
Since upgrading to VS2010, some VA features like Multiple Clipboards, Auto-Extent multiline comments, etc. have stopped working on some of our custom language code files.

We have a language service implemented through a set of MEF extensions (ITaggerProvider, IIntellisenseControllerProvider, etc). But when the language service is active, all VA features turn off. This used to work in VS2008 with the same language service but implemented through a VSPackage.

Does anyone have an idea what's causing VA to disable its features when a language service is registered for that file type?

Thanks

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Apr 03 2012 :  4:41:44 PM  Show Profile  Reply with Quote
If you disable this language service is VA active in these files? I assume these files have a custom file extension, so VA may always be inactive in these files, unless you have specifically told VA about these files. This is explained in these FAQ entries:

http://docs.wholetomato.com?W353

http://docs.wholetomato.com?W328

zen is the art of being at one with the two'ness
Go to Top of Page

AnthonyBrien
New Member

Canada
2 Posts

Posted - Apr 03 2012 :  5:03:33 PM  Show Profile  Reply with Quote
If I disable my language service, VA becomes active in those files. They are a custom extension (e.g. .myd) and we didn't specifically tell VA about this extension, it just works.

However the syntax of these files resembles C++ and C# so maybe that's why VA activates on them.

We tried the steps described in the linked article to register our extension as a C++ file but it didn't help.

If this is impossible, is there a way to hook into VA multiple clipboard from our own language service?

Edited by - AnthonyBrien on Apr 03 2012 5:26:10 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Apr 03 2012 :  5:43:04 PM  Show Profile  Reply with Quote
Is there any chance to get a copy of your language service, purely for testing purposes, along with a sample code file? I understand this may not be possible, but its worth asking just in case. If so we would only use the language service to investigate this problem.

If possible, please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Apr 05 2012 :  4:29:49 PM  Show Profile  Reply with Quote
I have your email, thank you for the helpful response, I am seeing the same problems here, and I have put a bug report in for this:

case=65881

For the paste menu, are you able to access the content of the IDE clipboard ring in your extension?

IDE Edit menu -> Cycle Clipboard Ring

If you turn off:

VA Options -> Advanced -> General -> Display paste menu with X items

you should be able to use the IDE clipboard ring, this is working for me in .pl files. It is not as nice as the VA paste menu, but hopefully this will be a useful work around for now.

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 17 2015 :  12:44:07 PM  Show Profile  Reply with Quote
case=65881 is implemented in build 2086 via a registry string value named CustomContentTypes

You must create the string value.
Set the value to the name of your custom content type and terminate with a semi-colon.
Add your custom file extension to the ExtPlainText registry string value (terminate with a semi-colon).
Set RestrictVaToPrimaryFileTypes to 00.
see http://support.wholetomato.com/default.asp?W407 for registry location.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000