40 references to IOUtilities
IdeCoreBenchmarks (1)
AbstractCloudCachePersistentStorageService.cs (1)
44
var solutionFolder =
IOUtilities
.PerformIO(() => Path.GetDirectoryName(solutionKey.FilePath));
Microsoft.CodeAnalysis.Features (22)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (4)
111
var fileName =
IOUtilities
.PerformIO(() => Path.GetFileName(document.FilePath));
120
var fileName =
IOUtilities
.PerformIO(() => Path.GetFileName(document.FilePath));
148
var sourceName =
IOUtilities
.PerformIO(() => Path.GetFileName(sourceDocument.FilePath));
149
var destinationName =
IOUtilities
.PerformIO(() => Path.GetFileName(destinationDocument.FilePath));
Completion\FileSystemCompletionHelper.cs (4)
56
=>
IOUtilities
.PerformIO(Directory.GetLogicalDrives, Array.Empty<string>());
69
return
IOUtilities
.PerformIO(() => Directory.EnumerateDirectories(fullDirectoryPath), Array.Empty<string>());
76
return
IOUtilities
.PerformIO(() => Directory.EnumerateFiles(fullDirectoryPath), Array.Empty<string>());
83
return
IOUtilities
.PerformIO(() => (File.GetAttributes(fullPath) & (FileAttributes.Hidden | FileAttributes.System)) == 0, false);
Completion\Providers\Scripting\GlobalAssemblyCacheCompletionHelper.cs (1)
67
return
IOUtilities
.PerformIO(() => GlobalAssemblyCache.Instance.GetAssemblyIdentities(partialName),
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (1)
257
var isValidPath =
IOUtilities
.PerformIO(() =>
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
258
var fileName = filePath == null ? null :
IOUtilities
.PerformIO(() => Path.GetFileName(filePath)) ?? filePath;
PdbSourceDocument\ImplementationAssemblyLookupService.cs (3)
99
catch (Exception ex) when (
IOUtilities
.IsNormalIOException(ex))
137
if (
IOUtilities
.PerformIO(() => File.Exists(pathToTry)))
183
if (
IOUtilities
.PerformIO(() => File.Exists(dllPath)))
PdbSourceDocument\PdbFileLocatorService.cs (2)
39
var dllStream =
IOUtilities
.PerformIO(() => ReadFileIfExists(dllPath));
86
pdbStream =
IOUtilities
.PerformIO(() => File.OpenRead(pdbResult.PdbFilePath));
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (2)
106
catch (Exception ex) when (
IOUtilities
.IsNormalIOException(ex))
197
return
IOUtilities
.PerformIO(() =>
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (2)
143
var dllReference =
IOUtilities
.PerformIO(() => MetadataReference.CreateFromFile(dllPath));
234
IOUtilities
.PerformIO(() => Directory.CreateDirectory(tempFilePath));
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (2)
349
IOUtilities
.PerformIO(() => _service._ioService.Delete(new FileInfo(tempFilePath)));
598
catch (Exception e) when (
IOUtilities
.IsNormalIOException(e) || _service._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken))
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
AbstractCloudCachePersistentStorageService.cs (1)
44
var solutionFolder =
IOUtilities
.PerformIO(() => Path.GetDirectoryName(solutionKey.FilePath));
ProjectAssetsFileReader.cs (2)
22
var doesProjectAssetsFileExist =
IOUtilities
.PerformIO(() => File.Exists(projectAssetsFilePath));
28
var projectAssetsFileContents = await
IOUtilities
.PerformIOAsync(async () =>
Microsoft.CodeAnalysis.Workspaces (7)
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (2)
77
catch (Exception e) when (
IOUtilities
.IsNormalIOException(e))
156
catch (Exception e) when (
IOUtilities
.IsNormalIOException(e))
Rename\ConflictEngine\MutableConflictResolution.cs (1)
112
IOUtilities
.PerformIO(() =>
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
29
FileVersion =
IOUtilities
.PerformIO(() => FileVersionInfo.GetVersionInfo(Identity.AssemblyPath).FileVersion, defaultValue: "(reading version threw exception)")!;
Storage\AbstractPersistentStorageService.cs (1)
143
IOUtilities
.PerformIO(() => Directory.Delete(Path.GetDirectoryName(databaseFilePath)!, recursive: true));
Storage\SQLite\v2\SQLiteConnectionPoolService.cs (1)
133
return
IOUtilities
.PerformIO<IDisposable?>(() =>
Utilities\WorkspacePathUtilities.cs (1)
47
return
IOUtilities
.PerformIO(() => Path.GetFileNameWithoutExtension(document.Name));
Microsoft.VisualStudio.LanguageServices (6)
Implementation\AbstractEditorFactory.cs (2)
373
IOUtilities
.PerformIO(() =>
404
var text =
IOUtilities
.PerformIO(() =>
Storage\AbstractCloudCachePersistentStorageService.cs (1)
44
var solutionFolder =
IOUtilities
.PerformIO(() => Path.GetDirectoryName(solutionKey.FilePath));
Telemetry\FileLogger.cs (1)
88
IOUtilities
.PerformIO(() =>
UnusedReferences\ProjectAssets\ProjectAssetsFileReader.cs (2)
22
var doesProjectAssetsFileExist =
IOUtilities
.PerformIO(() => File.Exists(projectAssetsFilePath));
28
var projectAssetsFileContents = await
IOUtilities
.PerformIOAsync(async () =>
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Options\GridOptionPreviewControl.xaml.cs (1)
129
IOUtilities
.PerformIO(() =>