Skip to content

Commit 0c02627

Browse files
committed
Fixes lint issues
1 parent 5d00f7a commit 0c02627

17 files changed

Lines changed: 28 additions & 30 deletions

File tree

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26519,6 +26519,11 @@
2651926519
"when": "listMultiSelection && webview == gitlens.views.commitDetails && webviewItemsUnion =~ /gitlens:file\\b(?=.*?\\b\\+unstaged\\b)(?!.*?\\b\\+(committed|stashed)\\b)/",
2652026520
"group": "1_gitlens_actions@1"
2652126521
},
26522+
{
26523+
"command": "gitlens.views.stageFile.multi:graphDetails",
26524+
"when": "webviewItemsUnion =~ /gitlens:file\\b(?=.*?\\b\\+unstaged\\b)(?!.*?\\b\\+(committed|stashed)\\b)/ && listMultiSelection && (webview == gitlens.graph || webview == gitlens.views.graph)",
26525+
"group": "1_gitlens_actions@1"
26526+
},
2652226527
{
2652326528
"command": "gitlens.graph.pull",
2652426529
"when": "webviewItem =~ /gitlens:branch\\b(?=.*?\\b\\+(behind|tracking)\\b)(?!.*?\\b\\+closed\\b)/ && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && gitlens:repos:withRemotes",
@@ -26899,11 +26904,6 @@
2689926904
"when": "webviewItem =~ /gitlens:file\\b(?=.*?\\b\\+unstaged\\b)/ && (webview == gitlens.graph || webview == gitlens.views.graph)",
2690026905
"group": "1_gitlens_actions@1"
2690126906
},
26902-
{
26903-
"command": "gitlens.views.stageFile.multi:graphDetails",
26904-
"when": "webviewItemsUnion =~ /gitlens:file\\b(?=.*?\\b\\+unstaged\\b)(?!.*?\\b\\+(committed|stashed)\\b)/ && listMultiSelection && (webview == gitlens.graph || webview == gitlens.views.graph)",
26905-
"group": "1_gitlens_actions@1"
26906-
},
2690726907
{
2690826908
"command": "gitlens.views.mergeChangesWithWorking:commitDetails",
2690926909
"when": "webviewItem =~ /gitlens:file\\b(?=.*?\\b\\+stashed\\b)(?!.*?\\+submodule)/ && webview == gitlens.views.commitDetails",

packages/git-cli/src/providers/__tests__/integration/config.measure.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ suite('ConfigSubProvider (bulk gk read)', () => {
7878
}
7979
const configSpawns = countSince(mark, 'config');
8080

81-
// eslint-disable-next-line no-console
8281
console.error(`[measure] cold gk overview read → ${configSpawns} \`git config\` spawn(s) (was 4)`);
8382
assert.strictEqual(configSpawns, 1, 'expected one bulk gk read, not one per namespace');
8483
});

src/quickpicks/worktreePicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Disposable } from 'vscode';
22
import { window } from 'vscode';
33
import type { GitWorktree } from '@gitlens/git/models/worktree.js';
4-
import { createWorktreeQuickPickItem } from '../git/utils/-webview/worktree.quickpick.js';
54
import type { WorktreeQuickPickItem } from '../git/utils/-webview/worktree.quickpick.js';
5+
import { createWorktreeQuickPickItem } from '../git/utils/-webview/worktree.quickpick.js';
66
import { getQuickPickIgnoreFocusOut } from '../system/-webview/vscode.js';
77

88
export async function showWorktreePicker(

src/webviews/apps/commitDetails/components/gl-details-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import type { GitFileChangeShape } from '@gitlens/git/models/fileChange.js';
66
import type { FileShowOptions, Preferences, State } from '../../../commitDetails/protocol.js';
77
import type { OpenMultipleChangesArgs } from '../../shared/actions/file.js';
88
import { renderCommitStatsIcons } from '../../shared/components/commit/commit-stats.js';
9-
import { ContextMenuProxyController } from '../../shared/controllers/context-menu-proxy.js';
109
import type { TreeItemAction, TreeItemBase } from '../../shared/components/tree/base.js';
10+
import { ContextMenuProxyController } from '../../shared/controllers/context-menu-proxy.js';
1111
import { detailsBaseStyles } from './gl-details-base.css.js';
1212
import '../../shared/components/code-icon.js';
1313
import '../../shared/components/tree/gl-file-tree-pane.js';

src/webviews/apps/commitDetails/components/gl-details-commit-panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import type {
2424
} from '../../../plus/graph/protocol.js';
2525
import type { RunningOperationExecState } from '../../plus/graph/components/detailsState.js';
2626
import { renderLearnAboutAutolinks } from '../../shared/components/chips/learn-about-autolinks.js';
27-
import type { NavigationState } from '../../shared/controllers/navigationStack.js';
2827
import type { TreeItemAction, TreeItemBase } from '../../shared/components/tree/base.js';
2928
import { ModifierKeysController } from '../../shared/controllers/modifier-keys.js';
29+
import type { NavigationState } from '../../shared/controllers/navigationStack.js';
3030
import { detailsBaseStyles } from './gl-details-base.css.js';
3131
import type { File } from './gl-details-base.js';
3232
import { GlDetailsBase } from './gl-details-base.js';

src/webviews/apps/commitDetails/components/gl-details-wip-panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ export class GlDetailsWipPanel extends GlDetailsBase {
798798

799799
// Start a new batch when none is pending or the action flips (check vs uncheck); the fan-out
800800
// applies a single action across the whole selection, so a batch is action-homogeneous.
801-
if (this._checkedBatch == null || this._checkedBatch.checked !== e.detail.checked) {
801+
if (this._checkedBatch?.checked !== e.detail.checked) {
802802
this._checkedBatch = { checked: e.detail.checked, repoPath: repoPath, files: [] };
803803
queueMicrotask(() => this.flushCheckedBatch());
804804
}

src/webviews/apps/plus/graph/components/gl-details-wip-header.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import type { Wip } from '../../../../plus/graph/detailsProtocol.js';
88
import type { BranchMergeTargetStatus } from '../../../../rpc/services/branches.js';
99
import type { OverviewBranchIssue, OverviewBranchPullRequest } from '../../../../shared/overviewBranches.js';
1010
import { elementBase, metadataBarVarsBase } from '../../../shared/components/styles/lit/base.css.js';
11-
import type { NavigationState } from '../../../shared/controllers/navigationStack.js';
1211
import type { WebviewContext } from '../../../shared/contexts/webview.js';
1312
import { webviewContext } from '../../../shared/contexts/webview.js';
13+
import type { NavigationState } from '../../../shared/controllers/navigationStack.js';
1414
import type { RunningOperationExecState } from './detailsState.js';
1515
import { detailsWipHeaderStyles } from './gl-details-wip-header.css.js';
1616
import '../../shared/components/merge-rebase-status.js';

src/webviews/apps/plus/graph/graph-wrapper/graph-wrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ import { customElement, property, query, state } from 'lit/decorators.js';
1616
import { ifDefined } from 'lit/directives/if-defined.js';
1717
import type { GitGraphRowType } from '@gitlens/git/models/graph.js';
1818
import { uncommitted } from '@gitlens/git/models/revision.js';
19-
import type { GraphBranchesVisibility } from '../../../../../config.js';
2019
import type { GitCommitReachability } from '@gitlens/git/providers/commits.js';
2120
import { areEqual as areArraysEqual, filterMap } from '@gitlens/utils/array.js';
2221
import { getCssMixedColorValue, getCssOpacityColorValue, getCssVariable } from '@gitlens/utils/color.js';
2322
import { debounce } from '@gitlens/utils/debounce.js';
2423
import { areEqual, hasKeys } from '@gitlens/utils/object.js';
24+
import type { GraphBranchesVisibility } from '../../../../../config.js';
2525
import type { CommitDetails } from '../../../../commitDetails/protocol.js';
2626
import type {
2727
GraphAvatars,
@@ -61,6 +61,7 @@ import { pickWipRowAgentStatus } from '../components/wipRowAgentStatus.js';
6161
import { graphStateContext } from '../context.js';
6262
import type { GraphCrossPaneState } from '../graphCrossPaneState.js';
6363
import { graphCrossPaneContext } from '../graphCrossPaneState.js';
64+
import { getOverviewBranchSelectionSha } from '../utils/branchSelection.utils.js';
6465
import { getSelectedRepoPath } from '../utils/repository.utils.js';
6566
import {
6667
isUnpublishedRow,
@@ -69,7 +70,6 @@ import {
6970
serializeRowCommitContext,
7071
serializeWipContext,
7172
} from '../utils/rowContext.utils.js';
72-
import { getOverviewBranchSelectionSha } from '../utils/branchSelection.utils.js';
7373
import { pickScopePageTarget } from '../utils/scopePaging.utils.js';
7474
import { filterSecondariesForScopeAndVisibility, shouldShowPrimaryWipRow } from '../utils/wip.utils.js';
7575
import type { GlGraph } from './gl-graph.js';

src/webviews/apps/shared/components/progress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { css, html, LitElement } from 'lit';
21
import type { PropertyValues } from 'lit';
2+
import { css, html, LitElement } from 'lit';
33
import { customElement, property } from 'lit/decorators.js';
44

55
@customElement('progress-indicator')

src/webviews/apps/shared/controllers/__tests__/collection-index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function fakeHost(): ReactiveControllerHost {
88
removeController: () => undefined,
99
requestUpdate: () => undefined,
1010
updateComplete: Promise.resolve(true),
11-
} as unknown as ReactiveControllerHost;
11+
};
1212
}
1313

1414
interface Row {

0 commit comments

Comments
 (0)