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