-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enhancement suggestion: intellisense #1
Comments
This is something I've already considered and would like to add in the future. However, I don't know much about how it works and how long it would take. |
Add snippets for "if", "while", "repeat", and "for" statements
Maybe this could be of help: http://github.com/nineteendo/tmlx/tree/main/Extension const suggestions = ['black', 'blue', 'color', 'cyan', 'green', 'magenta', 'red', 'white', 'yellow'].map<CompletionItem>(label => {
return {
label,
kind: CompletionItemKind.Constant,
};
}).concat(['down', 'left', 'right', 'up', 'write'].map(label => {
return {
label,
kind: CompletionItemKind.Function,
};
})).concat(['else', 'exit', 'goto', 'if', 'while'].map(label => {
return {
label,
kind: CompletionItemKind.Keyword,
};
})); Though we'll have to decide whether we use snippets for functions or not. |
Any updates? |
I'm currently pretty busy right now with other stuff and I'm working on importing / exporting in #4 as well, so this is lower priority. I'll make the change to the snippets but since I'm changing some token formats to match this I feel like it makes sense to wait to work on this until after that is done. Thanks for providing the examples though, that will certainly come in handy when I get around to it :) |
You don't have to add this if you don't want to, I just thought it would be a nice addition to the extension :)
The text was updated successfully, but these errors were encountered: