Make the completion parser inspect nested command segments when an unfinished braced argument is the active context, instead of treating the entire braced body as opaque. This resolves cases where inner commands (e.g. command substitutions) were ignored and improves suggestion accuracy. Tests were added to cover nested commands inside braced conditions and to ensure closed braced arguments do not change context. Also add Linux-specific launch and task configurations to IDE settings to simplify local extension development and debugging. - Recursively scan inner context when a braced body is unfinished - Add tests for nested commands and closed-brace behavior - Add Linux launch/task entries for easier development
124 lines
4.5 KiB
JSON
124 lines
4.5 KiB
JSON
// A launch configuration that compiles the extension and then opens it inside a new window
|
|
// 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": [
|
|
{
|
|
"name": "Run Extension",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${env:TEMP}/nx-post-support-vscode-debug",
|
|
"${env:TEMP}/nx-post-support-vscode-debug",
|
|
"${env:TEMP}/nx-post-support-vscode-debug/test/test.tcl"
|
|
],
|
|
"cwd": "${env:TEMP}/nx-post-support-vscode-debug",
|
|
"outFiles": ["${env:TEMP}/nx-post-support-vscode-debug/dist/**/*.js"],
|
|
"linux": {
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"${workspaceFolder}",
|
|
"${workspaceFolder}/test/test.tcl"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
|
"resolveSourceMapLocations": [
|
|
"${workspaceFolder}/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
]
|
|
},
|
|
"sourceMaps": true,
|
|
"resolveSourceMapLocations": [
|
|
"${env:TEMP}/nx-post-support-vscode-debug/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
],
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"autoAttachChildProcesses": true,
|
|
"preLaunchTask": "NX Post Support: Compile Debug"
|
|
},
|
|
{
|
|
"name": "Python Attach",
|
|
"type": "debugpy",
|
|
"request": "attach",
|
|
"processId": "${command:pickProcess}",
|
|
"justMyCode": false,
|
|
"presentation": {
|
|
"hidden": false,
|
|
"group": "",
|
|
"order": 3
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Extension (hidden)",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${env:TEMP}/nx-post-support-vscode-debug",
|
|
"${env:TEMP}/nx-post-support-vscode-debug",
|
|
"${env:TEMP}/nx-post-support-vscode-debug/test/test.tcl"
|
|
],
|
|
"cwd": "${env:TEMP}/nx-post-support-vscode-debug",
|
|
"outFiles": ["${env:TEMP}/nx-post-support-vscode-debug/dist/**/*.js"],
|
|
"linux": {
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"${workspaceFolder}",
|
|
"${workspaceFolder}/test/test.tcl"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
|
"resolveSourceMapLocations": [
|
|
"${workspaceFolder}/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
]
|
|
},
|
|
"sourceMaps": true,
|
|
"resolveSourceMapLocations": [
|
|
"${env:TEMP}/nx-post-support-vscode-debug/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
],
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"env": {
|
|
"USE_DEBUGPY": "True",
|
|
"NXPS_DEBUG_HOST": "127.0.0.1",
|
|
"NXPS_DEBUG_PORT": "5678"
|
|
},
|
|
"presentation": {
|
|
"hidden": true,
|
|
"group": "",
|
|
"order": 4
|
|
}
|
|
},
|
|
{
|
|
"name": "Python debug server (hidden)",
|
|
"type": "debugpy",
|
|
"request": "attach",
|
|
"listen": { "host": "127.0.0.1", "port": 5678 },
|
|
"justMyCode": false,
|
|
"logToFile": true,
|
|
"presentation": {
|
|
"hidden": true,
|
|
"group": "",
|
|
"order": 4
|
|
}
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Debug Extension and Python",
|
|
"configurations": ["Python debug server (hidden)", "Debug Extension (hidden)"],
|
|
"stopAll": true,
|
|
"preLaunchTask": "NX Post Support: Compile Debug",
|
|
"presentation": {
|
|
"hidden": false,
|
|
"group": "",
|
|
"order": 1
|
|
}
|
|
}
|
|
]
|
|
}
|