bugfix: snippet completion for block commands

primary v0.2.4
CismonX 8 months ago
parent c3e33c3340
commit 229d84bd2d
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
  1. 14
      CHANGELOG.md
  2. 4
      package-lock.json
  3. 4
      package.json
  4. 4
      src/providers/completion_item.ts

@ -1,13 +1,17 @@
<!--
Copyright (C) 2020,2021 CismonX <admin@cismon.net>
Copying and distribution of this file, with or without modification, are
permitted in any medium without royalty, provided the copyright notice and
this notice are preserved. This file is offered as-is, without any warranty.
Copyright (C) 2020,2021,2022 CismonX <admin@cismon.net>
Copying and distribution of this file, with or without modification, are
permitted in any medium without royalty, provided the copyright notice and
this notice are preserved. This file is offered as-is, without any warranty.
-->
# Changelog
## v0.2.4 - 02/02/2022
* Fix a bug which breaks the snippet completion of block commands.
## v0.2.3 - 10/23/2021
* Fix a bug which prevents diagnostic info from displaying correctly in GNU Texinfo 6.8, and on Windows platform.

4
package-lock.json generated

@ -1,12 +1,12 @@
{
"_copyrightNotice": [
"Copyright (C) 2020,2021 CismonX <admin@cismon.net>",
"Copyright (C) 2020,2021,2022 CismonX <admin@cismon.net>",
"Copying and distribution of this file, with or without modification,",
"are permitted in any medium without royalty, provided the copyright notice and this notice are preserved.",
"This file is offered as-is, without any warranty."
],
"name": "texinfo",
"version": "0.2.3",
"version": "0.2.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

@ -1,6 +1,6 @@
{
"_copyrightNotice": [
"Copyright (C) 2020,2021 CismonX <admin@cismon.net>",
"Copyright (C) 2020,2021,2022 CismonX <admin@cismon.net>",
"Copying and distribution of this file, with or without modification,",
"are permitted in any medium without royalty, provided the copyright notice and this notice are preserved.",
"This file is offered as-is, without any warranty."
@ -9,7 +9,7 @@
"displayName": "Texinfo Language Support",
"description": "Texinfo language support for Visual Studio Code",
"publisher": "cismonx",
"version": "0.2.3",
"version": "0.2.4",
"author": {
"name": "CismonX",
"email": "admin@cismon.net",

@ -1,7 +1,7 @@
/**
* providers/completion_item.ts
*
* Copyright (C) 2020,2021 CismonX <admin@cismon.net>
* Copyright (C) 2020,2021,2022 CismonX <admin@cismon.net>
*
* This file is part of vscode-texinfo.
*
@ -1351,7 +1351,7 @@ function blockSnippet(name: string, detail: string, ...args: string[]) {
.join(' ');
return snippet(name, name, detail, 0,
`@${name} ${args.join(' ')}\n\n@end ${name}`,
name + args.length ? ' ' : '' + argsIndexed +
name + (args.length ? ' ' : '') + argsIndexed +
`\n$${args.length + 1}\n@end ${name}`
);
}

Loading…
Cancel
Save