Use jsdoc/multiline-blocks instead of multiline-comment-style
Replace multiline-comment-style (starred-block), which also forces multiline // comments into block comments, with jsdoc/multiline-blocks. That rule only enforces starred JSDoc layout for /** blocks (no text on the opening line) and leaves multiline // comments unchanged for internal documentation. Fix multiline JSDoc in Types.ts. Fixes #5899 Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
This commit is contained in:
co-authored by
Daniel Imms
parent
4ec85e67ba
commit
df3422fb0b
@@ -261,10 +261,8 @@ export class SearchEngine {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* This will iterate until we find the line start.
|
||||
* When we find it, we will search using the calculated start column.
|
||||
*/
|
||||
// This will iterate until we find the line start.
|
||||
// When we find it, we will search using the calculated start column.
|
||||
searchPosition.startRow--;
|
||||
searchPosition.startCol += this._terminal.cols;
|
||||
return this._findInLine(term, searchPosition, searchOptions);
|
||||
@@ -317,10 +315,8 @@ export class SearchEngine {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Adjust the row number and search index if needed since a "line" of text can span multiple
|
||||
* rows
|
||||
*/
|
||||
// Adjust the row number and search index if needed since a "line" of text can span multiple
|
||||
// rows
|
||||
let startRowOffset = 0;
|
||||
while (startRowOffset < offsets.length - 1 && resultIndex >= offsets[startRowOffset + 1]) {
|
||||
startRowOffset++;
|
||||
@@ -359,10 +355,8 @@ export class SearchEngine {
|
||||
if (char.length > 1) {
|
||||
offset -= char.length - 1;
|
||||
}
|
||||
/*
|
||||
* Adjust the searchIndex for empty characters following wide unicode
|
||||
* chars (eg. CJK)
|
||||
*/
|
||||
// Adjust the searchIndex for empty characters following wide unicode
|
||||
// chars (eg. CJK)
|
||||
const nextCell = line.getCell(i + 1);
|
||||
if (nextCell && nextCell.getWidth() === 0) {
|
||||
offset++;
|
||||
|
||||
@@ -38,10 +38,8 @@ export class SearchLineCache extends Disposable {
|
||||
private _linesCache: LineCacheEntry[] | undefined;
|
||||
private _linesCacheTimeout = this._register(new MutableDisposable());
|
||||
private _linesCacheDisposables = this._register(new MutableDisposable());
|
||||
/*
|
||||
* Track access to avoid recreating a timeout on every init call which occurs once per search
|
||||
* result (findNext/findPrevious -> _highlightAllMatches -> find loop).
|
||||
*/
|
||||
// Track access to avoid recreating a timeout on every init call which occurs once per search
|
||||
// result (findNext/findPrevious -> _highlightAllMatches -> find loop).
|
||||
private _lastAccessTimestamp = 0;
|
||||
|
||||
constructor(private readonly _terminal: Terminal) {
|
||||
|
||||
Reference in New Issue
Block a user