vectorgrp / vector-vscode-vcast

A VectorCAST test adapter for VS Code
Other
8 stars 2 forks source link

New implementation for TEST.SUBPROGRAM autocompletion #195

Open Den1552 opened 2 months ago

Den1552 commented 2 months ago

Summary:

This implementation should provide an autocompletion list for TEST.SUBPROGRAM without using the fake TEST.VALUE line described in #170.

Explanation:

Basically, the implementation works. However, we need to answer some questions:

Questions:

1) Passing this argument into getChoiceDataFromPython is straightforward, but how about the "server-side" autocompletion retrieval in getChoiceDataFromServer()?
https://github.com/vectorgrp/vector-vscode-vcast/blob/2992c9ea72a87dcbbf7e3626ea6fcb6e7b5a26b5/server/pythonUtilities.ts#L101

2) What about the SUBPROGRAM-specific autocompletions (<<INIT>>, <<COMPOUND>>, coded_tests_driver)?
Is it all right to add them like that in processSubprogramLines(), or should this also be retrieved from the DataAPI somehow?