Skip to content

Commit 0b497f6

Browse files
Razmo99JustinGrote
authored andcommitted
renaming ShouldGenerateAlias to create CreateAlias
1 parent a48c88e commit 0b497f6

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
@@ -1013,10 +1013,10 @@
10131013
"default": "off",
10141014
"description": "Traces the communication between VS Code and the PowerShell Editor Services language server. **This setting is only meant for extension developers!**"
10151015
},
1016-
"powershell.renameSymbol.shouldGenerateAlias": {
1016+
"powershell.renameSymbol.createAlias": {
10171017
"type": "boolean",
10181018
"default": true,
1019-
"description": "Should an Alias be genereted when renaming a function parameter"
1019+
"description": "Should an Alias be created when renaming a function parameter"
10201020
}
10211021
}
10221022
},

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)