We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ee16f8 commit b04ecc9Copy full SHA for b04ecc9
1 file changed
extensions/ql-vscode/src/view/model-editor/HiddenMethodsRow.tsx
@@ -4,6 +4,7 @@ import {
4
} from "@vscode/webview-ui-toolkit/react";
5
import * as React from "react";
6
import { styled } from "styled-components";
7
+import { pluralize } from "../../common/word";
8
9
const HiddenMethodsCell = styled(VSCodeDataGridCell)`
10
text-align: center;
@@ -26,7 +27,8 @@ export function HiddenMethodsRow({
26
27
<VSCodeDataGridRow>
28
<HiddenMethodsCell gridColumn="span 5">
29
{someMethodsAreVisible && "And "}
- {numHiddenMethods} methods modeled in other CodeQL packs
30
+ {pluralize(numHiddenMethods, "method", "methods")} modeled in other
31
+ CodeQL packs
32
</HiddenMethodsCell>
33
</VSCodeDataGridRow>
34
);
0 commit comments