Example #1
0
 public DefaultTempUtil(
     string?defaultRootPath         = null,
     IPathNameGenerator?dirNameGen  = null,
     IPathNameGenerator?fileNameGen = null,
     IFileUtil?fileUtil             = default,
     IDirectoryUtil?directoryUtil   = null)
 {
     _rootPath      = defaultRootPath ?? Path.GetTempPath();
     _directoryUtil = directoryUtil ?? new DefaultDirectoryUtil();
     _dirNameGen    = dirNameGen ?? new DefaultPathNameGenerator();;
     _pathNameGen   = fileNameGen ?? new DefaultPathNameGenerator();
     _fileUtil      = fileUtil ?? new DefaultFileUtil();
     _directoryUtil = directoryUtil ?? new DefaultDirectoryUtil();
 }
Example #2
0
 internal VimAppHost(
     ITextBufferFactoryService textBufferFactoryService,
     ITextEditorFactoryService textEditorFactoryService,
     ITextDocumentFactoryService textDocumentFactoryService,
     IEditorOperationsFactoryService editorOperationsFactoryService,
     IContentTypeRegistryService contentTypeRegistryService,
     IFileSystem fileSystem,
     IDirectoryUtil directoryUtil) : base(
         textBufferFactoryService,
         textEditorFactoryService,
         textDocumentFactoryService,
         editorOperationsFactoryService)
 {
     _contentTypeRegistryService = contentTypeRegistryService;
     _fileSystem    = fileSystem;
     _directoryUtil = directoryUtil;
 }
Example #3
0
 internal VimAppHost(
     ITextBufferFactoryService textBufferFactoryService,
     ITextEditorFactoryService textEditorFactoryService,
     ITextDocumentFactoryService textDocumentFactoryService,
     IEditorOperationsFactoryService editorOperationsFactoryService,
     IContentTypeRegistryService contentTypeRegistryService,
     IFileSystem fileSystem,
     IDirectoryUtil directoryUtil) : base(
     textBufferFactoryService,
     textEditorFactoryService,
     textDocumentFactoryService,
     editorOperationsFactoryService)
 {
     _contentTypeRegistryService = contentTypeRegistryService;
     _fileSystem = fileSystem;
     _directoryUtil = directoryUtil;
 }
 internal DirectoryKeyProcessorProvider(IDirectoryUtil directoryUtil, IVimHost vimHost)
 {
     _directoryUtil = directoryUtil;
     _vimHost = vimHost;
 }
 internal DirectoryKeyProcessorProvider(IDirectoryUtil directoryUtil, IVimHost vimHost)
 {
     _directoryUtil = directoryUtil;
     _vimHost       = vimHost;
 }