-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic TD Types not recognized #2
Comments
Hey Ivan! Can you elaborate a bit on the steps that I can take to reproduce this issue? The VsCode extension doesn't really know anything about the basic TD Types. All it's really doing is passing the text of the document currently requesting the completion, the position of the cursor, and a couple other things to the extension. Here's the call in server.ts :
the rest of the heavy lifting is actually done on Touch Designer side. We start by calling a tokenizer function to split the line currently being edited into tokens. The idea was to use a series of regular expressions to parse the code around the line and attempt to return some valuable completions. The expressions that it's currently using can be found in Right now it mostly uses the dir function to pull the completion info to send back to VsCode. I'm not super sure what is meant by all that stuff being in the main locals. cheers! |
Oh I see... you're only doing a code completion thing. I was looking at all the undefined variable warning underlines in the rest of the code. So this line:
Do you know how we can tell VS about predefined Python objects? |
yeah. that's very much correct. That's sort of on the long term road map but potentially a bit more involved than a simple auto-complete engine. I think that it would probably involve writing or extending some sort of linting extension for VsCode or returning Linting markup from TD-Completes Me Normally when I know I'm working on a TD project I just turn off the linting. |
This is super awesome. I'd love to help make this our go-to Python editor tool.
First thing. It doesn't seem to recognize basic TD types, like op, COMP, DAT etc. All that stuff is in the main locals. I've never written an editor extension but I'm into it if you want a hand.
Hit me up at my personal email sunspider@gmail.com
Cheers
Ivan DelSol
Head Python Wizard at Derivative
The text was updated successfully, but these errors were encountered: