diff --git a/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/DAPDebugger.java b/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/DAPDebugger.java index d2ab6cb4c061..3dff711b296f 100644 --- a/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/DAPDebugger.java +++ b/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/DAPDebugger.java @@ -318,6 +318,8 @@ public void resume() { //some servers (e.g. the GraalVM DAP server) require the threadId to be always set, even if singleThread is set to false args.setThreadId(currentThreadId); args.setSingleThread(Boolean.FALSE); + + continued(); server.continue_(args); } diff --git a/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/attach/Bundle.properties b/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/attach/Bundle.properties index 5107ba81bc10..ba39d6a5ba1c 100644 --- a/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/attach/Bundle.properties +++ b/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/attach/Bundle.properties @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + DAPAttachPanel.jLabel1.text=&Hostname: DAPAttachPanel.jLabel2.text=&Port: DAPAttachPanel.jLabel3.text=Connection &type: diff --git a/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/attach/DAPAttachPanel.form b/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/attach/DAPAttachPanel.form index 289c05fcd16b..608a44803642 100644 --- a/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/attach/DAPAttachPanel.form +++ b/ide/lsp.client/src/org/netbeans/modules/lsp/client/debugger/attach/DAPAttachPanel.form @@ -1,5 +1,26 @@ + +
diff --git a/java/java.lsp.server/test/unit/src/org/netbeans/modules/java/lsp/server/ConnectionSpecTest.java b/java/java.lsp.server/test/unit/src/org/netbeans/modules/java/lsp/server/ConnectionSpecTest.java index 1035cf9bc89a..f538c953f63b 100644 --- a/java/java.lsp.server/test/unit/src/org/netbeans/modules/java/lsp/server/ConnectionSpecTest.java +++ b/java/java.lsp.server/test/unit/src/org/netbeans/modules/java/lsp/server/ConnectionSpecTest.java @@ -121,7 +121,7 @@ public void testParseListenAndConnect() throws Exception { String reply = os.toString("UTF-8"); String exp = "Pipe server listening at port "; assertTrue(reply, reply.startsWith(exp)); - int port = Integer.parseInt(reply.substring(exp.length())); + int port = Integer.parseInt(reply.substring(exp.length(), reply.indexOf('\n', exp.length()))); assertTrue("port is specified: " + port, port >= 1024); try (ConnectionSpec second = ConnectionSpec.parse("connect:" + port)) { second.prepare("Pipe client", in, os, new LspSession(), ConnectionSpecTest::setCopy, ConnectionSpecTest::copy);