1. 31 1月, 2015 6 次提交
    • J
      Add an analyzer to force passing TaskSchedulers when creating Tasks. · b92db562
      jasonmalinowski 提交于
      If you call Task.Factory.StartNew and use one of the overloads that doesn't take TaskScheduler, the resulting task is scheduled onto TaskScheduler.Current. This is very dangerous in a free-threaded library like Roslyn: if the function runs on the UI thread it's possible the resulting Task will be scheduled on the UI thread accidentally. If later UI code were to wait on that task or a continuation of it, we might deadlock.
      
      The solution is just to ban the APIs -- if somebody wishes to schedule to the current thread, it's up to them to be explicit. Otherwise, TaskScheduler.Default should be used. (changeset 1407143)
      b92db562
    • P
      The C# compiler was not using the correct syntax node to verify whether or not... · 4b039cb7
      pgavlin 提交于
      The C# compiler was not using the correct syntax node to verify whether or not the expression body of an expression-bodied lambda or member was classified as a statement expression. This caused code to unexpectedly succeed to compile in certain cases (e.g. when the expression body was a parenthesized-expression that wrapped a valid statement expression), which broke conversions to void-returning delegates (and thus overload resolution, as in the original repro). This change adjusts the check to use the correct syntax node.
      ***NO_CI***
       (changeset 1406995)
      4b039cb7
    • J
      Part 1 of moving Visual Studio to Open · 5c7b91c9
      jaredpar 提交于
      Background:
      
      As discussed in the dev team all hands all code under the GitHub dotnet foundation is using a single process for contribution, API review, infrastructure and coding style. The idea is to present a unified view to our customer and give them a single story for contributing to any project under the dotnet foundation.
      
      https://github.com/dotnet/corefx/wiki/Contributing#c-coding-style
      
      The coding style transition is automated using a Roslyn based rewrite tool:
      
      https://github.com/dotnet/codeformatter
      
      This will be applied in stages across our developer tree. Right now the focus is on the Open directory as this is what is being presented on github. Code owners will be contacted before the transition happens.
      
      Note: this is a soft style requirement. There are no build errors that come from this change. (changeset 1406961)
      5c7b91c9
    • A
    • C
      Allow async taggers to specify what sort of tracking span behavior they want. · ec999eb0
      cyrusn 提交于
      This affects what happens to tags for previous text snapshot versions that are mapped forward (in the interim period before we get the new up to date tags).
      
      Most features just have EdgeExclusive behavior.  However, some features, like TypeScript classification, want EdgeInclusive behavior so that if you type at the edge of an existing tag, the next text gets the old classification and does not flash.
      ***NO_CI***
       (changeset 1406469)
      ec999eb0
    • K
      Rollback SkipApplyOptimizations change for Features and BasicEditorFeatures... · 23e01f11
      Kevin_H 提交于
      Rollback SkipApplyOptimizations change for Features and BasicEditorFeatures (to see if issue with ibcmerge has been fixed)...
      ***NO_CI***
       (changeset 1406462)
      23e01f11
  2. 29 1月, 2015 6 次提交
  3. 28 1月, 2015 13 次提交
  4. 27 1月, 2015 15 次提交