상속: ShaderTools.VisualStudio.Core.Text.VisualStudioSourceTextFactoryBase
예제 #1
0
 public static IIncludeFileSystem GetIncludeFileSystem(this ITextBuffer textBuffer, VisualStudioSourceTextFactory sourceTextFactory)
 {
     return textBuffer.Properties.GetOrCreateSingletonProperty(IncludeFileSystemKey,
         () => new VisualStudioFileSystem(textBuffer.GetTextContainer(), sourceTextFactory));
 }
예제 #2
0
 public VisualStudioFileSystem(VisualStudioSourceTextContainer textContainer, VisualStudioSourceTextFactory sourceTextFactory)
 {
     _sourceTextFactory = sourceTextFactory;
     if (textContainer.Filename != null)
         _parentDirectory = Path.GetDirectoryName(textContainer.Filename);
 }