提交 d2fca744 编写于 作者: H HeeJae Chang 提交者: Sam Harwell

Adjust whitespace

上级 5cd1dc03
......@@ -96,6 +96,7 @@ public interface IContext : IDisposable
/// you'll need a file watched (eventually) but it's not worth blocking yet.
/// </summary>
IFileWatchingToken EnqueueWatchingFile(string filePath);
void StopWatchingFile(IFileWatchingToken token);
}
......
......@@ -362,7 +362,7 @@ private bool TryGetProjectData(ProjectId projectId, out IVsHierarchy hierarchy,
project = null;
return
this.TryGetHierarchy(projectId, out hierarchy) &&
this.TryGetHierarchy(projectId, out hierarchy) &&
hierarchy.TryGetProject(out project);
}
......@@ -1040,7 +1040,7 @@ internal override Guid GetProjectGuid(ProjectId projectId)
internal override void SetDocumentContext(DocumentId documentId)
{
_foregroundObject.AssertIsForeground();
// Note: this method does not actually call into any workspace code here to change the workspace's context. The assumption is updating the running document table or
// IVsHierarchies will raise the appropriate events which we are subscribed to.
......@@ -1404,7 +1404,7 @@ private void ConvertProjectReferencesToMetadataReferences_NoLock(ProjectId proje
if (string.Equals(convertedReference.path, outputPath, StringComparison.OrdinalIgnoreCase) &&
convertedReference.projectReference.ProjectId == projectId)
{
var metadataReference =
var metadataReference =
CreateMetadataReference(
convertedReference.path,
new MetadataReferenceProperties(
......
......@@ -59,6 +59,7 @@ internal sealed class ContainedDocument : ForegroundThreadAffinitizedObject, IVi
});
private static ConcurrentDictionary<DocumentId, ContainedDocument> s_containedDocuments = new ConcurrentDictionary<DocumentId, ContainedDocument>();
public static ContainedDocument TryGetContainedDocument(DocumentId id)
{
ContainedDocument document;
......
......@@ -137,7 +137,7 @@ internal partial class ContainedLanguage<TPackage, TLanguageService>
// Get the ITextBuffer for the primary buffer
Marshal.ThrowExceptionForHR(bufferCoordinator.GetPrimaryBuffer(out var primaryTextLines));
DataBuffer = _editorAdaptersFactoryService.GetDataBuffer((IVsTextBuffer)primaryTextLines);
// Create our tagger
var bufferTagAggregatorFactory = ComponentModel.GetService<IBufferTagAggregatorFactoryService>();
_bufferTagAggregator = bufferTagAggregatorFactory.CreateTagAggregator<ITag>(SubjectBuffer);
......
......@@ -428,7 +428,7 @@ private SolutionState AddProject(ProjectId projectId, ProjectState projectState)
foreach (var newState in newStateMap)
{
foreach (var projectReference in newState.Value.ProjectReferences)
{
{
if (projectReference.ProjectId == projectId)
{
newDependencyGraph = newDependencyGraph.WithAdditionalProjectReferences(newState.Key, ImmutableArray.Create(projectId));
......@@ -436,7 +436,7 @@ private SolutionState AddProject(ProjectId projectId, ProjectState projectState)
}
}
}
var newTrackerMap = CreateCompilationTrackerMap(projectId, newDependencyGraph);
var newLinkedFilesMap = CreateLinkedFilesMapWithAddedProject(newStateMap[projectId]);
......@@ -1110,7 +1110,7 @@ public SolutionState AddDocuments(ImmutableArray<DocumentInfo> documentInfos)
var newProjectState = oldProject.AddDocuments(newDocumentStatesForProject);
newSolutionState = newSolutionState.ForkProject(newProjectState,
newSolutionState = newSolutionState.ForkProject(newProjectState,
CompilationTranslationAction.AddDocuments(newDocumentStatesForProject),
newLinkedFilesMap: CreateLinkedFilesMapWithAddedDocuments(newProjectState, documentInfosInProject.Select(d => d.Id)));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册