ProjectManager.SourceFileChangedOnDiskAsync Method

Definition

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

Task

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.

Applies to