I have a Silverlight Actipro syntax editor hosted on a website, that needs Intellisense. Unfortunately, some of the code I use (to help populate the completion list) isn't Silverlight compatible, due to some types missing from Silverlight. To workaround this issue, I started thinking about a web service that could provide the completion list when prompted, given the editor's text and the caret position.
- Are there any examples of such a service that I could take a look at?
- Assuming the answer to #1 is no, is there a way to request a CompletionProvider session that doesn't need an actual syntax editor to be created? I ask since WCF threads won't play nice with WPF objects (I believe because a WCF thread is STA but WPF objects need it to be MTA, or vice versa). Thus, I'd like my CompletionProvider to run, with me informing it of the editor text and caret position.