bugfix: snippet completion for block commands
continuous-integration/drone/push Build is passing Details

This commit is contained in:
CismonX 2022-02-02 14:53:46 +08:00
parent c3e33c3340
commit 229d84bd2d
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
4 changed files with 15 additions and 11 deletions

View File

@ -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
View File

@ -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": {

View File

@ -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",

View File

@ -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}`
);
}