Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Osenkov <github@osenkov.com>2018-08-15 21:13:16 +0300
committerKirill Osenkov <github@osenkov.com>2018-08-15 21:13:16 +0300
commitb407d9744a34fd4647cf3e99068a28d728fd65a2 (patch)
treee6d6cef915f32dec4f2d16b1868045143deb589f /src/Text/Impl/EditorOptions/EditorOptionsFactoryService.cs
parentcf974b266fb428d846e2e16a25a4eeb8f635c26f (diff)
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/EditorOptions/EditorOptionsFactoryService.cs')
-rw-r--r--src/Text/Impl/EditorOptions/EditorOptionsFactoryService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Impl/EditorOptions/EditorOptionsFactoryService.cs b/src/Text/Impl/EditorOptions/EditorOptionsFactoryService.cs
index 733450b..a7f2686 100644
--- a/src/Text/Impl/EditorOptions/EditorOptionsFactoryService.cs
+++ b/src/Text/Impl/EditorOptions/EditorOptionsFactoryService.cs
@@ -35,7 +35,7 @@ namespace Microsoft.VisualStudio.Text.EditorOptions.Implementation
public IEditorOptions GetOptions(IPropertyOwner scope)
{
if (scope == null)
- throw new ArgumentNullException("scope");
+ throw new ArgumentNullException(nameof(scope));
return scope.Properties.GetOrCreateSingletonProperty<IEditorOptions>(() => new EditorOptions(this.GlobalOptions as EditorOptions, scope, this));
}
@@ -133,7 +133,7 @@ namespace Microsoft.VisualStudio.Text.EditorOptions.Implementation
{
var definition = this.GetOptionDefinition(optionId);
if (definition == null)
- throw new ArgumentException(string.Format("No EditorOptionDefinition export found for the given option name: {0}", optionId), "optionId");
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "No EditorOptionDefinition export found for the given option name: {0}", optionId), nameof(optionId));
return definition;
}