Add PSC (.psc) indexing and share TclOO class metadata across files so class definitions discovered via PSC layers can be used for completions, signature help, inlay hints, and "go to definition". Key behavior changes: - Client file watcher now includes *.psc and .vscode launch paths/tests updated to use the postprocessor test folder; .gitignore updated to ignore that folder. - Server watches .psc changes and refreshes a PSC script index; new tools/tcloo_navigation.py exposes tcloo_definition used by the language server to resolve cross-file class/constructor/method definitions. - Language server uses class_snapshot(document.path) when producing TclOO completions, signature help, and inlay hints so resolved class metadata is available across files. Also includes related docs/changelog updates, minor code formatting cleanups, and added tests for PSC/TclOO behavior.
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/postprocessor"
|
|
],
|
|
"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/postprocessor"
|
|
],
|
|
"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/postprocessor"
|
|
],
|
|
"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/postprocessor"
|
|
],
|
|
"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
|
|
}
|
|
}
|
|
]
|
|
}
|