@@ -67,16 +67,16 @@ public class CobolLanguageServer implements LanguageServer {
67
67
@ Inject
68
68
@ SuppressWarnings ("squid:S107" )
69
69
CobolLanguageServer (
70
- TextDocumentService textService ,
71
- WorkspaceService workspaceService ,
72
- WatcherService watchingService ,
73
- SettingsService settingsService ,
74
- LocaleStore localeStore ,
75
- CustomThreadPoolExecutor customThreadPoolExecutor ,
76
- DisposableLSPStateService disposableLSPStateService ,
77
- CopybookNameService copybookNameService ,
78
- Keywords keywords ,
79
- MessageService messageService ) {
70
+ TextDocumentService textService ,
71
+ WorkspaceService workspaceService ,
72
+ WatcherService watchingService ,
73
+ SettingsService settingsService ,
74
+ LocaleStore localeStore ,
75
+ CustomThreadPoolExecutor customThreadPoolExecutor ,
76
+ DisposableLSPStateService disposableLSPStateService ,
77
+ CopybookNameService copybookNameService ,
78
+ Keywords keywords ,
79
+ MessageService messageService ) {
80
80
this .textService = textService ;
81
81
this .workspaceService = workspaceService ;
82
82
this .watchingService = watchingService ;
@@ -128,7 +128,7 @@ public CompletableFuture<InitializeResult> initialize(@NonNull InitializeParams
128
128
WorkspaceFoldersOptions workspaceFoldersOptions = new WorkspaceFoldersOptions ();
129
129
workspaceFoldersOptions .setSupported (TRUE );
130
130
WorkspaceServerCapabilities workspaceServiceCapabilities =
131
- new WorkspaceServerCapabilities (workspaceFoldersOptions );
131
+ new WorkspaceServerCapabilities (workspaceFoldersOptions );
132
132
capabilities .setWorkspace (workspaceServiceCapabilities );
133
133
134
134
return supplyAsync (() -> new InitializeResult (capabilities ));
@@ -153,19 +153,19 @@ public void initialized(@Nullable InitializedParams params) {
153
153
154
154
private void notifyConfiguredCopybookExtensions () {
155
155
settingsService
156
- .fetchTextConfiguration (CPY_EXTENSIONS .label )
157
- .thenAccept (
158
- config -> {
159
- if (textService instanceof CobolTextDocumentService ) {
160
- ((CobolTextDocumentService ) textService ).notifyExtensionConfig (config );
161
- }
162
- });
156
+ .fetchTextConfiguration (CPY_EXTENSIONS .label )
157
+ .thenAccept (
158
+ config -> {
159
+ if (textService instanceof CobolTextDocumentService ) {
160
+ ((CobolTextDocumentService ) textService ).notifyExtensionConfig (config );
161
+ }
162
+ });
163
163
}
164
164
165
165
private void getLogLevelFromClient () {
166
166
settingsService
167
- .fetchConfiguration (LOGGING_LEVEL .label )
168
- .thenAccept (LogLevelUtils .updateLogLevel ());
167
+ .fetchConfiguration (LOGGING_LEVEL .label )
168
+ .thenAccept (LogLevelUtils .updateLogLevel ());
169
169
}
170
170
171
171
private void getLocaleFromClient () {
@@ -223,7 +223,9 @@ private ExecuteCommandOptions collectExecuteCommandList() {
223
223
return new ExecuteCommandOptions (ImmutableList .of (ErrorCodes .MISSING_COPYBOOK .getLabel ()));
224
224
}
225
225
226
- /** Represents the JSON RPC response structure for shutdown command as per LSP specification */
226
+ /**
227
+ * Represents the JSON RPC response structure for shutdown command as per LSP specification
228
+ */
227
229
@ AllArgsConstructor
228
230
private static class ShutdownResponse {
229
231
private final String result ;
0 commit comments