Compare commits

...

1 Commits

Author SHA1 Message Date
CismonX ed968839b6
chore: fix typos
ci/woodpecker/push/woodpecker Pipeline was successful Details
2024-04-20 08:34:46 +08:00
4 changed files with 8 additions and 8 deletions

View File

@ -74,8 +74,8 @@ Creative Commons Attribution-ShareAlike 4.0 International License}.
@chapter Overview @chapter Overview
Texinfo is a typesetting language designed for writing software manuals. It's Texinfo is a typesetting language designed for writing software manuals. It's
the official documention format for GNU projects, but not as popular in modern the official documentation format for GNU projects, but not as popular in
non-GNU free software projects. modern non-GNU free software projects.
One of the main reasons is the lack of editor support. While Emacs does offer a One of the main reasons is the lack of editor support. While Emacs does offer a
``texinfo-mode'', however, Emacs is not widely used among average software ``texinfo-mode'', however, Emacs is not widely used among average software
@ -413,7 +413,7 @@ allow @@-commands}, which is not handled in vscode-texinfo due to performance
considerations. For these nodes, this feature does not work. considerations. For these nodes, this feature does not work.
@end quotation @end quotation
To disable this feature and hide the code lenses, switch off the configuation To disable this feature and hide the code lenses, switch off the configuration
item @code{texinfo.enableCodeLens}. item @code{texinfo.enableCodeLens}.
See the Visual Studio Code User Guide for more information about See the Visual Studio Code User Guide for more information about
@ -431,7 +431,7 @@ HTML previews.
can produce before quitting. (@code{--error-limit=NUM}) can produce before quitting. (@code{--error-limit=NUM})
@item @code{texinfo.preview.includePaths}: Array of extra paths to search for @item @code{texinfo.preview.includePaths}: Array of extra paths to search for
@code{@@include} files. (@code{-I PATH}) @code{@@include} files. (@code{-I PATH})
@item @code{texinfo.preview.maxSize}: Max allowed size for the genereated HTML @item @code{texinfo.preview.maxSize}: Max allowed size for the generated HTML
file before it's displayed in the preview. Files larger than this limit will file before it's displayed in the preview. Files larger than this limit will
trigger an error. trigger an error.
@item @code{texinfo.preview.noHeaders}: When enabled, headers and menus are no @item @code{texinfo.preview.noHeaders}: When enabled, headers and menus are no

View File

@ -201,7 +201,7 @@
"texinfo.preview.noValidation": { "texinfo.preview.noValidation": {
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "Supress node cross-reference validation." "description": "Suppress node cross-reference validation."
}, },
"texinfo.preview.variables": { "texinfo.preview.variables": {
"type": "array", "type": "array",

View File

@ -30,7 +30,7 @@ import { FoldingRange, Optional } from '../utils/types';
export default class DocumentSymbolContext export default class DocumentSymbolContext
{ {
get documentSymbols() { get documentSymbols() {
return this._documentSymbols ??= this._calculcateDocumentSymbols(); return this._documentSymbols ??= this._calculateDocumentSymbols();
} }
clear() { clear() {
@ -46,7 +46,7 @@ export default class DocumentSymbolContext
/** /**
* Calculate document symbols based on folding ranges. * Calculate document symbols based on folding ranges.
*/ */
private _calculcateDocumentSymbols() { private _calculateDocumentSymbols() {
const ranges = Array<Optional<FoldingRange>>(this._document.lineCount); const ranges = Array<Optional<FoldingRange>>(this._document.lineCount);
this._documentContext.foldingRange.foldingRanges this._documentContext.foldingRange.foldingRanges
.filter(range => range.kind === undefined) .filter(range => range.kind === undefined)

View File

@ -619,7 +619,7 @@ export default class CompletionItemProvider
'Insert paragraph indentation', 'Insert paragraph indentation',
), ),
...blockCommand('indentedblock', ...blockCommand('indentedblock',
'Indent a block of arbitary text on the left', 'Indent a block of arbitrary text on the left',
), ),
...braceCommand('indicateurl', ...braceCommand('indicateurl',
'Indicate text that is a URL', 'Indicate text that is a URL',