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

Adjust whitespace

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