You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When expanding a code snippet for type (e.g. class), typeComment is not applied in the generated code. typeComment is only applied for types created by the LSP
Please make it such that java.templates.typeComment is also applied for type snippets provided by the LSP
The text was updated successfully, but these errors were encountered:
publicstaticfinalStringCODETEMPLATE_CLASSSNIPPET_PUBLIC = "${filecomment}${package_header}/**\n * ${type_name}\n */\npublic class ${type_name} {\n\n\t${cursor}\n}";
. Currently it's just set so that the type comment for class is just /**\n * ${type_name}\n */. We should probably add some new variable ${typeComment} and then when we use that "template", make sure to set it based on the what the client passes in settings at :
Basically do the same thing that happens for file comments.
We should also make sure that things that create new files through server-side resource operations populate the new file correctly.
rgrunber
changed the title
Use java.templates.typeComment on code snippet for type
Use java.templates.typeComment on code snippet for "class"
Oct 4, 2024
When expanding a code snippet for type (e.g. class), typeComment is not applied in the generated code. typeComment is only applied for types created by the LSP
Please make it such that
java.templates.typeComment
is also applied for type snippets provided by the LSPThe text was updated successfully, but these errors were encountered: