提交 bbe9821d 编写于 作者: T Tom Meschter

Set the rule set file when the command line changes

The Language Service needs to know the full path to the .ruleset file (if any) so it can watch it for changes and reload it as necessary. The legacy project system communicates the rule set path through the `IAnalyzerHost.SetRuleSetFile(string)` method. However, the new CPS-based project system doesn't know about this interface; it simple gathers the command line arguments and passes them to the Language Service to process accordingly. This change updates the Language Service support for the CPS-based project system to pull the rule set file path out of the parsed arguments and call `SetRuleSetFile` itself.
上级 716f73eb
......@@ -120,6 +120,9 @@ public void SetOptions(string commandLineForOptions)
ExecuteForegroundAction(() =>
{
var commandLineArguments = SetArgumentsAndUpdateOptions(commandLineForOptions);
SetRuleSetFile(commandLineArguments.RuleSetPath);
PostSetOptions(commandLineArguments);
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册