thurka commented on code in PR #6058:
URL: https://github.com/apache/netbeans/pull/6058#discussion_r1224553055


##########
java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/db/DBConnectionsProvider.java:
##########
@@ -26,51 +26,51 @@
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
-import java.util.stream.Collectors;
 import org.eclipse.lsp4j.CodeAction;
 import org.eclipse.lsp4j.CodeActionParams;
 import org.netbeans.api.db.explorer.ConnectionManager;
 import org.netbeans.api.db.explorer.DatabaseConnection;
 import org.netbeans.modules.java.lsp.server.protocol.CodeActionsProvider;
 import org.netbeans.modules.java.lsp.server.protocol.NbCodeLanguageClient;
-import org.netbeans.modules.java.lsp.server.protocol.UpdateConfigParams;
 import org.netbeans.modules.parsing.api.ResultIterator;
 import org.openide.util.lookup.ServiceProvider;
 
 /**
- * Updates Run Configuratoin with Database env variables.
  * 
  * @author Jan Horvath
  */
 @ServiceProvider(service = CodeActionsProvider.class)
-public class DBSetEnvCommand extends CodeActionsProvider {
-    private static final String  COMMAND_SET_DB_ENV = "java.db.set.env"; 
//NOI18N
-    private static final String CONFIG_SECTION = "java+.runConfig"; //NOI18N
+public class DBConnectionsProvider extends CodeActionsProvider{
+    private static final String  GET_DB_CONNECTIONS = "java.db.connections"; 
//NOI18N

Review Comment:
   Why the class and command is named 'connections', when it returns 
information about one DB connection?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to