@@ -97,30 +97,30 @@ export async function MigrateOptions(vscode: vscode): Promise<void> {
97
97
continue ;
98
98
}
99
99
100
- const inspectionValueOfnewName = configuration . inspect ( newName ) ;
101
- if ( inspectionValueOfnewName == undefined ) {
100
+ const inspectionValueOfNewOption = configuration . inspect ( newName ) ;
101
+ if ( inspectionValueOfNewOption == undefined ) {
102
102
continue ;
103
103
}
104
104
105
- const newNameValue = configuration . get ( newName ) ;
106
- if ( newNameValue == undefined ) {
105
+ const newOptionValue = configuration . get ( newName ) ;
106
+ if ( newOptionValue == undefined ) {
107
107
continue ;
108
108
}
109
109
110
- if ( shouldMove ( newNameValue , inspectionValueOfnewName . defaultValue ) ) {
110
+ if ( shouldMove ( newOptionValue , inspectionValueOfNewOption . defaultValue ) ) {
111
111
await MoveOptionsValue ( oldName , newName , configuration ) ;
112
112
}
113
113
}
114
114
}
115
115
116
- function shouldMove ( newNameValue : unknown , defaultInspectValueOfnewName : unknown ) : boolean {
117
- if ( newNameValue == defaultInspectValueOfnewName ) {
116
+ function shouldMove ( newOptionValue : unknown , defaultInspectValueOfNewOption : unknown ) : boolean {
117
+ if ( newOptionValue == defaultInspectValueOfNewOption ) {
118
118
return true ;
119
119
}
120
120
121
121
// For certain kinds of complex object options, vscode will return a proxy object which isn't comparable to the default empty object {}.
122
- if ( types . isProxy ( newNameValue ) ) {
123
- return JSON . stringify ( newNameValue ) === JSON . stringify ( defaultInspectValueOfnewName ) ;
122
+ if ( types . isProxy ( newOptionValue ) ) {
123
+ return JSON . stringify ( newOptionValue ) === JSON . stringify ( defaultInspectValueOfNewOption ) ;
124
124
}
125
125
126
126
return false ;
0 commit comments