Skip to content

Commit 5966cea

Browse files
committed
Replace VSCodeTextField for VscodeTextfield
1 parent 73c38ae commit 5966cea

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

extensions/ql-vscode/src/view/common/SearchBox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useCallback } from "react";
22
import { styled } from "styled-components";
3-
import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react";
3+
import { VscodeTextfield } from "@vscode-elements/react-elements";
44
import { Codicon } from "./icon";
55

6-
const TextField = styled(VSCodeTextField)`
6+
const TextField = styled(VscodeTextfield)`
77
width: 100%;
88
`;
99

extensions/ql-vscode/src/view/common/SuggestBox/SuggestBox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ import {
1414
useRole,
1515
} from "@floating-ui/react";
1616
import { css, styled } from "styled-components";
17-
import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react";
1817
import type { Option } from "./options";
1918
import { findMatchingOptions } from "./options";
2019
import { SuggestBoxItem } from "./SuggestBoxItem";
2120
import { LabelText } from "./LabelText";
2221
import type { Diagnostic } from "./diagnostics";
2322
import { useOpenKey } from "./useOpenKey";
23+
import { VscodeTextfield } from "@vscode-elements/react-elements";
2424

25-
const Input = styled(VSCodeTextField)<{ $error: boolean }>`
25+
const Input = styled(VscodeTextfield)<{ $error: boolean }>`
2626
width: 100%;
2727
font-family: var(--vscode-editor-font-family);
2828
@@ -96,7 +96,7 @@ export type SuggestBoxProps<
9696

9797
/**
9898
* Can be used to render a different component for the input. This is used
99-
* in testing to use default HTML components rather than the VSCodeTextField
99+
* in testing to use default HTML components rather than the VscodeTextfield
100100
* for easier testing.
101101
* @param props The props returned by `getReferenceProps` of {@link useInteractions}
102102
*/

extensions/ql-vscode/src/view/compare-performance/RenamingInput.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { ChangeEvent } from "react";
22
import { styled } from "styled-components";
3-
import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react";
4-
import { VscodeButton } from "@vscode-elements/react-elements";
3+
import { VscodeButton, VscodeTextfield } from "@vscode-elements/react-elements";
54
import { Codicon } from "../common";
65

76
export class Renaming {
@@ -23,7 +22,7 @@ function tryCompilePattern(pattern: string): RegExp | undefined {
2322
}
2423
}
2524

26-
const Input = styled(VSCodeTextField)`
25+
const Input = styled(VscodeTextfield)`
2726
width: 20em;
2827
`;
2928

extensions/ql-vscode/src/view/model-editor/ModelTypeTextbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type {
44
ModeledMethod,
55
TypeModeledMethod,
66
} from "../../model-editor/modeled-method";
7-
import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react";
87
import { useDebounceCallback } from "../common/useDebounceCallback";
8+
import { VscodeTextfield } from "@vscode-elements/react-elements";
99

1010
type Props = {
1111
modeledMethod: TypeModeledMethod;
@@ -53,7 +53,7 @@ export const ModelTypeTextbox = ({
5353
);
5454

5555
return (
56-
<VSCodeTextField
56+
<VscodeTextfield
5757
value={value}
5858
onInput={handleChange}
5959
onClick={stopClickPropagation}

0 commit comments

Comments
 (0)