File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
RetailCoder.VBE/Extensions Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,7 @@ public static class VbeExtensions
9
9
{
10
10
public static CodeModule FindCodeModule ( this VBE vbe , QualifiedModuleName qualifiedName )
11
11
{
12
- var vbComponent = vbe . VBProjects . Cast < VBProject > ( )
13
- . Where ( project => project . Protection != vbext_ProjectProtection . vbext_pp_locked
14
- && project . Equals ( qualifiedName . Project ) )
15
- . SelectMany ( project => project . VBComponents . Cast < VBComponent > ( ) )
16
- . SingleOrDefault ( component => component . Equals ( qualifiedName . Component ) ) ;
17
-
18
- return vbComponent == null
19
- ? null
20
- : vbComponent . CodeModule ;
12
+ return qualifiedName . Component . CodeModule ;
21
13
}
22
14
23
15
public static void SetSelection ( this VBE vbe , QualifiedSelection selection )
You can’t perform that action at this time.
0 commit comments