Closed 4Luke4 closed 5 years ago
there are some conflicts...
Yeah, probably because I forgot to update my fork before committing.....
However, when I click on "Resolve conflicts", it keeps processing weidu.completion.yml
(i.e., it never stops....) Do you have any suggestion?
ctrl-f5? Or you can pull upstream and resolve locally. It's probably choking on replaced dashes
ctrl-f5? Or you can pull upstream and resolve locally. It's probably choking on replaced dashes
Done. Please tell me if I messed up everything.....
Seems that VScode just doesn't support newlines in plain text doc. I think to get it working, we'll need to write the corresponding doc in markdown and add support for this in MLS.
OK, so competion item recognizes markdown natively. But line endings should be marked with "\n", not just "\". And the additional slash at the beginning of the next string is not necessary.
OK, so competion item recognizes markdown natively. But line endings should be marked with "\n", not just "\". And the additional slash at the beginning of the next string is not necessary.
Ok, so basically I need to replace all
\
with\n
, right?
only the trailing ones
only the trailing ones
Done.
Moreover, how can I add BEGIN
, END
, LAF
and LPF
to Autocompletion?
I thought you're comfortable enough with yaml structure already, what's the problem? (In any case, let's keep it separate.)
Also, you might want to take a look at snippets instead or in addition. They allow to insert larger, predefined text blolcks (such as LAF.. INT_VAR ... STR_VAR.. END), and the fill in the blanks easily. Examples here.
And yaml is broken again. See the linter.
And yaml is broken again. See the linter.
VScode highlights nothing for me.... What's exactly the issue?
Looks good now.
@burner1024
Forgot to make the release?
No, just waiting to see if you send any more pulls. Also, some updates for Fallout module are coming soon, I want to batch that.
No, just waiting to see if you send any more pulls. Also, some updates for Fallout module are coming soon, I want to batch that.
I see.
Well, I may add INT_VAR
, STR_VAR
, RET
, BEGIN
and END
to the 'constants' section and try to write down some snippets to automate LAF/LPF invocations......
Released it.
We now have a semi-automatic system to pull Fallout syntax changes. Would be awesome to implement something similar for WeiDU and IESDP.
Also, you might want to take a look at snippets instead or in addition. They allow to insert larger, predefined text blolcks (such as LAF.. INT_VAR ... STR_VAR.. END), and the fill in the blanks easily. Examples here.
So, something like this
{
"LAUNCH_ACTION_FUNCTION": {
"prefix": "LAF",
"body": [
"${1|INT_VAR,STR_VAR,RET|}",
"\t$0",
"END"
],
"description": "Launch an action function."
}
}
{"PATCH_IF": {
"prefix": "PATCH_IF",
"body": [
"PATCH_IF $1 then $0"
],
"description": "PATCH_IF clause"
}
}
?
Moreover, how can I test them? Should I add weidu-ssl.json
in \snippets and put everything there?
So, something like this
Looks ok, but need to test to be sure. You can launch the development version of the extension by pressing F5 in VScode.
@burner1024
Sorry for reviving this, but it seems that some \n
are not functional (look at the attached screenshot).
Do you know why?
I'm not sure, but I was able to get it to work using the the other syntax (doc: |
):
What concerns me more is that markdown is not displayed properly in completion:
Was it always like that?
there are some conflicts...