Skip to content

Commit 4a1b23d

Browse files
authored
add avoidVolatileChanges configuration (#2614)
Signed-off-by: Shi Chen <[email protected]>
1 parent 63ee5b1 commit 4a1b23d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ The following settings are supported:
208208

209209
New in 1.10.0
210210
* `java.import.maven.offline.enabled` : Enable/disable the Maven offline mode. Defaults to `false`.
211+
* `java.codeAction.sortMembers.avoidVolatileChanges`: Reordering of fields, enum constants, and initializers can result in semantic and runtime changes due to different initialization and persistence order. This setting prevents this from occurring. Defaults to `true`.
211212

212213
Semantic Highlighting
213214
===============

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,12 @@
916916
"default": true,
917917
"description": "Whether to load lombok processors from project classpath",
918918
"scope": "window"
919+
},
920+
"java.codeAction.sortMembers.avoidVolatileChanges": {
921+
"type": "boolean",
922+
"default": true,
923+
"description": "Reordering of fields, enum constants, and initializers can result in semantic and runtime changes due to different initialization and persistence order. This setting prevents this from occurring.",
924+
"scope": "window"
919925
}
920926
}
921927
},

0 commit comments

Comments
 (0)