Skip to content

Commit

Permalink
Work from single VSCode instance
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed May 2, 2024
1 parent 68bec6e commit 219b248
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 227 deletions.
119 changes: 65 additions & 54 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,67 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Launch) - Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "Debug (Launch)-MagikLint<magik-lint>",
"request": "launch",
"mainClass": "nl.ramsolutions.sw.magik.lint.Main",
"projectName": "magik-lint",
"args": [
"--debug",
"magik-lint/lint-demo.magik"
]
},
{
"type": "java",
"name": "Debug (Launch)-MagikToolkit<sslr-magik-toolkit>",
"request": "launch",
"mainClass": "nl.ramsolutions.sw.magik.toolkit.MagikToolkit",
"projectName": "sslr-magik-toolkit"
},
{
"type": "java",
"name": "Debug (Attach)-LanguageServer<magik-language-server>",
"request": "attach",
"hostName": "localhost",
"port": 5005,
"projectName": "magik-language-server"
},
{
"type": "java",
"name": "Debug (Attach)-DebugAdapter<magik-debug-adapter>",
"request": "attach",
"hostName": "localhost",
"port": 5006,
"projectName": "magik-debug-adapter"
},
{
"type": "java",
"name": "Debug (Attach)-sonar-magik-plugin",
"request": "attach",
"hostName": "localhost",
"port": 5007,
"projectName": "sonar-magik-plugin"
}
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Launch)-MagikLint<magik-lint>",
"request": "launch",
"mainClass": "nl.ramsolutions.sw.magik.lint.Main",
"projectName": "magik-lint",
"args": [
"--debug",
"magik-lint/lint-demo.magik"
]
},
{
"type": "java",
"name": "Debug (Launch)-MagikToolkit<sslr-magik-toolkit>",
"request": "launch",
"mainClass": "nl.ramsolutions.sw.magik.toolkit.MagikToolkit",
"projectName": "sslr-magik-toolkit"
},
{
"type": "java",
"name": "Debug (Attach)-LanguageServer<magik-language-server>",
"request": "attach",
"hostName": "localhost",
"port": 5005,
"projectName": "magik-language-server"
},
{
"type": "java",
"name": "Debug (Attach)-DebugAdapter<magik-debug-adapter>",
"request": "attach",
"hostName": "localhost",
"port": 5006,
"projectName": "magik-debug-adapter"
},
{
"type": "java",
"name": "Debug (Attach)-sonar-magik-plugin",
"request": "attach",
"hostName": "localhost",
"port": 5007,
"projectName": "sonar-magik-plugin"
},
{
"type": "extensionHost",
"request": "launch",
"name": "Launch VSCode Extension",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}/magik-language-server/client-vscode"
],
"outFiles": [
"${workspaceRoot}/magik-language-server/client-vscode/client/out/**/*.js"
],
"preLaunchTask": {
"type": "npm",
"script": "watch",
"path": "magik-language-server/client-vscode",
}
}
],
}
56 changes: 31 additions & 25 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
{
"editor.detectIndentation": false,
"editor.renderWhitespace": "selection",
"editor.rulers": [100, 120],
"editor.tabSize": 4,
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"java.autobuild.enabled": false,
"java.checkstyle.version": "10.15.0",
"java.checkstyle.configuration": "/google_checks.xml",
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.maven.notCoveredPluginExecutionSeverity": "ignore",
"java.configuration.updateBuildConfiguration": "automatic",
"java.debug.settings.showLogicalStructure": true,
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable",
"sonarlint.connectedMode.project": {
"connectionId": "SonarCloud",
"projectKey": "StevenLooman_magik-tools"
},
"java.debug.settings.onBuildFailureProceed": true,
"editor.detectIndentation": false,
"editor.renderWhitespace": "selection",
"editor.rulers": [
100,
120
],
"editor.tabSize": 4,
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"java.autobuild.enabled": false,
"java.checkstyle.configuration": "/google_checks.xml",
"java.checkstyle.version": "10.15.0",
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.maven.notCoveredPluginExecutionSeverity": "ignore",
"java.configuration.updateBuildConfiguration": "automatic",
"java.debug.settings.onBuildFailureProceed": true,
"java.debug.settings.showLogicalStructure": true,
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable",
"sonarlint.connectedMode.project": {
"connectionId": "SonarCloud",
"projectKey": "StevenLooman_magik-tools"
},
"tslint.enable": true,
"typescript.tsc.autoDetect": "off",
"typescript.preferences.quoteStyle": "single",
}
119 changes: 46 additions & 73 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,75 +1,48 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "verify",
"type": "shell",
"command": "mvn verify",
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "mvn clean",
"group": "build",
"problemMatcher": []
},
{
"label": "clean test",
"type": "shell",
"command": "mvn clean test",
"group": "test",
"problemMatcher": []
},
{
"label": "clean package",
"type": "shell",
"command": "mvn clean package",
"group": "build",
"problemMatcher": []
},
{
"label": "clean package magik-lint",
"type": "shell",
"command": "mvn clean package -pl magik-lint -am -DskipTests=true",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "clean package magik-language-server",
"type": "shell",
"command": "mvn clean package -pl magik-language-server -am -DskipTests=true",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "clean package magik-debug-adapter",
"type": "shell",
"command": "mvn clean package -pl magik-debug-adapter -am -DskipTests=true",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "clean package sslr-magik-toolkit",
"type": "shell",
"command": "mvn clean package -pl sslr-magik-toolkit -am -DskipTests=true",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "mvn clean spotless:apply verify test package",
"type": "shell",
"command": "mvn clean spotless:apply verify test package",
"group": "build",
"problemMatcher": [],
"presentation": {
"panel": "dedicated",
"reveal": "never"
}
},
{
"type": "npm",
"script": "compile",
"group": "build",
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"path": "magik-language-server/client-vscode",
"problemMatcher": [
"$tsc"
]
},
{
"type": "npm",
"script": "watch",
"isBackground": true,
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"path": "magik-language-server/client-vscode",
"problemMatcher": [
"$tsc-watch"
]
}
]
}
32 changes: 0 additions & 32 deletions magik-language-server/client-vscode/.vscode/launch.json

This file was deleted.

10 changes: 0 additions & 10 deletions magik-language-server/client-vscode/.vscode/settings.json

This file was deleted.

33 changes: 0 additions & 33 deletions magik-language-server/client-vscode/.vscode/tasks.json

This file was deleted.

0 comments on commit 219b248

Please sign in to comment.