assistant-vscode
assistant-vscode copied to clipboard
Add snippet language and name automatically.
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.