assistant-vscode icon indicating copy to clipboard operation
assistant-vscode copied to clipboard

Add snippet language and name automatically.

Open sarvesh4396 opened this issue 3 years ago • 0 comments

It would be great if the language and name of the snippet were added automatically from the file. and could be changed by the user.

As the language is by default plain_text.

{
          label: 'Fragment 1',
          value: content,
          language: 'plain_text'
 }

language can be fetched from VsCode API window.activeTextEditor?.document.languageId.

sarvesh4396 avatar May 10 '23 07:05 sarvesh4396