1. 25 8月, 2016 1 次提交
  2. 23 8月, 2016 2 次提交
  3. 20 8月, 2016 7 次提交
  4. 19 8月, 2016 18 次提交
  5. 18 8月, 2016 12 次提交
    • H
      push file read to Background thread. · 2d329f88
      Heejae Chang 提交于
      this should fix /workaround one particular case of dead lock but it won't fix the root cause of this where DispatcherSynchronizationContext Wait allowing re-enterance of COM call which, if re-entered code ever use Wait/Result, causes VS to dead lock.
      
      alternative to this fix is using Dispatcher.CurrentDispatcer.DisableProcessing(), but since workspace event is so busy code path, didn't want to play with global state (resource) all other people are using.
      2d329f88
    • H
      add more cancellation checking in LB code path. · 53339635
      Heejae Chang 提交于
      code path where code fix uses didn't check cancellation itself but just pass it down to workspace/compiler. but that will make it to not cancel if all diagnostics are already calculated and cached. so it will always run to end and then right after that, code fix service will throw cancellation exception.
      
      by adding some cancellation here, we can prevent us from doing unnecessary work.
      53339635
    • H
      fixed race in analyzer driver · 8e9028ea
      Heejae Chang 提交于
      http://source.roslyn.io/#Microsoft.CodeAnalysis/DiagnosticAnalyzer/AnalyzerDriver.cs,1699
      
      var declarationAnalysisData = compilationData.GetOrComputeDeclarationAnalysisData(
      decl,
      allocateData => ComputeDeclarationAnalysisData(symbol, decl, semanticModel, shouldExecuteSyntaxNodeActions, analysisScope, allocateData, cancellationToken),
      cacheAnalysisData);
      
      GetOrComputeDeclarationAnalysisData caches declarationAnalysisData only based on declaration, but the data it caches (DeclarationAnalysisData) depends on more context than declaration node. such as analysisScope. more specifically FilterSpanOpt or executeSyntaxNodeActions flag.
      
      due to that, it now has a race where depends on what analyzer are loaded to VS first, some syntax node action works, or some other one doesn't.
      
      the fix I made here is removing one of those context when caching the result
      8e9028ea
    • H
      existing diagnostic tagger didn't check workspace diagnostics belong to before it removes them. · 8cc31fe5
      Heejae Chang 提交于
      that caused host workspace's diagnostics to be removed when preview workspace's diagnostics are removed since two shared same documentId and projectId.
      
      the code already had the logic to check what workspace the diagnostics belong to, it just happen to check that after removing diagnostics. fix is moving the checking before removing diagnostics.
      8cc31fe5
    • T
      334e8097
    • T
      Fix loc files (#13232) · dd87f508
      Tomáš Matoušek 提交于
      dd87f508
    • H
      made checksum tree builder to only use green node not only to cache but to... · f024493b
      Heejae Chang 提交于
      made checksum tree builder to only use green node not only to cache but to build tree. this should prevent checksum builder to realize all red nodes for solution just to create checksum tree.
      
      this change also include using specialized small dictionary to prevent creating more expensive dictionary.
      
      another optimization can be done is moving checksum data into solution itself so we don't need to have side collections to map between solution green node to checksum node. but I will do that once I get to point where I do more aggressive perf optimizatino to reduce memory foot print if that is necessary
      f024493b
    • D
      Code Model: Implement CodeNamespace.Comment and CodeNamespace.DocComment properties · 31c57103
      Dustin Campbell 提交于
      This change properly implements the CodeNamespace.Comment and CodeNamespace.DocComment properties. Historically, C# would throw an exception if either of these properties were accessed on a CodeNamespace, but VB allowed them to work. With this change, the properties will work for *both* C# and VB (even though DocComment doesn't make much sense). Technically, this is a breaking change for C# in the sense that an exception will no longer be thrown. However, I expect that it will generally make life a bit easier for Code Model consumers by keeping the implementations consistent between C# and VB.
      31c57103
    • T
      Update CPC to version 3 (#13199) · 18421822
      Ty Overby 提交于
      * Pull down CPC
      
      * clear files before testing
      18421822
    • C
      Merge pull request #13224 from CyrusNajmabadi/removeDeadFile · bf3d55dc
      CyrusNajmabadi 提交于
      Remove file that exists on disk, but isn't referenced by any Roslyn project.
      bf3d55dc
    • B
      Merge pull request #13210 from brettfo/vsix-dependencies · 836e6740
      Brett V. Forsgren 提交于
      set references to some assemblies to `<Private>false</Private>`
      836e6740
    • G
      Diagnose "ref" argument in an array index operation · 4fd8ae3a
      gafter 提交于
      Fixes #13062
      Closes #13091
      4fd8ae3a