Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adjust whitespace
  • Loading branch information
heejaechang authored and sharwell committed Nov 8, 2018
1 parent 5cd1dc0 commit d2fca74
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Expand Up @@ -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);
}

Expand Down
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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(
Expand Down
Expand Up @@ -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;
Expand Down
Expand Up @@ -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);
Expand Down
Expand Up @@ -428,15 +428,15 @@ 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));
break;
}
}
}

var newTrackerMap = CreateCompilationTrackerMap(projectId, newDependencyGraph);
var newLinkedFilesMap = CreateLinkedFilesMapWithAddedProject(newStateMap[projectId]);

Expand Down Expand Up @@ -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)));
}
Expand Down

0 comments on commit d2fca74

Please sign in to comment.