예제 #1
0
 public OpenIncludeFileCommandTarget(IVsTextView adapter, IWpfTextView textView, IServiceProvider serviceProvider, VisualStudioSourceTextFactory sourceTextFactory)
     : base(adapter, textView, VSConstants.VSStd2KCmdID.OPENFILE)
 {
     _textView          = textView;
     _serviceProvider   = serviceProvider;
     _sourceTextFactory = sourceTextFactory;
 }
예제 #2
0
 public static IIncludeFileSystem GetIncludeFileSystem(this ITextBuffer textBuffer, VisualStudioSourceTextFactory sourceTextFactory)
 {
     return(textBuffer.Properties.GetOrCreateSingletonProperty(IncludeFileSystemKey,
                                                               () => new VisualStudioFileSystem(textBuffer.GetTextContainer(), sourceTextFactory)));
 }