Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

What To Do With EnvironmentEvents

$
0
0

HI all,

I've got another question about add-ins, and how they relate to the EnvironmentEvents default module. As many of you know, there is an auto-generated module within the IDE called "EnvironmentEvents". It has several default settings that should not be tampered with:

Public Module EnvironmentEvents

#Region "Automatically generated code, do not modify"
    'Automatically generated code, do not modify
    'Event Sources Begin<System.ContextStaticAttribute()> Public WithEvents DTEEvents As EnvDTE.DTEEvents<System.ContextStaticAttribute()> Public WithEvents DocumentEvents As EnvDTE.DocumentEvents<System.ContextStaticAttribute()> Public WithEvents WindowEvents As EnvDTE.WindowEvents<System.ContextStaticAttribute()> Public WithEvents TaskListEvents As EnvDTE.TaskListEvents<System.ContextStaticAttribute()> Public WithEvents FindEvents As EnvDTE.FindEvents<System.ContextStaticAttribute()> Public WithEvents OutputWindowEvents As EnvDTE.OutputWindowEvents<System.ContextStaticAttribute()> Public WithEvents SelectionEvents As EnvDTE.SelectionEvents<System.ContextStaticAttribute()> Public WithEvents BuildEvents As EnvDTE.BuildEvents<System.ContextStaticAttribute()> Public WithEvents SolutionEvents As EnvDTE.SolutionEvents<System.ContextStaticAttribute()> Public WithEvents SolutionItemsEvents As EnvDTE.ProjectItemsEvents<System.ContextStaticAttribute()> Public WithEvents MiscFilesEvents As EnvDTE.ProjectItemsEvents<System.ContextStaticAttribute()> Public WithEvents DebuggerEvents As EnvDTE.DebuggerEvents<System.ContextStaticAttribute()> Public WithEvents ProjectsEvents As EnvDTE.ProjectsEvents<System.ContextStaticAttribute()> Public WithEvents TextDocumentKeyPressEvents As EnvDTE80.TextDocumentKeyPressEvents<System.ContextStaticAttribute()> Public WithEvents CodeModelEvents As EnvDTE80.CodeModelEvents<System.ContextStaticAttribute()> Public WithEvents DebuggerProcessEvents As EnvDTE80.DebuggerProcessEvents<System.ContextStaticAttribute()> Public WithEvents DebuggerExpressionEvaluationEvents As EnvDTE80.DebuggerExpressionEvaluationEvents
    'Event Sources End
    'End of automatically generated code
#End Region

As I was developing my macros, I discovered that several of them would not work (for whatever reason) unless they were inserted into the "EnvironmentEvents" module. I'm wondering as to how this module relates to Add-ins (if at all).

Any enlightenment on this issue would be greatly appreciated.


Wally


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>