Compare commits

...

2 Commits

Author SHA1 Message Date
CismonX 229d84bd2d
bugfix: snippet completion for block commands
continuous-integration/drone/push Build is passing Details
2022-02-02 14:53:46 +08:00
CismonX c3e33c3340
Update dependencies 2022-02-02 14:32:45 +08:00
4 changed files with 718 additions and 404 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.

1084
package-lock.json generated

File diff suppressed because it is too large Load Diff

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",
@ -26,20 +26,20 @@
"@types/node": "^14.17.29",
"@types/vscode": "~1.40.0",
"@types/webpack": "^5.28.0",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"cson": "^7.20.0",
"eslint": "^8.1.0",
"eslint": "^8.8.0",
"json": "^11.0.0",
"json5": "^2.2.0",
"language-texinfo": "^1.1.0",
"minify-xml": "^3.2.0",
"minify-xml": "^3.3.1",
"ts-loader": "^9.2.6",
"ts-node": "^10.4.0",
"typescript": "^4.4.4",
"vsce": "^1.100.2",
"webpack": "^5.59.1",
"webpack-cli": "^4.9.1"
"typescript": "^4.5.5",
"vsce": "^2.6.6",
"webpack": "^5.68.0",
"webpack-cli": "^4.9.2"
},
"scripts": {
"vscode:prepublish": "webpack --mode production",

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