Commit cb0f5dbb authored by Martin Entlicher's avatar Martin Entlicher
Browse files

Extension debug types corrected.

parent cf30670c
......@@ -38,9 +38,9 @@
"integrity": "sha512-HI5l+f38o93x81mbOWZ1IEzj87rGCHfN4A4QyCU1MuViT5Slvlo5F+YVvmBFHfZsEGi0Lo8TghWU2Ew6vBILNA=="
},
"@types/vscode": {
"version": "1.47.0",
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.47.0.tgz",
"integrity": "sha512-nJA37ykkz9FYA0ZOQUSc3OZnhuzEW2vUhUEo4MiduUo82jGwwcLfyvmgd/Q7b0WrZAAceojGhZybg319L24bTA==",
"version": "1.49.0",
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.49.0.tgz",
"integrity": "sha512-wfNQmLmm1VdMBr6iuNdprWmC1YdrgZ9dQzadv+l2eSjJlElOdJw8OTm4RU4oGTBcfvG6RZI2jOcppkdSS18mZw==",
"dev": true
},
"agent-base": {
......
......@@ -21,7 +21,7 @@
"multi-root ready"
],
"engines": {
"vscode": "^1.47.0"
"vscode": "^1.49.0"
},
"activationEvents": [
"onLanguage:java",
......@@ -175,7 +175,7 @@
"nbjavac": "node ./out/nbcode.js -J-Dnetbeans.close=true --modules --install .*nbjavac.*"
},
"devDependencies": {
"@types/vscode": "^1.47.0",
"@types/vscode": "^1.49.0",
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^13.11.0",
......
......@@ -211,19 +211,19 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
]);
}
}));
const runCodelens = async (uri, methodName, noDebug) => {
const runCodelens = async (uri : any, methodName : string, noDebug : boolean) => {
const editor = window.activeTextEditor;
if (editor) {
const docUri = editor.document.uri;
const workspaceFolder = vscode.workspace.getWorkspaceFolder(docUri);
const debugConfig = {
const debugConfig : vscode.DebugConfiguration = {
type: "java8+",
name: "CodeLens Debug",
request: "launch",
mainClass: uri,
singleMethod: methodName,
};
const debugOptions = {
const debugOptions : vscode.DebugSessionOptions = {
noDebug: noDebug,
}
await vscode.debug.startDebugging(workspaceFolder, debugConfig, debugOptions).then();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment