Open sarvesh4396 opened 1 year ago
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.
language
plain_text
{ label: 'Fragment 1', value: content, language: 'plain_text' }
language can be fetched from VsCode API window.activeTextEditor?.document.languageId.
window.activeTextEditor?.document.languageId
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 defaultplain_text
.language can be fetched from VsCode API
window.activeTextEditor?.document.languageId
.