Add Windows dev-host tasks; include tclint builtins; register LIB_CONF_prop_custom_proc_body #55
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
state: Done
state: New
type: Bug
type: Feature
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Christoph/nx_post_support!55
Loading…
Reference in a new issue
No description provided.
Delete branch "ramon_fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This change set adds Windows support for launching the Extension Development Host for debugging, expands the TCL completion command list to include tclint's builtin commands, and registers a new poco plugin handler to parse
LIB_CONF_prop_custom_proc_body.Summary of changes
VS Code debug and task changes
.vscode/start-dev-host.ps1.--inspect-brk-extensions=$InspectPortand forwards the exit code.NXPS_VSCODE_EXEC_PATHenvironment variable and looks up a*.cmdentry in the CLIbindirectory.\\?\prefix from the workspace path to avoid path issues..vscode/tasks.json:NX Post Support: Start Dev Host (Windows)— runs the PowerShell script and setsNXPS_VSCODE_EXEC_PATHfrom${execPath}.NX Post Support: Start Dev Host with debugpy (Windows)— same, withUSE_DEBUGPY,NXPS_DEBUG_HOSTandNXPS_DEBUG_PORTenvironment variables set..vscode/launch.jsonto:windows-specificoutFiles,resolveSourceMapLocations, andpreLaunchTaskentries for the attach configurations.localhostand[::1]in parallel; a refused IPv6 inspector could cause the attach to abort. The new tasks + script open the dev host with a fixed inspector port and the launch configs attach directly to127.0.0.1, avoiding the IPv6 probe failure mode.TCL completion changes
server/src/tools/tcl_command_completion.pynow importstclint.commands.builtin.commandsasTCLINT_BUILTIN_COMMANDSand adds that set toTCL_COMMAND_NAMES.llength,lindex,while). This is driven directly by the updated construction ofTCL_COMMAND_NAMES.poco plugin change
server/src/plugins/poco_plugin.pyadds a_lib_prop_custom_proc_bodyhelper that callsparser.parse_scriptonargs[0]and returns the parsed args.{"LIB_CONF_prop_custom_proc_body": _lib_prop_custom_proc_body}to thecommandstable.LIB_CONF_prop_custom_proc_bodycommand is now parsed (script body is parsed) instead of being left unprocessed.Testing
No test execution results were provided.
Recommended checks for reviewers:
NX Post Support: Start Dev Host (Windows)(or the debugpy variant) and verify the Extension Development Host starts with the inspector on the configured port (default 9333) and that the attach configuration can connect to127.0.0.1.${execPath}(the task setsNXPS_VSCODE_EXEC_PATH) and thatstart-dev-host.ps1finds a*.cmdlauncher in the VS Codebindirectory on the system where you test.TCL_COMMAND_NAMES(or completions in the editor) includes expected builtins (for examplellength,lindex,while).LIB_CONF_prop_custom_proc_bodyhandling in the plugin (unit test or an input that triggers the command) and confirmargs[0]is parsed viaparser.parse_script.Notes / reviewer actions
NXPS_VSCODE_EXEC_PATHenvironment variable being set by the task. The tasks set this to${execPath}; confirm${execPath}resolves correctly in your environment or adjust if needed.start-dev-host.ps1intentionally trims a leading\\?\from long paths and looks for a*.cmdin thebindirectory adjacent to the VS Code executable — please confirm this logic suits your platform's VS Code layout.server/src/plugins/poco_plugin.py; the significant functional addition is_lib_prop_custom_proc_bodyand its registration.If you want, I can extract focused unit-test suggestions or a short checklist to validate the Windows attach flow step-by-step.