forked from microsoft/copilot-for-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLanguageServerSettingManager.java
More file actions
540 lines (479 loc) · 21.8 KB
/
Copy pathLanguageServerSettingManager.java
File metadata and controls
540 lines (479 loc) · 21.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package com.microsoft.copilot.eclipse.ui.preferences;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.core.net.proxy.IProxyChangeEvent;
import org.eclipse.core.net.proxy.IProxyChangeListener;
import org.eclipse.core.net.proxy.IProxyData;
import org.eclipse.core.net.proxy.IProxyService;
import org.eclipse.e4.core.services.events.IEventBroker;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.lsp4j.DidChangeConfigurationParams;
import org.eclipse.ui.PlatformUI;
import com.microsoft.copilot.eclipse.core.Constants;
import com.microsoft.copilot.eclipse.core.CopilotCore;
import com.microsoft.copilot.eclipse.core.FeatureFlags;
import com.microsoft.copilot.eclipse.core.chat.CustomChatModeManager;
import com.microsoft.copilot.eclipse.core.events.CopilotEventConstants;
import com.microsoft.copilot.eclipse.core.lsp.CopilotLanguageServerConnection;
import com.microsoft.copilot.eclipse.core.lsp.mcp.McpServerToolsStatusCollection;
import com.microsoft.copilot.eclipse.core.lsp.mcp.McpToolStatus;
import com.microsoft.copilot.eclipse.core.lsp.mcp.McpToolsStatusCollection;
import com.microsoft.copilot.eclipse.core.lsp.protocol.ConversationToolStatus;
import com.microsoft.copilot.eclipse.core.lsp.protocol.CopilotLanguageServerSettings;
import com.microsoft.copilot.eclipse.core.lsp.protocol.CopilotLanguageServerSettings.GitHubSettings;
import com.microsoft.copilot.eclipse.core.lsp.protocol.UpdateConversationToolsStatusParams;
import com.microsoft.copilot.eclipse.core.lsp.protocol.UpdateMcpToolsStatusParams;
import com.microsoft.copilot.eclipse.core.utils.GsonUtils;
import com.microsoft.copilot.eclipse.core.utils.PlatformUtils;
import com.microsoft.copilot.eclipse.core.utils.WorkspaceUtils;
import com.microsoft.copilot.eclipse.ui.CopilotUi;
import com.microsoft.copilot.eclipse.ui.chat.services.McpExtensionPointManager;
import com.microsoft.copilot.eclipse.ui.utils.PreferencesUtils;
/**
* A class to manage the proxy service for the Copilot Language Server.
*/
public class LanguageServerSettingManager implements IProxyChangeListener, IPropertyChangeListener {
IProxyService proxyService = null;
CopilotLanguageServerSettings settings = new CopilotLanguageServerSettings();
CopilotLanguageServerConnection copilotLanguageServerConnection = null;
IPreferenceStore preferenceStore;
IProxyData proxyData = null;
private IEventBroker eventBroker;
/**
* Gets the settings.
*
* @return the settings
*/
public CopilotLanguageServerSettings getSettings() {
return settings;
}
/**
* Initializes the LanguageServerSettingManager.
*/
public LanguageServerSettingManager(CopilotLanguageServerConnection conn, IProxyService proxyService,
IPreferenceStore preferenceStore) {
this.copilotLanguageServerConnection = conn;
this.proxyService = proxyService;
this.preferenceStore = preferenceStore;
// add listeners
proxyService.addProxyChangeListener(this);
preferenceStore.addPropertyChangeListener(this);
// load settings on init
updateProxySettings();
getSettings().setEnableAutoCompletions(preferenceStore.getBoolean(Constants.AUTO_SHOW_COMPLETION));
getSettings().getHttp().setProxyStrictSsl(preferenceStore.getBoolean(Constants.ENABLE_STRICT_SSL));
getSettings().getHttp().setProxyKerberosServicePrincipal(preferenceStore.getString(Constants.PROXY_KERBEROS_SP));
getSettings().getGithubEnterprise().setUri(preferenceStore.getString(Constants.GITHUB_ENTERPRISE));
// agent related settings
getSettings().getGithubSettings().getCopilotSettings().getAgent()
.setAgentMaxRequests(preferenceStore.getInt(Constants.AGENT_MAX_REQUESTS));
getSettings().getGithubSettings().getCopilotSettings().getAgent()
.setEnableSkills(PreferencesUtils.isSkillsEnabled());
// Set transcript directory for CLS session persistence and restoration
getSettings().getGithubSettings().getCopilotSettings().getAgent()
.setTranscriptDirectory(PlatformUtils.getTranscriptDirectory());
// Set workspace context instructions when it is enabled
if (preferenceStore.getBoolean(Constants.CUSTOM_INSTRUCTIONS_WORKSPACE_ENABLED)) {
getSettings().getGithubSettings()
.setWorkspaceCopilotInstructions(preferenceStore.getString(Constants.CUSTOM_INSTRUCTIONS_WORKSPACE));
} else {
getSettings().getGithubSettings().setWorkspaceCopilotInstructions(null);
}
// Initialize the custom instructions git commit preference if not set
getSettings().getGithubSettings()
.setGitCommitCopilotInstructions(preferenceStore.getString(Constants.CUSTOM_INSTRUCTIONS_GIT_COMMIT));
eventBroker = PlatformUI.getWorkbench().getService(IEventBroker.class);
eventBroker.subscribe(CopilotEventConstants.TOPIC_DID_CHANGE_MCP_CONTRIBUTION_POINT_POLICY, event -> {
Boolean enabled = (Boolean) event.getProperty(IEventBroker.DATA);
if (!enabled.booleanValue()) {
// if the MCP contribution point is enabled, the sync action will be triggered after user approval.
syncMcpRegistrationConfiguration();
}
});
}
/**
* A listener for the proxy service.
*/
@Override
public void proxyInfoChanged(IProxyChangeEvent event) {
updateProxySettings();
updateGithubPanicErrorReport();
syncSingleConfiguration(new CopilotLanguageServerSettings(null, settings.getHttp(), null, null));
}
/**
* A listener for the preferences.
*/
@Override
public void propertyChange(PropertyChangeEvent event) {
CopilotLanguageServerSettings singleSetting;
switch (event.getProperty()) {
case Constants.AUTO_SHOW_COMPLETION:
settings.setEnableAutoCompletions(preferenceStore.getBoolean(Constants.AUTO_SHOW_COMPLETION));
singleSetting = new CopilotLanguageServerSettings(settings.isEnableAutoCompletions(), null, null, null);
break;
case Constants.ENABLE_STRICT_SSL:
settings.getHttp().setProxyStrictSsl(preferenceStore.getBoolean(Constants.ENABLE_STRICT_SSL));
singleSetting = new CopilotLanguageServerSettings(null, settings.getHttp(), null, null);
updateGithubPanicErrorReport();
break;
case Constants.PROXY_KERBEROS_SP:
settings.getHttp().setProxyKerberosServicePrincipal(preferenceStore.getString(Constants.PROXY_KERBEROS_SP));
singleSetting = new CopilotLanguageServerSettings(null, settings.getHttp(), null, null);
break;
case Constants.GITHUB_ENTERPRISE:
settings.getGithubEnterprise().setUri(preferenceStore.getString(Constants.GITHUB_ENTERPRISE));
singleSetting = new CopilotLanguageServerSettings(null, null, settings.getGithubEnterprise(), null);
break;
case Constants.MCP, Constants.MCP_EXTENSION_POINT_CONTRIB:
syncMcpRegistrationConfiguration();
return;
case Constants.MCP_TOOLS_STATUS:
updateMcpToolsStatus(preferenceStore.getString(Constants.MCP_TOOLS_STATUS), null);
return;
case Constants.CUSTOM_INSTRUCTIONS_WORKSPACE:
settings.getGithubSettings()
.setWorkspaceCopilotInstructions(preferenceStore.getString(Constants.CUSTOM_INSTRUCTIONS_WORKSPACE));
if (preferenceStore.getBoolean(Constants.CUSTOM_INSTRUCTIONS_WORKSPACE_ENABLED)) {
singleSetting = new CopilotLanguageServerSettings(null, null, null, settings.getGithubSettings());
break;
}
return;
case Constants.CUSTOM_INSTRUCTIONS_WORKSPACE_ENABLED:
singleSetting = updateWorkspaceInstructionEnabled(
preferenceStore.getBoolean(Constants.CUSTOM_INSTRUCTIONS_WORKSPACE_ENABLED));
break;
case Constants.CUSTOM_INSTRUCTIONS_GIT_COMMIT:
String gitCommitInstructions = preferenceStore.getString(Constants.CUSTOM_INSTRUCTIONS_GIT_COMMIT);
settings.getGithubSettings().setGitCommitCopilotInstructions(gitCommitInstructions);
singleSetting = new CopilotLanguageServerSettings(null, null, null, settings.getGithubSettings());
break;
case Constants.AGENT_MAX_REQUESTS:
settings.getGithubSettings().getCopilotSettings().getAgent()
.setAgentMaxRequests(preferenceStore.getInt(Constants.AGENT_MAX_REQUESTS));
singleSetting = new CopilotLanguageServerSettings(null, null, null, settings.getGithubSettings());
break;
case Constants.ENABLE_SKILLS:
settings.getGithubSettings().getCopilotSettings().getAgent()
.setEnableSkills(PreferencesUtils.isSkillsEnabled());
singleSetting = new CopilotLanguageServerSettings(null, null, null, settings.getGithubSettings());
break;
default:
return;
}
syncSingleConfiguration(singleSetting);
}
/**
* Synchronizes the configuration with the language server.
*/
public void syncConfiguration() {
DidChangeConfigurationParams params = new DidChangeConfigurationParams();
params.setSettings(settings);
updateGithubPanicErrorReport();
this.copilotLanguageServerConnection.updateConfig(params);
}
/**
* Synchronizes the configuration with the language server.
*/
public void syncSingleConfiguration(CopilotLanguageServerSettings singleSetting) {
DidChangeConfigurationParams params = new DidChangeConfigurationParams();
params.setSettings(singleSetting);
this.copilotLanguageServerConnection.updateConfig(params);
}
private void updateGithubPanicErrorReport() {
CopilotCore copilotCore = CopilotCore.getPlugin();
if (copilotCore != null && copilotCore.getGithubPanicErrorReport() != null) {
copilotCore.getGithubPanicErrorReport().setProxyStrictSsl(settings.getHttp().isProxyStrictSsl());
copilotCore.getGithubPanicErrorReport().setProxyData(proxyData);
}
}
/**
* Sync MCP registration from both extension points and preference store.
*/
public void syncMcpRegistrationConfiguration() {
// From manual configuration
settings.setMcpServers(preferenceStore.getString(Constants.MCP));
// From McpRegistration extension point
if (CopilotCore.getPlugin().getFeatureFlags().isMcpContributionPointEnabled()) {
McpExtensionPointManager mgr = CopilotUi.getPlugin().getChatServiceManager().getMcpExtensionPointManager();
settings.addMcpServers(mgr.getApprovedExtMcpServers());
}
syncSingleConfiguration(new CopilotLanguageServerSettings(null, null, null, settings.getGithubSettings()));
}
/**
* Initializes the MCP tools status from the preference store for built-in agent mode only.
* Custom agent modes get their tool configuration from the LSP/file, not from preferences.
*/
public void initializeMcpToolsStatus() {
// Load per-mode tool status
String savedModeToolsStatus = preferenceStore.getString(Constants.MCP_TOOLS_MODE_STATUS);
if (StringUtils.isNotBlank(savedModeToolsStatus)) {
try {
Map<String, Map<String, Map<String, Boolean>>> modeToolStatus = GsonUtils.getDefault()
.fromJson(savedModeToolsStatus, new TypeToken<Map<String, Map<String, Map<String, Boolean>>>>() {
}.getType());
// Only initialize tool status for built-in agent mode, not custom modes.
// Custom modes get their tool configuration from the LSP/file, not from preferences.
for (Map.Entry<String, Map<String, Map<String, Boolean>>> modeEntry : modeToolStatus.entrySet()) {
String modeId = modeEntry.getKey();
// Skip custom agent modes - they should use tool configuration from their file/LSP
if (CustomChatModeManager.INSTANCE.isCustomMode(modeId)) {
continue;
}
Map<String, Map<String, Boolean>> toolStatus = modeEntry.getValue();
String toolStatusJson = GsonUtils.getDefault().toJson(toolStatus);
updateToolStatusForMode(toolStatusJson, modeId);
}
} catch (Exception e) {
CopilotCore.LOGGER.error("Failed to parse MCP mode tools status JSON", e);
}
} else {
// Fallback to legacy MCP_TOOLS_STATUS for agent mode if MCP_TOOLS_MODE_STATUS is not available
String savedMcpToolsStatus = preferenceStore.getString(Constants.MCP_TOOLS_STATUS);
updateMcpToolsStatus(savedMcpToolsStatus, null);
}
}
/**
* Initializes the MCP tools status from the preference store with mode context.
*
* @param modeId the mode ID (e.g., "agent-mode" or custom mode ID)
*/
public void initializeMcpToolsStatus(String modeId) {
String savedMcpToolsStatus = preferenceStore.getString(Constants.MCP_TOOLS_STATUS);
updateMcpToolsStatus(savedMcpToolsStatus, modeId);
}
/**
* Update tool status for a specific mode.
*
* @param toolStatusJson the tool status in JSON format for this mode
* @param modeId the mode ID ("agent-mode" for built-in agent mode, or "file://..." for custom modes)
*/
public void updateToolStatusForMode(String toolStatusJson, String modeId) {
updateMcpToolsStatus(toolStatusJson, modeId);
}
/**
* Updates the MCP tools status.
*
* @param mcpToolsStatus the MCP tools status in JSON format. e.g.
* {"server1":{"tool1":true,"tool2":false},"server2":{"tool1":true}}
* @param modeId the mode ID (null for agent mode, custom mode ID for custom modes)
*/
private void updateMcpToolsStatus(String mcpToolsStatus, String modeId) {
if (StringUtils.isBlank(mcpToolsStatus)) {
return;
}
final Map<String, Map<String, Boolean>> toolStatusMap;
try {
toolStatusMap = GsonUtils.getDefault().fromJson(mcpToolsStatus,
new TypeToken<Map<String, Map<String, Boolean>>>() {
}.getType());
} catch (JsonSyntaxException e) {
CopilotCore.LOGGER.error("Failed to parse MCP tools status JSON", e);
return;
}
UpdateMcpToolsStatusParams mcpParams = new UpdateMcpToolsStatusParams();
List<McpServerToolsStatusCollection> serverList = new ArrayList<>();
mcpParams.setServers(serverList);
mcpParams.setWorkspaceFolders(WorkspaceUtils.listWorkspaceFolders());
// Set custom mode ID only if this is for a custom mode (ID starts with "file://")
// For built-in agent mode, customChatModeId should not be set
if (modeId != null && modeId.startsWith("file://")) {
mcpParams.setCustomChatModeId(modeId);
}
// Separate built-in tools from MCP server tools
Map<String, Boolean> builtInTools = null;
for (Map.Entry<String, Map<String, Boolean>> serverEntry : toolStatusMap.entrySet()) {
String serverName = serverEntry.getKey();
Map<String, Boolean> tools = serverEntry.getValue();
// Check if this is the built-in tools entry
if (Messages.preferences_page_mcp_tools_builtin.equals(serverName)) {
builtInTools = tools;
continue;
}
// This is an MCP server
McpServerToolsStatusCollection serverToolsStatus = new McpServerToolsStatusCollection();
serverToolsStatus.setName(serverName);
List<McpToolsStatusCollection> toolStatusList = new ArrayList<>();
serverToolsStatus.setTools(toolStatusList);
for (Map.Entry<String, Boolean> toolEntry : tools.entrySet()) {
String toolName = toolEntry.getKey();
boolean enabled = toolEntry.getValue();
McpToolsStatusCollection toolStatus = new McpToolsStatusCollection();
toolStatus.setName(toolName);
toolStatus.setStatus(enabled ? McpToolStatus.enabled.toString() : McpToolStatus.disabled.toString());
toolStatusList.add(toolStatus);
}
serverList.add(serverToolsStatus);
}
// Prepare futures for both operations
CompletableFuture<?> updateMcpToolsStatusFuture = null;
CompletableFuture<?> updateConversationToolsStatusFuture = null;
// Update MCP server tools
if (!serverList.isEmpty()) {
updateMcpToolsStatusFuture = this.copilotLanguageServerConnection.updateMcpToolsStatus(mcpParams);
}
// Update built-in tools using conversation/updateToolsStatus
if (builtInTools != null && !builtInTools.isEmpty()) {
UpdateConversationToolsStatusParams conversationParams = new UpdateConversationToolsStatusParams();
conversationParams.setChatModeKind("Agent");
conversationParams.setWorkspaceFolders(WorkspaceUtils.listWorkspaceFolders());
// Set custom mode ID only if this is for a custom mode (ID starts with "file://")
// For built-in agent mode, customChatModeId should not be set
if (modeId != null && modeId.startsWith("file://")) {
conversationParams.setCustomChatModeId(modeId);
}
List<ConversationToolStatus> toolsList = new ArrayList<>();
for (Map.Entry<String, Boolean> toolEntry : builtInTools.entrySet()) {
ConversationToolStatus toolStatus = new ConversationToolStatus();
toolStatus.setName(toolEntry.getKey());
toolStatus.setStatus(toolEntry.getValue().booleanValue() ? "enabled" : "disabled");
toolsList.add(toolStatus);
}
conversationParams.setTools(toolsList);
updateConversationToolsStatusFuture = this.copilotLanguageServerConnection
.updateConversationToolsStatus(conversationParams);
}
// Execute both futures sequentially in background
final CompletableFuture<?> mcpFuture = updateMcpToolsStatusFuture;
final CompletableFuture<?> conversationFuture = updateConversationToolsStatusFuture;
CompletableFuture.runAsync(() -> {
if (mcpFuture != null) {
mcpFuture.join();
}
if (conversationFuture != null) {
conversationFuture.join();
}
});
}
/**
* Updates the proxy settings.
*/
public void updateProxySettings() {
proxyData = getProxy();
settings.getHttp().setProxy(createProxyString(proxyData));
settings.getHttp().setProxyAuthorization(createProxyAuthString(proxyData));
settings.getHttp().setNoProxy(getNonProxiedHosts());
}
/**
* Gets the proxy data.
*
* @return the proxy data
*/
private IProxyData getProxy() {
if (proxyService == null) {
CopilotCore.LOGGER.error(new IllegalStateException("Proxy service is null"));
return null;
}
if (!proxyService.isProxiesEnabled()) {
return null;
}
IProxyData[] proxyDataArr = proxyService.select(URI.create(Constants.GITHUB_COPILOT_URL));
if (proxyDataArr != null && proxyDataArr.length > 0) {
return proxyDataArr[0];
}
return null;
}
/**
* Gets the non-proxied hosts from the proxy service.
*
* @return the array of non-proxied hosts, or null if proxy is not enabled
*/
private String[] getNonProxiedHosts() {
if (proxyService == null) {
CopilotCore.LOGGER.error(new IllegalStateException("Proxy service is null"));
return null;
}
if (!proxyService.isProxiesEnabled()) {
return null;
}
return proxyService.getNonProxiedHosts();
}
/**
* Creates a proxy string from the given proxy data.
*
* @param proxyData the proxy data
* @return the proxy string
*/
private String createProxyString(IProxyData proxyData) {
if (proxyData == null) {
return null;
}
String proxyString = proxyData.getType() + "://";
String host = proxyData.getHost();
int port = proxyData.getPort();
proxyString += host + ":" + port;
return proxyString;
}
private String createProxyAuthString(IProxyData proxyData) {
if (proxyData == null || !proxyData.isRequiresAuthentication()) {
return null;
}
return proxyData.getUserId() + ":" + proxyData.getPassword();
}
/**
* Updates the workspace instruction enabled/disabled state and manages the instruction content accordingly. This
* method is called when the user toggles the workspace instructions on or off in preferences. When enabled, it loads
* the stored workspace instructions; when disabled, it clears them.
*
* @param isEnabled true to enable workspace instructions and load the stored content, false to disable them and clear
* the content.
* @return the CopilotLanguageServerSettings to sync with the language server if workspace instructions are being
* changed.
*/
private CopilotLanguageServerSettings updateWorkspaceInstructionEnabled(boolean isEnabled) {
GitHubSettings githubSettings = new GitHubSettings();
githubSettings.setWorkspaceCopilotInstructions(
isEnabled ? preferenceStore.getString(Constants.CUSTOM_INSTRUCTIONS_WORKSPACE) : null);
return new CopilotLanguageServerSettings(null, null, null, githubSettings);
}
/**
* Gets the preference store.
*
*/
public void registerPropertyChangeListener(IPropertyChangeListener listener) {
if (preferenceStore == null) {
CopilotCore.LOGGER.error(new IllegalStateException("Preference store is null"));
return;
}
preferenceStore.addPropertyChangeListener(listener);
}
/**
* Unregisters the property change listener.
*
* @param listener the listener to unregister
*/
public void unregisterPropertyChangeListener(IPropertyChangeListener listener) {
if (preferenceStore == null) {
CopilotCore.LOGGER.error(new IllegalStateException("Preference store is null"));
return;
}
preferenceStore.removePropertyChangeListener(listener);
}
/**
* Gets the if auto show completions is enabled.
*/
public boolean isAutoShowCompletionEnabled() {
return preferenceStore.getBoolean(Constants.AUTO_SHOW_COMPLETION);
}
/**
* Enable or disable auto show completions.
*/
public void setAutoShowCompletion(boolean autoShowCompletion) {
preferenceStore.setValue(Constants.AUTO_SHOW_COMPLETION, autoShowCompletion);
}
/**
* Disposes the resources of this LanguageServerSettingManager.
*/
public void dispose() {
proxyService.removeProxyChangeListener(this);
}
}