29 Sep 2024 09:33 AM - last edited on 07 Oct 2024 09:51 AM by Michal_Gebacki
Hi all,
Recently i have tried to do develop a python based Extension (V2.0).
I am using VSCode DT integration extension with the extension SDK.
Using the documentation regarding the SDK we managed to developed a working extension that meets our requirements.
The extension contains an activation schema part , which is the user configuration form where he can configure and enter details for extended customization.
Using various extension found on the HUB and many examples from the internet, i almost found everything i needed, except for the following:
inside my endpoint, i want to define a textbox like property. the goal is to allow the user to paste a text which i want to use inside the server as a script.
for example :
i have defined a property whose type is "text", referenced enums, referenced objects and more.
but i could not find any extension/example regarding create a textbox/textarea of some sort.
And i have been told it is possible, but without a definite answer.
Thank you for you help !
Solved! Go to Solution.
29 Sep 2024 10:07 AM
Hi @Roeir5
Here is a part of activationShema.json with text and secret entries
Here is how the entry look from the end point definition side
And here is the the part from __main__.py that collect the information from the endpoints
HTH
Yos
29 Sep 2024 10:50 AM
Hi,
Thank you for the fast response Yossi,
i am familiar with this text property type and also with how to extract data from the endpoint (each activation endpoint contains the activation property, and also is shown inside the API snippet when configuring the extension).
your example for a text object only allows for a single line input and also i was looking for something better in terms of UX/UI for handling multi line text.
I my goal is to create a multi-line text box so i can use it to build a long multi line text inside the agent for the extension purposes.
29 Sep 2024 11:58 AM - edited 29 Sep 2024 12:14 PM
Hi @Roeir5
Stand corrected
Please try if the follows solve your need
Yos