Skip to content

Commit a1e799c

Browse files
authored
Change function calls to properties to align with new version.
1 parent 20def1e commit a1e799c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/extensibility/visualstudio.extensibility/get-started/create-your-first-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The command has a configuration property named `CommandConfiguration`, which def
6363
// Use this object initializer to set optional parameters for the command. The required parameter,
6464
// displayName, is set above. DisplayName is localized and references an entry in .vsextension\string-resources.json.
6565
Icon = new(ImageMoniker.KnownValues.Extension, IconSettings.IconAndText),
66-
Placements = new[] { CommandPlacement.KnownPlacements.ExtensionsMenu() },
66+
Placements = new[] { CommandPlacement.KnownPlacements.ExtensionsMenu },
6767
};
6868
```
6969

docs/extensibility/visualstudio.extensibility/get-started/tutorial-create-simple-extension.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The project template or the sample you created in the [Create your first extensi
3333
```csharp
3434
public override CommandConfiguration CommandConfiguration => new("%InsertGuidCommand.DisplayName%")
3535
{
36-
Placements = new[] { CommandPlacement.KnownPlacements.ExtensionsMenu() },
36+
Placements = new[] { CommandPlacement.KnownPlacements.ExtensionsMenu },
3737
};
3838
```
3939

@@ -54,7 +54,7 @@ The argument to the `CommandConfiguration` constructor is the command's display
5454
```csharp
5555
public override CommandConfiguration CommandConfiguration => new("%InsertGuidCommand.DisplayName%")
5656
{
57-
Placements = new[] { CommandPlacement.KnownPlacements.ExtensionsMenu() },
57+
Placements = new[] { CommandPlacement.KnownPlacements.ExtensionsMenu },
5858
Icon = new(ImageMoniker.KnownValues.OfficeWebExtension, IconSettings.IconAndText),
5959
};
6060
```
@@ -66,7 +66,7 @@ You can specify a known built-in icon, in this case `OfficeWebExtension`, or upl
6666
```csharp
6767
public override CommandConfiguration CommandConfiguration => new("%InsertGuidCommand.DisplayName%")
6868
{
69-
Placements = new[] { CommandPlacement.KnownPlacements.ExtensionsMenu() },
69+
Placements = new[] { CommandPlacement.KnownPlacements.ExtensionsMenu },
7070
Icon = new(ImageMoniker.KnownValues.OfficeWebExtension, IconSettings.IconAndText),
7171
VisibleWhen = ActivationConstraint.ClientContext(ClientContextKey.Shell.ActiveEditorContentType, ".+"),
7272
};

0 commit comments

Comments
 (0)