1. 21 3月, 2015 5 次提交
  2. 20 3月, 2015 29 次提交
    • M
      Merge pull request #1413 from mavasani/UpdateNuget · 3f3f36d5
      Manish Vasani 提交于
      Update toolset compiler and diagnostics nuget packages.
      3f3f36d5
    • M
      Update toolset compiler and diagnostics nuget packages. · a0a924e6
      mavasani 提交于
      a0a924e6
    • D
      Merge pull request #1396 from dpoeschl/ConstructorRefs · 2c2149be
      David Poeschl 提交于
      Change constructor ref node location in Find Refs
      2c2149be
    • M
      Merge pull request #1395 from mavasani/FixAnalyzerMemoryLeaks · 1e759ec2
      Manish Vasani 提交于
      Fix memory leaks in AnalyzerManager: 
      
      1) Statically created LocalizableString instances by analyzers were holding onto instances of AnalyzerExecutor (which holds onto the compilation on which it executes) for exception reporting, causing us to leak compilations in command line builds. Fixed this by making sure that we unregister these exception handlers during analyzer cleanup in CommonCompiler, we already did so for VisualStudioAnalyzer created in IDE.
      
      2) Switch all the state caches in AnalyzerManager to be keyed with analyzer, and clear all state for analyzer when host disposes it. Performance analysis showed that analyzers that capture the CompilationStartAnalysisContext in its RegisterCompilationStartAction via some lambda were rooting the compilation objects.
      
      Above two changes got rid of all the static and dependent handles rooting compilations during command line builds, and I see a perceived reduction in memory used by VBCSCompiler during building Roslyn.
      
      3) Fix the IDE onAnalyzerException delegate to not capture project instance, but instead use the projectId. Otherwise, VSIX analyzers that live for lifetime of VS instance would leak compilations.
      
      While I was at it, I also got rid of functionality added to MetadataCache that was caching and re-using analyzer instances across AnalyzerFileReference instances, we had already decided to instead keep lifetime of analyzer instances bound by lifetime of owning AnalyzerFileReference.
      1e759ec2
    • D
      Change constructor ref node location in Find Refs · a767f3a7
      David Poeschl 提交于
      Fixes internal issue #1138943.
      
      In the SymbolFinder API, references to constructors are included as references to both the constructor method symbol and the related type symbol. Because reference locations are deduplicated across all results shown in Find References, we have to decide which definition node to use as the parent. Prior to this change the first related definition returned to us by the SymbolFinder won, but this ordering was not guaranteed to be consistent. This change introduces a precedence ordering for definitions returned by the SymbolFinder that currently guarantees that members will be preferred over types.
      
      Additionally, this change removes the requirement that definitions shown in Find References have distinct locations. This allows us to meaningfully separate references between a type and its default constructor which has the same location.
      a767f3a7
    • P
      Merge pull request #1383 from pharring/UncommonFields · 6b3e3413
      Paul Harrington 提交于
      Reduce the size of PEMethodSymbol
      6b3e3413
    • M
      Fix memory leaks in AnalyzerManager: · 5279e7f7
      mavasani 提交于
      1) Statically created LocalizableString instances by analyzers were holding onto instances of AnalyzerExecutor (which holds onto the compilation on which it executes) for exception reporting, causing us to leak compilations in command line builds. Fixed this by making sure that we unregister these exception handlers during analyzer cleanup in CommonCompiler, we already did so for VisualStudioAnalyzer created in IDE.
      
      2) Switch all the state caches in AnalyzerManager to be keyed with analyzer, and clear all state for analyzer when host disposes it. Performance analysis showed that analyzers that capture the CompilationStartAnalysisContext in its RegisterCompilationStartAction via some lambda were rooting the compilation objects.
      
      Above two changes got rid of all the static and dependent handles rooting compilations during command line builds, and I see a perceived reduction in memory used by VBCSCompiler during building Roslyn.
      
      3) Fix the IDE onAnalyzerException delegate to not capture project instance, but instead use the projectId. Otherwise, VSIX analyzers that live for lifetime of VS instance would leak compilations.
      
      While I was at it, I also got rid of functionality added to MetadataCache that was caching and re-using analyzer instances across AnalyzerFileReference instances, we had already decided to instead keep lifetime of analyzer instances bound by lifetime of owning AnalyzerFileReference.
      5279e7f7
    • B
      Make FileBasedXmlDocumentProvider not process DTDs · 573a1595
      Balaji Soundrarajan 提交于
      Fix #1371 :  Make FileBasedXmlDocumentProvider not process DTD by
      setting the correct DTDProcessing value in the XmlReaderSetting
      
      Also fix XmlDocumentProvicer to return the string with the Tags and
      Newlines when called GetDocumentForSymbol
      573a1595
    • T
      Merge pull request #1401 from tmat/DiaSymReader_Binder · 80acffeb
      Tomáš Matoušek 提交于
      Add ISymUnmanagedBinder interfaces to Microsoft.DiaSymReader
      80acffeb
    • T
      99732fd2
    • B
      Merge pull request #1361 from brettfo/venus-rename · 6fefc866
      Brett Forsgren 提交于
      only try to do inline rename on documents that support it (e.g., not venus)
      6fefc866
    • P
      Merge pull request #1393 from pharring/UnusedDeclarations · 04a8b487
      Paul Harrington 提交于
      Avoid calling .Locations on namespaces
      04a8b487
    • P
      Respond to review feedback. · d0fbdbba
      Paul Harrington 提交于
      d0fbdbba
    • B
      Merge pull request #1234 from brettfo/sig-help-null-ref · 81ec3637
      Brett Forsgren 提交于
      null check a token's parent to prevent a NullReferenceException
      81ec3637
    • P
      Avoid calling .Locations on namespaces · 1462fe1e
      Paul Harrington 提交于
      1462fe1e
    • K
      Merge pull request #1390 from KevinH-MS/master · a014455c
      Kevin Halverson 提交于
      Add missing [PreserveSig] to a couple ISymUnmanagedScope members...
      a014455c
    • K
    • W
      a64937b0
    • J
      Fix Linux build warnings · 795ce59a
      Jared Parsons 提交于
      The SignVsixInputs target depends on the CopyFilesToOutputDirectory target.  This target logically exists on xbuild but is named DeployOutputFiles.  This descrepancy lead to numerous warnings on Linux during a compilation about missing targets.
      
      After discussing with @jasonmalinowski we decided to move it to
      AfterCompile.  This executes in the right place for SignVsixInputs and
      is supported in both xbuild and msbuild.
      
      closes #1370
      795ce59a
    • J
      Work around NuGet crashes on Linux · 0fb5cf9d
      Jared Parsons 提交于
      0fb5cf9d
    • J
      Fix build warnings · 84d8c5aa
      Jared Parsons 提交于
      This fixes a couple of build warnings:
      
      - Bad hint path for MS.VS.Platform.VSEditor.Interop.dll
      - Syntax.xml did not conform to the prescribed XML schema
      
      I additionally modified VisualBasicSyntaxGenerator to exit with an error
      code in the case the provided XML file did not match the schema.  That
      will prevent future regressions on the second warning I fixed.
      
      closes #1356
      closes #1386
      
      Respond to PR feedback
      84d8c5aa
    • A
      0a849478
    • B
      Merge pull request #1362 from basoundr/fix1309ArgExpDupSrc · 7b0750bd
      Balaji Soundrarajan 提交于
      Dont re-add the same source table
      7b0750bd
    • C
      Merge pull request #1385 from cston/Typos · 87bf71ff
      Charles Stoner 提交于
      Correct typos
      87bf71ff
    • A
      Merge pull request #1358 from amcasey/PortableEC · 264e5d34
      Andrew Casey 提交于
      Make the ExpressionCompiler assemblies portable
      264e5d34
    • B
      make method name better reflect its purpose · c3963489
      Brett Forsgren 提交于
      c3963489
    • A
      Make the ExpressionCompiler assemblies portable · 38815b62
      Andrew Casey 提交于
      1. Compile them against Profile7.
         a. Swap out a few APIs (e.g. using GetTypeInfo for reflection).
         b. Introduce an abstraction layer so that we don't have to instantiate
         DkmDataItem (caused a VerificationException).
         c. Include WindowsProxy.winmd as an EmbeddedResource directly, rather
         than through a resx file.
      2. Swap the output locations of the ResultProvider projects: Portable goes
      to the main output directory and NetFX20 goes to a subdirectory (NetFX20).
      3. Include the Portable ResultProvider assemblies in the EE vsix, rather
      than the NetFX20 ones.
      38815b62
    • T
      Merge pull request #1379 from mavasani/IsDiagnosticAnalyzerSuppressed · 3136749b
      Tom Meschter 提交于
      Fix IsDiagnosticAnalyzerSuppressed check for analyzers that have NotConfigurable diagnostics which are disabled by default.
      
      Current logic didn't account for the fact that even though these descriptors are non-configurable, they might be turned off by default and hence be suppressed.
      3136749b
    • C
      Correct typos · 1f4f6b14
      Charles Stoner 提交于
      1f4f6b14
  3. 19 3月, 2015 6 次提交