1. 28 4月, 2015 30 次提交
  2. 27 4月, 2015 8 次提交
    • K
      Merge pull request #2276 from dpen2000/ProjectInfoDebuggerDisplay · 43a324f2
      Kevin Pilch-Bisson 提交于
      Include Project Name and FilePath in debugger display for ProjectInfo
      
      Fixes #2159
      43a324f2
    • W
      Merge pull request #2253 from wschae/locked · 5ca5a3b4
      Wonseok Chae 提交于
      [Localize] partially localize a part of strings like "finally clause"
      
      We use resource commenting "locked" to define what to localize. It fixes #2215.
      5ca5a3b4
    • T
      Merge pull request #2014 from tmeschter/NewAnalyzerAssemblyLoaders · e7e21bd1
      Tom Meschter 提交于
      Add new analyzer assembly loaders.
      
      Currently we expect that an analyzer's dependencies are located next to
      it in the file system, and we do not require that those dependencies be
      explicitly passed to the compiler. These requirements are changing. We
      will now allow analyzers and their dependencies to be located anywhere,
      and this requires that the full set of analyzers and dependencies be
      passed in so that we know where to find them.
      
      In order to load analyzers and dependencies under these new
      requirements, this commit introduces two new analyzer loaders:
      
      * The `SimpleAnalyzerAssemblyLoader` type loads assemblies from their
      current location with a simple `Assembly.LoadFrom`. This is used in
      situations where it is OK to lock the file on disk for the lifetime of the process
      (e.g., in csc/vbc/csi/vbi) and as the default in the workspaces layer.
      * The `ShadowCopyAnalyzerAssemblyLoader` first copies an assembly
      and its resource files to a temporary location, and then loads it from there.
      This keeps the original file unlocked, and is meant to be used by longer-
      running processes (VS, vbcscompiler.exe).
      
      Both implementations also hook the `AppDomain.AssemblyResolve` event in
      order to find and load items from their list of dependencies.
      
      **Work included in the current review:**
      
      1. Defining a loader that loads in-place (`SimpleAnalyzerAssemblyLoader`).
      2. Defining a loader that shadow-copies assemblies and loads them from
      the new location (`ShadowCopyAnalyzerAssemblyLoader`).
      3. Plumbing the loaders through csc/vbc/vbcscompiler/workspaces/VS.
      4. Removing the old `InMemoryAssemblyProvider` entirely and updating
      the code that previously depended on it for notification for when an
      assembly was loaded.
      5. Making the new loaders internal in order to minimize our public
      surface area.
      e7e21bd1
    • M
      Fix a race condition in BatchFixAllProvider's merge logic, in presence of merge conflicts. · a048fd3e
      Manish Vasani 提交于
      The current merge logic that merges code fixes from batch fixes ignores individual text changes that conflict with already merged batch fixes. This can be problematic if we have already merged a fix in the document in a later text span. We may end up adding text changes of kind Insert, but silently ignore text changes of kind Remove, returned by SyntaxTree.GetChanges(tree). This can cause the merged text document to be completely corrupt.
      Fix is to ignore all the text changes from a code fix (that is part of batch fixes) if any of its text change has a conflict.
      
      NOTE: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/723 represents another case similar to #463, where SyntaxTree.GetChanges returns an add + remove with long spans, when the actual text change is just a single char replace. This causes completely independent code fixes to seem as conflicting to the batch fixer. I'll file a separate issue for this API bug.
      a048fd3e
    • J
      Adding error triggers for the add-usings fixers · 7cd8e8a6
      Jonathon Marolf 提交于
      Adding additional errors for the Add Imports/Usings fixers to react to.
      Now, when we get an error on an extension method we offer to import the
      correct namespace.
      
      Fixes #935
      Fixes #562
      7cd8e8a6
    • S
    • D
    • P
      When classifying xml nodes in VB, use FullSpan · cf1cc7b7
      Pilchie 提交于
      Since the editor calls us line by line, if we get called to classify a
      comment trivia on the line before an xml node, we would not do so as part
      of that line, because it doesn't overlap the Span.  We would later do so,
      but not actually return the spans to the editor, since they didn't
      overlap the span requested.
      
      Fixes #2126.
      cf1cc7b7
  3. 26 4月, 2015 2 次提交