Skip to content

Commit

Permalink
rename Azapi to AzAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Oct 10, 2024
1 parent 964f8e7 commit 9855abc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Terraform AzApi Provider Language Server
# Terraform AzAPI Provider Language Server

Experimental version of [terraform-provider-azapi](https://github.com/Azure/terraform-provider-azapi) language server.

Expand Down
2 changes: 1 addition & 1 deletion internal/langserver/handlers/code_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (h *logHandler) textDocumentCodeAction(ctx context.Context, params lsp.Code
if hasAzapiResources {
title = "Migrate to AzureRM Provider"
} else {
title = "Migrate to Azapi Provider"
title = "Migrate to AzAPI Provider"
}

argument, _ := json.Marshal(params)
Expand Down
4 changes: 2 additions & 2 deletions internal/langserver/handlers/code_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ func TestCodeAction_migrateToAzapi(t *testing.T) {

expected := []protocol.CodeAction{
{
Title: "Migrate to Azapi Provider",
Title: "Migrate to AzAPI Provider",
Kind: "refactor.rewrite",
Edit: protocol.WorkspaceEdit{},
Command: &protocol.Command{
Title: "Migrate to Azapi Provider",
Title: "Migrate to AzAPI Provider",
Command: "azapi.aztfmigrate",
Arguments: []json.RawMessage{[]byte(reqParams)},
},
Expand Down

0 comments on commit 9855abc

Please sign in to comment.