-
Notifications
You must be signed in to change notification settings - Fork 377
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
fix: lg editor validation error & intelligence #3816
Conversation
Can you add some details about the cause and the fix to better understand the context |
I can repro the issue without this fix and confirm this PR fixed it. |
intelligence not work is because this line only return templates of current lg file, but we need is allTemplate(include imported file) |
@@ -166,7 +166,8 @@ export class LGServer { | |||
const lgTextFile = lgTextFiles.find((item) => item.id === fileId); | |||
if (lgTextFile) { | |||
const lgFile = lgUtil.parse(lgTextFile.id, lgTextFile.content, lgTextFiles); | |||
return lgUtil.updateTemplate(lgFile, templateId, { body: content }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgUtil.updateTemplate now accept resolver
and return lgFile
, here miss resolver
then diagnostic show imported file not find
* use allTemplate for completion * update worker parse
Description
fix lg editor validation error & intelligence, bug introduced by #3738 & #3337
Task Item
close #3815
close #3812
Screenshots