Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5dd6dca

Browse files
committedJun 10, 2024·
renaming ShouldGenerateAlias to create CreateAlias
1 parent 35c5efd commit 5dd6dca

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,10 +1017,10 @@
10171017
"default": "off",
10181018
"description": "Traces the communication between VS Code and the PowerShell Editor Services language server. **This setting is only meant for extension developers!**"
10191019
},
1020-
"powershell.renameSymbol.shouldGenerateAlias": {
1020+
"powershell.renameSymbol.createAlias": {
10211021
"type": "boolean",
10221022
"default": true,
1023-
"description": "Should an Alias be genereted when renaming a function parameter"
1023+
"description": "Should an Alias be created when renaming a function parameter"
10241024
}
10251025
}
10261026
},

‎src/features/RenameSymbol.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { LanguageClient } from "vscode-languageclient/node";
99
import { ILogger } from "../logging";
1010
// eslint-disable-next-line @typescript-eslint/no-empty-interface
1111
interface RenameSymbolOptions {
12-
ShouldGenerateAlias?:boolean
12+
CreateAlias?:boolean
1313
}
1414
interface IRenameSymbolRequestArguments {
1515
FileName?:string
@@ -70,7 +70,7 @@ export class RenameSymbolFeature extends LanguageClientConsumer implements Renam
7070
};
7171
const config = vscode.workspace.getConfiguration();
7272
req.Options = {
73-
ShouldGenerateAlias: config.get("powershell.renameSymbol.shouldGenerateAlias")
73+
CreateAlias: config.get("powershell.renameSymbol.createAlias")
7474
};
7575

7676
try {

‎src/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class ButtonSettings extends PartialSettings {
157157
}
158158

159159
class RenameSymbolSettings extends PartialSettings {
160-
shouldGenerateAlias = true;
160+
createAlias = true;
161161
}
162162

163163
// This is a recursive function which unpacks a WorkspaceConfiguration into our settings.

0 commit comments

Comments
 (0)
Please sign in to comment.