ProjectManager.SourceFileChangedOnDiskAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
To be called whenever a source file that may belong to one of the tracked projects has changed on disk.
public System.Threading.Tasks.Task SourceFileChangedOnDiskAsync (Uri sourceFile, Func<Uri,Microsoft.Quantum.QsCompiler.CompilationBuilder.FileContentManager?>? openInEditor = default);
member this.SourceFileChangedOnDiskAsync : Uri * Func<Uri, Microsoft.Quantum.QsCompiler.CompilationBuilder.FileContentManager> -> System.Threading.Tasks.Task
Public Function SourceFileChangedOnDiskAsync (sourceFile As Uri, Optional openInEditor As Func(Of Uri, FileContentManager) = Nothing) As Task
Parameters
- sourceFile
- Uri
- openInEditor
- Func<Uri,FileContentManager>
Returns
Remarks
For each tracked project reloads sourceFile from disk and updates the project accordingly, if the modified file is a source file of that project and not open in the editor (i.e. openInEditor is null or returns null for that file) at the time of execution.