From 74568b86b1335239dc53e43cfafde7f21ca9b6c4 Mon Sep 17 00:00:00 2001 From: Koen Vlaswinkel Date: Fri, 22 Dec 2023 11:47:25 +0100 Subject: [PATCH] Remove unnecessary React imports from view code --- extensions/ql-vscode/src/view/common/Alert.tsx | 1 - .../src/view/common/CodePaths/CodeFlowsDropdown.tsx | 1 - extensions/ql-vscode/src/view/common/CodePaths/CodePath.tsx | 2 -- extensions/ql-vscode/src/view/common/CodePaths/CodePaths.tsx | 1 - .../ql-vscode/src/view/common/CodePaths/ThreadPath.tsx | 1 - .../src/view/common/CodePaths/__tests__/CodePaths.spec.tsx | 1 - extensions/ql-vscode/src/view/common/DataGrid.tsx | 1 - .../ql-vscode/src/view/common/DeterminateProgressRing.tsx | 1 - extensions/ql-vscode/src/view/common/Dropdown.tsx | 1 - .../src/view/common/FileCodeSnippet/CodeSnippetCode.tsx | 1 - .../src/view/common/FileCodeSnippet/CodeSnippetLine.tsx | 1 - .../src/view/common/FileCodeSnippet/CodeSnippetMessage.tsx | 1 - .../src/view/common/FileCodeSnippet/FileCodeSnippet.tsx | 1 - extensions/ql-vscode/src/view/common/RawNumberValue.tsx | 1 - extensions/ql-vscode/src/view/common/ReadonlyDropdown.tsx | 1 - extensions/ql-vscode/src/view/common/StarCount.tsx | 1 - extensions/ql-vscode/src/view/common/TextButton.tsx | 1 - .../ql-vscode/src/view/common/__tests__/Alert.spec.tsx | 1 - .../ql-vscode/src/view/common/__tests__/StarCount.spec.tsx | 1 - extensions/ql-vscode/src/view/common/icon/Codicon.tsx | 1 - extensions/ql-vscode/src/view/common/icon/ErrorIcon.tsx | 1 - extensions/ql-vscode/src/view/common/icon/LoadingIcon.tsx | 1 - extensions/ql-vscode/src/view/common/icon/SuccessIcon.tsx | 1 - extensions/ql-vscode/src/view/common/icon/WarningIcon.tsx | 1 - extensions/ql-vscode/src/view/compare/Compare.tsx | 1 - extensions/ql-vscode/src/view/compare/CompareSelector.tsx | 2 -- extensions/ql-vscode/src/view/compare/CompareTable.tsx | 2 -- .../src/view/compare/InterpretedCompareResultTable.tsx | 1 - .../ql-vscode/src/view/compare/RawCompareResultTable.tsx | 1 - extensions/ql-vscode/src/view/compare/index.tsx | 1 - .../ql-vscode/src/view/data-flow-paths/DataFlowPaths.tsx | 5 ++--- .../ql-vscode/src/view/data-flow-paths/DataFlowPathsView.tsx | 1 - .../view/data-flow-paths/__tests__/DataFlowPaths.spec.tsx | 1 - .../data-flow-paths/__tests__/DataFlowPathsView.spec.tsx | 1 - extensions/ql-vscode/src/view/data-flow-paths/index.tsx | 1 - .../src/view/method-modeling/MethodAlreadyModeled.tsx | 1 - .../ql-vscode/src/view/method-modeling/MethodModeling.tsx | 1 - .../src/view/method-modeling/MethodModelingInputs.tsx | 1 - .../src/view/method-modeling/MethodModelingView.tsx | 1 - .../src/view/method-modeling/ModeledMethodAlert.tsx | 1 - .../src/view/method-modeling/MultipleModeledMethodsPanel.tsx | 1 - .../ql-vscode/src/view/method-modeling/NoMethodSelected.tsx | 1 - .../ql-vscode/src/view/method-modeling/NotInModelingMode.tsx | 1 - .../src/view/method-modeling/ReviewInEditorButton.tsx | 1 - .../view/method-modeling/__tests__/MethodModeling.spec.tsx | 1 - .../method-modeling/__tests__/MethodModelingInputs.spec.tsx | 1 - .../__tests__/MultipleModeledMethodsPanel.spec.tsx | 1 - extensions/ql-vscode/src/view/method-modeling/index.tsx | 1 - .../ql-vscode/src/view/model-editor/HiddenMethodsRow.tsx | 1 - .../ql-vscode/src/view/model-editor/InProgressDropdown.tsx | 1 - extensions/ql-vscode/src/view/model-editor/LibraryRow.tsx | 1 - .../src/view/model-editor/MethodClassifications.tsx | 1 - extensions/ql-vscode/src/view/model-editor/MethodName.tsx | 1 - extensions/ql-vscode/src/view/model-editor/MethodRow.tsx | 1 - extensions/ql-vscode/src/view/model-editor/ModelEditor.tsx | 1 - .../ql-vscode/src/view/model-editor/ModelInputDropdown.tsx | 1 - .../ql-vscode/src/view/model-editor/ModelKindDropdown.tsx | 1 - .../ql-vscode/src/view/model-editor/ModelOutputDropdown.tsx | 1 - .../ql-vscode/src/view/model-editor/ModelTypeDropdown.tsx | 1 - .../src/view/model-editor/ModeledMethodDataGrid.tsx | 1 - .../ql-vscode/src/view/model-editor/ModeledMethodsList.tsx | 1 - .../src/view/model-editor/ModelingStatusIndicator.tsx | 1 - .../view/model-editor/__tests__/HiddenMethodsRow.spec.tsx | 1 - .../src/view/model-editor/__tests__/LibraryRow.spec.tsx | 1 - .../src/view/model-editor/__tests__/MethodName.spec.tsx | 1 - .../src/view/model-editor/__tests__/MethodRow.spec.tsx | 1 - .../view/model-editor/__tests__/ModelKindDropdown.spec.tsx | 1 - .../model-editor/__tests__/ModeledMethodDataGrid.spec.tsx | 1 - .../view/model-editor/__tests__/ModeledMethodsList.spec.tsx | 1 - .../model-editor/__tests__/ModelingStatusIndicator.spec.tsx | 1 - extensions/ql-vscode/src/view/model-editor/index.tsx | 1 - extensions/ql-vscode/src/view/results/AlertTable.tsx | 1 - .../src/view/results/AlertTableDropdownIndicatorCell.tsx | 1 - extensions/ql-vscode/src/view/results/AlertTableHeader.tsx | 1 - .../ql-vscode/src/view/results/AlertTableNoResults.tsx | 1 - .../ql-vscode/src/view/results/AlertTablePathNodeRow.tsx | 1 - extensions/ql-vscode/src/view/results/AlertTablePathRow.tsx | 1 - .../ql-vscode/src/view/results/AlertTableResultRow.tsx | 1 - .../src/view/results/AlertTableTruncatedMessage.tsx | 2 -- .../ql-vscode/src/view/results/EmptyQueryResultsMessage.tsx | 1 - extensions/ql-vscode/src/view/results/Graph.tsx | 1 - .../ql-vscode/src/view/results/ProblemsViewCheckbox.tsx | 1 - extensions/ql-vscode/src/view/results/RawTable.tsx | 1 - extensions/ql-vscode/src/view/results/RawTableHeader.tsx | 2 -- extensions/ql-vscode/src/view/results/RawTableRow.tsx | 1 - extensions/ql-vscode/src/view/results/RawTableValue.tsx | 2 -- extensions/ql-vscode/src/view/results/ResultCount.tsx | 1 - extensions/ql-vscode/src/view/results/ResultTable.tsx | 1 - extensions/ql-vscode/src/view/results/ResultTables.tsx | 1 - extensions/ql-vscode/src/view/results/ResultTablesHeader.tsx | 5 ++--- extensions/ql-vscode/src/view/results/ResultsApp.tsx | 5 ++--- .../ql-vscode/src/view/results/__tests__/results.spec.tsx | 1 - extensions/ql-vscode/src/view/results/index.tsx | 1 - .../src/view/results/locations/ClickableLocation.tsx | 1 - extensions/ql-vscode/src/view/results/locations/Location.tsx | 1 - .../src/view/results/locations/NonClickableLocation.tsx | 2 -- .../ql-vscode/src/view/results/locations/SarifLocation.tsx | 1 - .../src/view/results/locations/SarifMessageWithLocations.tsx | 1 - extensions/ql-vscode/src/view/results/octicons.tsx | 1 - .../src/view/variant-analysis/AnalysisAlertResult.tsx | 1 - .../src/view/variant-analysis/AnalyzedRepoItemContent.tsx | 1 - .../src/view/variant-analysis/FailureReasonAlert.tsx | 1 - .../ql-vscode/src/view/variant-analysis/QueryDetails.tsx | 1 - .../ql-vscode/src/view/variant-analysis/RawResultCell.tsx | 1 - .../ql-vscode/src/view/variant-analysis/RawResultRow.tsx | 1 - .../ql-vscode/src/view/variant-analysis/RawResultsTable.tsx | 1 - extensions/ql-vscode/src/view/variant-analysis/RepoRow.tsx | 1 - .../src/view/variant-analysis/RepositoriesFilter.tsx | 1 - .../src/view/variant-analysis/RepositoriesResultFormat.tsx | 1 - .../src/view/variant-analysis/RepositoriesSearch.tsx | 1 - .../src/view/variant-analysis/RepositoriesSearchSortRow.tsx | 1 - .../ql-vscode/src/view/variant-analysis/RepositoriesSort.tsx | 1 - extensions/ql-vscode/src/view/variant-analysis/StatItem.tsx | 1 - .../ql-vscode/src/view/variant-analysis/VariantAnalysis.tsx | 1 - .../src/view/variant-analysis/VariantAnalysisActions.tsx | 1 - .../view/variant-analysis/VariantAnalysisAnalyzedRepos.tsx | 1 - .../src/view/variant-analysis/VariantAnalysisHeader.tsx | 1 - .../src/view/variant-analysis/VariantAnalysisLoading.tsx | 1 - .../view/variant-analysis/VariantAnalysisOutcomePanels.tsx | 1 - .../variant-analysis/VariantAnalysisRepositoriesStats.tsx | 1 - .../VariantAnalysisSkippedRepositoriesTab.tsx | 1 - .../src/view/variant-analysis/VariantAnalysisStats.tsx | 1 - .../src/view/variant-analysis/VariantAnalysisStatusStats.tsx | 1 - .../__tests__/AnalyzedRepoItemContent.spec.tsx | 1 - .../view/variant-analysis/__tests__/QueryDetails.spec.tsx | 1 - .../src/view/variant-analysis/__tests__/RepoRow.spec.tsx | 1 - .../view/variant-analysis/__tests__/VariantAnalysis.spec.tsx | 1 - .../__tests__/VariantAnalysisActions.spec.tsx | 1 - .../__tests__/VariantAnalysisAnalyzedRepos.spec.tsx | 1 - .../__tests__/VariantAnalysisLoading.spec.tsx | 1 - .../__tests__/VariantAnalysisOutcomePanels.spec.tsx | 1 - .../__tests__/VariantAnalysisSkippedRepositoriesTab.spec.tsx | 1 - .../variant-analysis/__tests__/VariantAnalysisStats.spec.tsx | 1 - .../__tests__/VariantAnalysisStatusStats.spec.tsx | 1 - extensions/ql-vscode/src/view/variant-analysis/index.tsx | 1 - extensions/ql-vscode/src/view/webview.tsx | 1 - 136 files changed, 6 insertions(+), 149 deletions(-) diff --git a/extensions/ql-vscode/src/view/common/Alert.tsx b/extensions/ql-vscode/src/view/common/Alert.tsx index 3adae5912..8132adc16 100644 --- a/extensions/ql-vscode/src/view/common/Alert.tsx +++ b/extensions/ql-vscode/src/view/common/Alert.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ReactNode } from "react"; import { styled } from "styled-components"; diff --git a/extensions/ql-vscode/src/view/common/CodePaths/CodeFlowsDropdown.tsx b/extensions/ql-vscode/src/view/common/CodePaths/CodeFlowsDropdown.tsx index 3f08b8cd6..175dd6933 100644 --- a/extensions/ql-vscode/src/view/common/CodePaths/CodeFlowsDropdown.tsx +++ b/extensions/ql-vscode/src/view/common/CodePaths/CodeFlowsDropdown.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ChangeEvent, SetStateAction, useCallback } from "react"; import { VSCodeDropdown, VSCodeOption } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/common/CodePaths/CodePath.tsx b/extensions/ql-vscode/src/view/common/CodePaths/CodePath.tsx index 1e83dbe52..7483a8973 100644 --- a/extensions/ql-vscode/src/view/common/CodePaths/CodePath.tsx +++ b/extensions/ql-vscode/src/view/common/CodePaths/CodePath.tsx @@ -1,5 +1,3 @@ -import * as React from "react"; - import { AnalysisMessage, CodeFlow, diff --git a/extensions/ql-vscode/src/view/common/CodePaths/CodePaths.tsx b/extensions/ql-vscode/src/view/common/CodePaths/CodePaths.tsx index 61412ca33..2b1633b6f 100644 --- a/extensions/ql-vscode/src/view/common/CodePaths/CodePaths.tsx +++ b/extensions/ql-vscode/src/view/common/CodePaths/CodePaths.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { VSCodeLink } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/common/CodePaths/ThreadPath.tsx b/extensions/ql-vscode/src/view/common/CodePaths/ThreadPath.tsx index 943218f57..86c88c22c 100644 --- a/extensions/ql-vscode/src/view/common/CodePaths/ThreadPath.tsx +++ b/extensions/ql-vscode/src/view/common/CodePaths/ThreadPath.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { VSCodeTag } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/common/CodePaths/__tests__/CodePaths.spec.tsx b/extensions/ql-vscode/src/view/common/CodePaths/__tests__/CodePaths.spec.tsx index 5562ef80f..63225749a 100644 --- a/extensions/ql-vscode/src/view/common/CodePaths/__tests__/CodePaths.spec.tsx +++ b/extensions/ql-vscode/src/view/common/CodePaths/__tests__/CodePaths.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { userEvent } from "@testing-library/user-event"; import { CodePaths, CodePathsProps } from "../CodePaths"; diff --git a/extensions/ql-vscode/src/view/common/DataGrid.tsx b/extensions/ql-vscode/src/view/common/DataGrid.tsx index 761f72067..ed681090d 100644 --- a/extensions/ql-vscode/src/view/common/DataGrid.tsx +++ b/extensions/ql-vscode/src/view/common/DataGrid.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ReactNode, forwardRef } from "react"; import { styled } from "styled-components"; diff --git a/extensions/ql-vscode/src/view/common/DeterminateProgressRing.tsx b/extensions/ql-vscode/src/view/common/DeterminateProgressRing.tsx index 9c411263c..b43509192 100644 --- a/extensions/ql-vscode/src/view/common/DeterminateProgressRing.tsx +++ b/extensions/ql-vscode/src/view/common/DeterminateProgressRing.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; type Props = { diff --git a/extensions/ql-vscode/src/view/common/Dropdown.tsx b/extensions/ql-vscode/src/view/common/Dropdown.tsx index 4ab363dd5..9996704ef 100644 --- a/extensions/ql-vscode/src/view/common/Dropdown.tsx +++ b/extensions/ql-vscode/src/view/common/Dropdown.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ChangeEvent } from "react"; import { styled } from "styled-components"; diff --git a/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetCode.tsx b/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetCode.tsx index 53f4a77ad..26f13ebe3 100644 --- a/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetCode.tsx +++ b/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetCode.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { HighlightedRegion } from "../../../variant-analysis/shared/analysis-result"; diff --git a/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetLine.tsx b/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetLine.tsx index d15cd5051..1043838c1 100644 --- a/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetLine.tsx +++ b/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetLine.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { diff --git a/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetMessage.tsx b/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetMessage.tsx index 8759f5bb1..8928315fa 100644 --- a/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetMessage.tsx +++ b/extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetMessage.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { VSCodeLink } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/common/FileCodeSnippet/FileCodeSnippet.tsx b/extensions/ql-vscode/src/view/common/FileCodeSnippet/FileCodeSnippet.tsx index 27e22ff36..0a563767e 100644 --- a/extensions/ql-vscode/src/view/common/FileCodeSnippet/FileCodeSnippet.tsx +++ b/extensions/ql-vscode/src/view/common/FileCodeSnippet/FileCodeSnippet.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { VSCodeLink } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/common/RawNumberValue.tsx b/extensions/ql-vscode/src/view/common/RawNumberValue.tsx index 0744ffa9c..34fc7a6de 100644 --- a/extensions/ql-vscode/src/view/common/RawNumberValue.tsx +++ b/extensions/ql-vscode/src/view/common/RawNumberValue.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { formatDecimal } from "../../common/number"; diff --git a/extensions/ql-vscode/src/view/common/ReadonlyDropdown.tsx b/extensions/ql-vscode/src/view/common/ReadonlyDropdown.tsx index 912a62fde..3e8745b53 100644 --- a/extensions/ql-vscode/src/view/common/ReadonlyDropdown.tsx +++ b/extensions/ql-vscode/src/view/common/ReadonlyDropdown.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useMemo } from "react"; import { Dropdown } from "./Dropdown"; diff --git a/extensions/ql-vscode/src/view/common/StarCount.tsx b/extensions/ql-vscode/src/view/common/StarCount.tsx index 052a9a9d3..38a8f5f6a 100644 --- a/extensions/ql-vscode/src/view/common/StarCount.tsx +++ b/extensions/ql-vscode/src/view/common/StarCount.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { Codicon } from "./icon"; diff --git a/extensions/ql-vscode/src/view/common/TextButton.tsx b/extensions/ql-vscode/src/view/common/TextButton.tsx index 8d8c1450c..eb073f519 100644 --- a/extensions/ql-vscode/src/view/common/TextButton.tsx +++ b/extensions/ql-vscode/src/view/common/TextButton.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; type Size = "x-small" | "small" | "medium" | "large" | "x-large"; diff --git a/extensions/ql-vscode/src/view/common/__tests__/Alert.spec.tsx b/extensions/ql-vscode/src/view/common/__tests__/Alert.spec.tsx index 55e8ba73f..d5edb07a6 100644 --- a/extensions/ql-vscode/src/view/common/__tests__/Alert.spec.tsx +++ b/extensions/ql-vscode/src/view/common/__tests__/Alert.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render, screen } from "@testing-library/react"; import { Alert } from "../Alert"; diff --git a/extensions/ql-vscode/src/view/common/__tests__/StarCount.spec.tsx b/extensions/ql-vscode/src/view/common/__tests__/StarCount.spec.tsx index 6a3ed88f4..f8cfef2c0 100644 --- a/extensions/ql-vscode/src/view/common/__tests__/StarCount.spec.tsx +++ b/extensions/ql-vscode/src/view/common/__tests__/StarCount.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render, screen } from "@testing-library/react"; import StarCount from "../StarCount"; diff --git a/extensions/ql-vscode/src/view/common/icon/Codicon.tsx b/extensions/ql-vscode/src/view/common/icon/Codicon.tsx index 06f7b1ad8..bda49e361 100644 --- a/extensions/ql-vscode/src/view/common/icon/Codicon.tsx +++ b/extensions/ql-vscode/src/view/common/icon/Codicon.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; type Props = { diff --git a/extensions/ql-vscode/src/view/common/icon/ErrorIcon.tsx b/extensions/ql-vscode/src/view/common/icon/ErrorIcon.tsx index 80ad55ce5..dcd63b741 100644 --- a/extensions/ql-vscode/src/view/common/icon/ErrorIcon.tsx +++ b/extensions/ql-vscode/src/view/common/icon/ErrorIcon.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { Codicon } from "./Codicon"; diff --git a/extensions/ql-vscode/src/view/common/icon/LoadingIcon.tsx b/extensions/ql-vscode/src/view/common/icon/LoadingIcon.tsx index a14785653..a4d95e423 100644 --- a/extensions/ql-vscode/src/view/common/icon/LoadingIcon.tsx +++ b/extensions/ql-vscode/src/view/common/icon/LoadingIcon.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { Codicon } from "./Codicon"; type Props = { diff --git a/extensions/ql-vscode/src/view/common/icon/SuccessIcon.tsx b/extensions/ql-vscode/src/view/common/icon/SuccessIcon.tsx index 3ce76d266..735f4c32b 100644 --- a/extensions/ql-vscode/src/view/common/icon/SuccessIcon.tsx +++ b/extensions/ql-vscode/src/view/common/icon/SuccessIcon.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { Codicon } from "./Codicon"; diff --git a/extensions/ql-vscode/src/view/common/icon/WarningIcon.tsx b/extensions/ql-vscode/src/view/common/icon/WarningIcon.tsx index 58b45224d..af1dd92f7 100644 --- a/extensions/ql-vscode/src/view/common/icon/WarningIcon.tsx +++ b/extensions/ql-vscode/src/view/common/icon/WarningIcon.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { Codicon } from "./Codicon"; diff --git a/extensions/ql-vscode/src/view/compare/Compare.tsx b/extensions/ql-vscode/src/view/compare/Compare.tsx index e335c9663..b51331973 100644 --- a/extensions/ql-vscode/src/view/compare/Compare.tsx +++ b/extensions/ql-vscode/src/view/compare/Compare.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useState, useEffect } from "react"; import { styled } from "styled-components"; diff --git a/extensions/ql-vscode/src/view/compare/CompareSelector.tsx b/extensions/ql-vscode/src/view/compare/CompareSelector.tsx index af7866bdc..b771759f6 100644 --- a/extensions/ql-vscode/src/view/compare/CompareSelector.tsx +++ b/extensions/ql-vscode/src/view/compare/CompareSelector.tsx @@ -1,5 +1,3 @@ -import * as React from "react"; - interface Props { availableResultSets: string[]; currentResultSetName: string; diff --git a/extensions/ql-vscode/src/view/compare/CompareTable.tsx b/extensions/ql-vscode/src/view/compare/CompareTable.tsx index b22375f2e..6953696e2 100644 --- a/extensions/ql-vscode/src/view/compare/CompareTable.tsx +++ b/extensions/ql-vscode/src/view/compare/CompareTable.tsx @@ -1,5 +1,3 @@ -import * as React from "react"; - import { SetComparisonQueryInfoMessage, SetComparisonsMessage, diff --git a/extensions/ql-vscode/src/view/compare/InterpretedCompareResultTable.tsx b/extensions/ql-vscode/src/view/compare/InterpretedCompareResultTable.tsx index 327bdc3d2..fa6c821a3 100644 --- a/extensions/ql-vscode/src/view/compare/InterpretedCompareResultTable.tsx +++ b/extensions/ql-vscode/src/view/compare/InterpretedCompareResultTable.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import * as sarif from "sarif"; import { AlertTable } from "../results/AlertTable"; diff --git a/extensions/ql-vscode/src/view/compare/RawCompareResultTable.tsx b/extensions/ql-vscode/src/view/compare/RawCompareResultTable.tsx index cd5c7322b..00bf189ab 100644 --- a/extensions/ql-vscode/src/view/compare/RawCompareResultTable.tsx +++ b/extensions/ql-vscode/src/view/compare/RawCompareResultTable.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { sendTelemetry } from "../common/telemetry"; import { Column, Row } from "../../common/raw-result-types"; import RawTableHeader from "../results/RawTableHeader"; diff --git a/extensions/ql-vscode/src/view/compare/index.tsx b/extensions/ql-vscode/src/view/compare/index.tsx index 977fffa58..04dfb4e91 100644 --- a/extensions/ql-vscode/src/view/compare/index.tsx +++ b/extensions/ql-vscode/src/view/compare/index.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { WebviewDefinition } from "../webview-definition"; import { Compare } from "./Compare"; diff --git a/extensions/ql-vscode/src/view/data-flow-paths/DataFlowPaths.tsx b/extensions/ql-vscode/src/view/data-flow-paths/DataFlowPaths.tsx index 7af17dd73..b2714bd24 100644 --- a/extensions/ql-vscode/src/view/data-flow-paths/DataFlowPaths.tsx +++ b/extensions/ql-vscode/src/view/data-flow-paths/DataFlowPaths.tsx @@ -1,6 +1,5 @@ -import * as React from "react"; import { styled } from "styled-components"; -import { useState } from "react"; +import { useEffect, useState } from "react"; import { useTelemetryOnChange } from "../common/telemetry"; import { CodeFlowsDropdown } from "../common/CodePaths/CodeFlowsDropdown"; @@ -41,7 +40,7 @@ export const DataFlowPaths = ({ const { codeFlows, ruleDescription, message, severity } = dataFlowPaths; - React.useEffect(() => { + useEffect(() => { // Make sure to update the selected code flow if the data flow paths change setSelectedCodeFlow(dataFlowPaths.codeFlows[0]); }, [dataFlowPaths]); diff --git a/extensions/ql-vscode/src/view/data-flow-paths/DataFlowPathsView.tsx b/extensions/ql-vscode/src/view/data-flow-paths/DataFlowPathsView.tsx index 33b1083ce..f7031471c 100644 --- a/extensions/ql-vscode/src/view/data-flow-paths/DataFlowPathsView.tsx +++ b/extensions/ql-vscode/src/view/data-flow-paths/DataFlowPathsView.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useEffect, useState } from "react"; import { ToDataFlowPathsMessage } from "../../common/interface-types"; import { DataFlowPaths as DataFlowPathsDomainModel } from "../../variant-analysis/shared/data-flow-paths"; diff --git a/extensions/ql-vscode/src/view/data-flow-paths/__tests__/DataFlowPaths.spec.tsx b/extensions/ql-vscode/src/view/data-flow-paths/__tests__/DataFlowPaths.spec.tsx index 02efd2105..b5d220bd1 100644 --- a/extensions/ql-vscode/src/view/data-flow-paths/__tests__/DataFlowPaths.spec.tsx +++ b/extensions/ql-vscode/src/view/data-flow-paths/__tests__/DataFlowPaths.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { DataFlowPaths, DataFlowPathsProps } from "../DataFlowPaths"; import { createMockDataFlowPaths } from "../../../../test/factories/variant-analysis/shared/data-flow-paths"; diff --git a/extensions/ql-vscode/src/view/data-flow-paths/__tests__/DataFlowPathsView.spec.tsx b/extensions/ql-vscode/src/view/data-flow-paths/__tests__/DataFlowPathsView.spec.tsx index 7baefc06c..1173674d9 100644 --- a/extensions/ql-vscode/src/view/data-flow-paths/__tests__/DataFlowPathsView.spec.tsx +++ b/extensions/ql-vscode/src/view/data-flow-paths/__tests__/DataFlowPathsView.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { DataFlowPathsView, diff --git a/extensions/ql-vscode/src/view/data-flow-paths/index.tsx b/extensions/ql-vscode/src/view/data-flow-paths/index.tsx index 5fd13430b..a55f3ecce 100644 --- a/extensions/ql-vscode/src/view/data-flow-paths/index.tsx +++ b/extensions/ql-vscode/src/view/data-flow-paths/index.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { WebviewDefinition } from "../webview-definition"; import { DataFlowPathsView } from "./DataFlowPathsView"; diff --git a/extensions/ql-vscode/src/view/method-modeling/MethodAlreadyModeled.tsx b/extensions/ql-vscode/src/view/method-modeling/MethodAlreadyModeled.tsx index ca0290370..079819bd4 100644 --- a/extensions/ql-vscode/src/view/method-modeling/MethodAlreadyModeled.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/MethodAlreadyModeled.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ResponsiveContainer } from "../common/ResponsiveContainer"; export const MethodAlreadyModeled = () => { diff --git a/extensions/ql-vscode/src/view/method-modeling/MethodModeling.tsx b/extensions/ql-vscode/src/view/method-modeling/MethodModeling.tsx index 6c4143c01..febc8683c 100644 --- a/extensions/ql-vscode/src/view/method-modeling/MethodModeling.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/MethodModeling.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { ModelingStatus } from "../../model-editor/shared/modeling-status"; import { ModelingStatusIndicator } from "../model-editor/ModelingStatusIndicator"; diff --git a/extensions/ql-vscode/src/view/method-modeling/MethodModelingInputs.tsx b/extensions/ql-vscode/src/view/method-modeling/MethodModelingInputs.tsx index affb83dee..0de61b86a 100644 --- a/extensions/ql-vscode/src/view/method-modeling/MethodModelingInputs.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/MethodModelingInputs.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { Method } from "../../model-editor/method"; import { ModeledMethod } from "../../model-editor/modeled-method"; diff --git a/extensions/ql-vscode/src/view/method-modeling/MethodModelingView.tsx b/extensions/ql-vscode/src/view/method-modeling/MethodModelingView.tsx index 685fb3290..10a3da3a6 100644 --- a/extensions/ql-vscode/src/view/method-modeling/MethodModelingView.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/MethodModelingView.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useEffect, useMemo, useState } from "react"; import { MethodModeling } from "./MethodModeling"; import { getModelingStatus } from "../../model-editor/shared/modeling-status"; diff --git a/extensions/ql-vscode/src/view/method-modeling/ModeledMethodAlert.tsx b/extensions/ql-vscode/src/view/method-modeling/ModeledMethodAlert.tsx index 7a638a22c..8dd2ccb98 100644 --- a/extensions/ql-vscode/src/view/method-modeling/ModeledMethodAlert.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/ModeledMethodAlert.tsx @@ -1,7 +1,6 @@ import { ModeledMethodValidationError } from "../../model-editor/shared/validation"; import TextButton from "../common/TextButton"; import { Alert } from "../common"; -import * as React from "react"; import { useCallback } from "react"; type Props = { diff --git a/extensions/ql-vscode/src/view/method-modeling/MultipleModeledMethodsPanel.tsx b/extensions/ql-vscode/src/view/method-modeling/MultipleModeledMethodsPanel.tsx index 2f86b3340..1ce1c4856 100644 --- a/extensions/ql-vscode/src/view/method-modeling/MultipleModeledMethodsPanel.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/MultipleModeledMethodsPanel.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { Method } from "../../model-editor/method"; import { ModeledMethod } from "../../model-editor/modeled-method"; diff --git a/extensions/ql-vscode/src/view/method-modeling/NoMethodSelected.tsx b/extensions/ql-vscode/src/view/method-modeling/NoMethodSelected.tsx index bd4866d59..2eadecf6e 100644 --- a/extensions/ql-vscode/src/view/method-modeling/NoMethodSelected.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/NoMethodSelected.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ResponsiveContainer } from "../common/ResponsiveContainer"; export const NoMethodSelected = () => { diff --git a/extensions/ql-vscode/src/view/method-modeling/NotInModelingMode.tsx b/extensions/ql-vscode/src/view/method-modeling/NotInModelingMode.tsx index fa120c8a1..cfc1b0fc6 100644 --- a/extensions/ql-vscode/src/view/method-modeling/NotInModelingMode.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/NotInModelingMode.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback } from "react"; import { vscode } from "../vscode-api"; import { styled } from "styled-components"; diff --git a/extensions/ql-vscode/src/view/method-modeling/ReviewInEditorButton.tsx b/extensions/ql-vscode/src/view/method-modeling/ReviewInEditorButton.tsx index 62167de97..057eeec69 100644 --- a/extensions/ql-vscode/src/view/method-modeling/ReviewInEditorButton.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/ReviewInEditorButton.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback } from "react"; import { styled } from "styled-components"; import { vscode } from "../vscode-api"; diff --git a/extensions/ql-vscode/src/view/method-modeling/__tests__/MethodModeling.spec.tsx b/extensions/ql-vscode/src/view/method-modeling/__tests__/MethodModeling.spec.tsx index 7b7b3e6f2..1276685b4 100644 --- a/extensions/ql-vscode/src/view/method-modeling/__tests__/MethodModeling.spec.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/__tests__/MethodModeling.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { MethodModeling, MethodModelingProps } from "../MethodModeling"; import { createMethod } from "../../../../test/factories/model-editor/method-factories"; diff --git a/extensions/ql-vscode/src/view/method-modeling/__tests__/MethodModelingInputs.spec.tsx b/extensions/ql-vscode/src/view/method-modeling/__tests__/MethodModelingInputs.spec.tsx index 4095368cc..61f2c640e 100644 --- a/extensions/ql-vscode/src/view/method-modeling/__tests__/MethodModelingInputs.spec.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/__tests__/MethodModelingInputs.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { userEvent } from "@testing-library/user-event"; import { diff --git a/extensions/ql-vscode/src/view/method-modeling/__tests__/MultipleModeledMethodsPanel.spec.tsx b/extensions/ql-vscode/src/view/method-modeling/__tests__/MultipleModeledMethodsPanel.spec.tsx index a1a653f87..378432028 100644 --- a/extensions/ql-vscode/src/view/method-modeling/__tests__/MultipleModeledMethodsPanel.spec.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/__tests__/MultipleModeledMethodsPanel.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen, waitFor } from "@testing-library/react"; import { createMethod } from "../../../../test/factories/model-editor/method-factories"; import { diff --git a/extensions/ql-vscode/src/view/method-modeling/index.tsx b/extensions/ql-vscode/src/view/method-modeling/index.tsx index fb8ec381a..cd7c10b8a 100644 --- a/extensions/ql-vscode/src/view/method-modeling/index.tsx +++ b/extensions/ql-vscode/src/view/method-modeling/index.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { WebviewDefinition } from "../webview-definition"; import { MethodModelingView } from "./MethodModelingView"; diff --git a/extensions/ql-vscode/src/view/model-editor/HiddenMethodsRow.tsx b/extensions/ql-vscode/src/view/model-editor/HiddenMethodsRow.tsx index 2d9facbdb..8ddbca0ad 100644 --- a/extensions/ql-vscode/src/view/model-editor/HiddenMethodsRow.tsx +++ b/extensions/ql-vscode/src/view/model-editor/HiddenMethodsRow.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { pluralize } from "../../common/word"; import { DataGridCell, DataGridRow } from "../common/DataGrid"; diff --git a/extensions/ql-vscode/src/view/model-editor/InProgressDropdown.tsx b/extensions/ql-vscode/src/view/model-editor/InProgressDropdown.tsx index 2ade2ec87..ef4b7aae0 100644 --- a/extensions/ql-vscode/src/view/model-editor/InProgressDropdown.tsx +++ b/extensions/ql-vscode/src/view/model-editor/InProgressDropdown.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { Dropdown } from "../common/Dropdown"; diff --git a/extensions/ql-vscode/src/view/model-editor/LibraryRow.tsx b/extensions/ql-vscode/src/view/model-editor/LibraryRow.tsx index 141c04fbf..33528dadf 100644 --- a/extensions/ql-vscode/src/view/model-editor/LibraryRow.tsx +++ b/extensions/ql-vscode/src/view/model-editor/LibraryRow.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback, useEffect, useMemo, useState } from "react"; import { styled } from "styled-components"; import { Method } from "../../model-editor/method"; diff --git a/extensions/ql-vscode/src/view/model-editor/MethodClassifications.tsx b/extensions/ql-vscode/src/view/model-editor/MethodClassifications.tsx index ab6a4efb0..0ee7e76e1 100644 --- a/extensions/ql-vscode/src/view/model-editor/MethodClassifications.tsx +++ b/extensions/ql-vscode/src/view/model-editor/MethodClassifications.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useMemo } from "react"; import { CallClassification, Method } from "../../model-editor/method"; import { VSCodeTag } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/model-editor/MethodName.tsx b/extensions/ql-vscode/src/view/model-editor/MethodName.tsx index f01891d89..1548ef388 100644 --- a/extensions/ql-vscode/src/view/model-editor/MethodName.tsx +++ b/extensions/ql-vscode/src/view/model-editor/MethodName.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { Method } from "../../model-editor/method"; diff --git a/extensions/ql-vscode/src/view/model-editor/MethodRow.tsx b/extensions/ql-vscode/src/view/model-editor/MethodRow.tsx index 4526a285f..02e524003 100644 --- a/extensions/ql-vscode/src/view/model-editor/MethodRow.tsx +++ b/extensions/ql-vscode/src/view/model-editor/MethodRow.tsx @@ -3,7 +3,6 @@ import { VSCodeLink, VSCodeProgressRing, } from "@vscode/webview-ui-toolkit/react"; -import * as React from "react"; import { forwardRef, useCallback, diff --git a/extensions/ql-vscode/src/view/model-editor/ModelEditor.tsx b/extensions/ql-vscode/src/view/model-editor/ModelEditor.tsx index 66a261b65..0ef9d243b 100644 --- a/extensions/ql-vscode/src/view/model-editor/ModelEditor.tsx +++ b/extensions/ql-vscode/src/view/model-editor/ModelEditor.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback, useEffect, useMemo, useState } from "react"; import { ToModelEditorMessage } from "../../common/interface-types"; import { diff --git a/extensions/ql-vscode/src/view/model-editor/ModelInputDropdown.tsx b/extensions/ql-vscode/src/view/model-editor/ModelInputDropdown.tsx index 300d1b296..0a8dcc887 100644 --- a/extensions/ql-vscode/src/view/model-editor/ModelInputDropdown.tsx +++ b/extensions/ql-vscode/src/view/model-editor/ModelInputDropdown.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ChangeEvent, useCallback, useMemo } from "react"; import { ModeledMethod, diff --git a/extensions/ql-vscode/src/view/model-editor/ModelKindDropdown.tsx b/extensions/ql-vscode/src/view/model-editor/ModelKindDropdown.tsx index f1a8c66af..bc62cfc24 100644 --- a/extensions/ql-vscode/src/view/model-editor/ModelKindDropdown.tsx +++ b/extensions/ql-vscode/src/view/model-editor/ModelKindDropdown.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ChangeEvent, useCallback, useEffect, useMemo } from "react"; import { ModeledMethod, diff --git a/extensions/ql-vscode/src/view/model-editor/ModelOutputDropdown.tsx b/extensions/ql-vscode/src/view/model-editor/ModelOutputDropdown.tsx index 970274f99..8eddd361d 100644 --- a/extensions/ql-vscode/src/view/model-editor/ModelOutputDropdown.tsx +++ b/extensions/ql-vscode/src/view/model-editor/ModelOutputDropdown.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ChangeEvent, useCallback, useMemo } from "react"; import { ModeledMethod, diff --git a/extensions/ql-vscode/src/view/model-editor/ModelTypeDropdown.tsx b/extensions/ql-vscode/src/view/model-editor/ModelTypeDropdown.tsx index d6c232d67..d66b061e2 100644 --- a/extensions/ql-vscode/src/view/model-editor/ModelTypeDropdown.tsx +++ b/extensions/ql-vscode/src/view/model-editor/ModelTypeDropdown.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ChangeEvent, useCallback } from "react"; import { calculateNewProvenance, diff --git a/extensions/ql-vscode/src/view/model-editor/ModeledMethodDataGrid.tsx b/extensions/ql-vscode/src/view/model-editor/ModeledMethodDataGrid.tsx index cd816ed72..d659a5f3b 100644 --- a/extensions/ql-vscode/src/view/model-editor/ModeledMethodDataGrid.tsx +++ b/extensions/ql-vscode/src/view/model-editor/ModeledMethodDataGrid.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { MethodRow } from "./MethodRow"; import { Method, canMethodBeModeled } from "../../model-editor/method"; import { ModeledMethod } from "../../model-editor/modeled-method"; diff --git a/extensions/ql-vscode/src/view/model-editor/ModeledMethodsList.tsx b/extensions/ql-vscode/src/view/model-editor/ModeledMethodsList.tsx index f9eea9e80..c5d7806e9 100644 --- a/extensions/ql-vscode/src/view/model-editor/ModeledMethodsList.tsx +++ b/extensions/ql-vscode/src/view/model-editor/ModeledMethodsList.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useMemo } from "react"; import { Method } from "../../model-editor/method"; import { ModeledMethod } from "../../model-editor/modeled-method"; diff --git a/extensions/ql-vscode/src/view/model-editor/ModelingStatusIndicator.tsx b/extensions/ql-vscode/src/view/model-editor/ModelingStatusIndicator.tsx index c2f499da1..8eb33e75b 100644 --- a/extensions/ql-vscode/src/view/model-editor/ModelingStatusIndicator.tsx +++ b/extensions/ql-vscode/src/view/model-editor/ModelingStatusIndicator.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { assertNever } from "../../common/helpers-pure"; import { Codicon } from "../common/icon/Codicon"; import { ModelingStatus } from "../../model-editor/shared/modeling-status"; diff --git a/extensions/ql-vscode/src/view/model-editor/__tests__/HiddenMethodsRow.spec.tsx b/extensions/ql-vscode/src/view/model-editor/__tests__/HiddenMethodsRow.spec.tsx index f8549cf60..9cbfcc90d 100644 --- a/extensions/ql-vscode/src/view/model-editor/__tests__/HiddenMethodsRow.spec.tsx +++ b/extensions/ql-vscode/src/view/model-editor/__tests__/HiddenMethodsRow.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render, screen } from "@testing-library/react"; import { HiddenMethodsRow } from "../HiddenMethodsRow"; diff --git a/extensions/ql-vscode/src/view/model-editor/__tests__/LibraryRow.spec.tsx b/extensions/ql-vscode/src/view/model-editor/__tests__/LibraryRow.spec.tsx index 8c10c9ede..ca35c4152 100644 --- a/extensions/ql-vscode/src/view/model-editor/__tests__/LibraryRow.spec.tsx +++ b/extensions/ql-vscode/src/view/model-editor/__tests__/LibraryRow.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { createMethod } from "../../../../test/factories/model-editor/method-factories"; import { LibraryRow, LibraryRowProps } from "../LibraryRow"; diff --git a/extensions/ql-vscode/src/view/model-editor/__tests__/MethodName.spec.tsx b/extensions/ql-vscode/src/view/model-editor/__tests__/MethodName.spec.tsx index 4a4422270..cd80746b6 100644 --- a/extensions/ql-vscode/src/view/model-editor/__tests__/MethodName.spec.tsx +++ b/extensions/ql-vscode/src/view/model-editor/__tests__/MethodName.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { MethodName } from "../MethodName"; import { Method } from "../../../model-editor/method"; diff --git a/extensions/ql-vscode/src/view/model-editor/__tests__/MethodRow.spec.tsx b/extensions/ql-vscode/src/view/model-editor/__tests__/MethodRow.spec.tsx index 5703f2f28..d2a879f25 100644 --- a/extensions/ql-vscode/src/view/model-editor/__tests__/MethodRow.spec.tsx +++ b/extensions/ql-vscode/src/view/model-editor/__tests__/MethodRow.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { getAllByRole, render as reactRender, diff --git a/extensions/ql-vscode/src/view/model-editor/__tests__/ModelKindDropdown.spec.tsx b/extensions/ql-vscode/src/view/model-editor/__tests__/ModelKindDropdown.spec.tsx index 98329a5ef..fcf35fe81 100644 --- a/extensions/ql-vscode/src/view/model-editor/__tests__/ModelKindDropdown.spec.tsx +++ b/extensions/ql-vscode/src/view/model-editor/__tests__/ModelKindDropdown.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render, screen } from "@testing-library/react"; import { ModelKindDropdown } from "../ModelKindDropdown"; import { userEvent } from "@testing-library/user-event"; diff --git a/extensions/ql-vscode/src/view/model-editor/__tests__/ModeledMethodDataGrid.spec.tsx b/extensions/ql-vscode/src/view/model-editor/__tests__/ModeledMethodDataGrid.spec.tsx index e9ada0ba2..98252ef5e 100644 --- a/extensions/ql-vscode/src/view/model-editor/__tests__/ModeledMethodDataGrid.spec.tsx +++ b/extensions/ql-vscode/src/view/model-editor/__tests__/ModeledMethodDataGrid.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { createMethod } from "../../../../test/factories/model-editor/method-factories"; import { diff --git a/extensions/ql-vscode/src/view/model-editor/__tests__/ModeledMethodsList.spec.tsx b/extensions/ql-vscode/src/view/model-editor/__tests__/ModeledMethodsList.spec.tsx index 08b946369..907d65ce5 100644 --- a/extensions/ql-vscode/src/view/model-editor/__tests__/ModeledMethodsList.spec.tsx +++ b/extensions/ql-vscode/src/view/model-editor/__tests__/ModeledMethodsList.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { createMethod } from "../../../../test/factories/model-editor/method-factories"; import { diff --git a/extensions/ql-vscode/src/view/model-editor/__tests__/ModelingStatusIndicator.spec.tsx b/extensions/ql-vscode/src/view/model-editor/__tests__/ModelingStatusIndicator.spec.tsx index 9aa4f61ca..9b47af780 100644 --- a/extensions/ql-vscode/src/view/model-editor/__tests__/ModelingStatusIndicator.spec.tsx +++ b/extensions/ql-vscode/src/view/model-editor/__tests__/ModelingStatusIndicator.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render, screen } from "@testing-library/react"; import { ModelingStatusIndicator } from "../ModelingStatusIndicator"; diff --git a/extensions/ql-vscode/src/view/model-editor/index.tsx b/extensions/ql-vscode/src/view/model-editor/index.tsx index 6b2745d54..344c0e5ac 100644 --- a/extensions/ql-vscode/src/view/model-editor/index.tsx +++ b/extensions/ql-vscode/src/view/model-editor/index.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { WebviewDefinition } from "../webview-definition"; import { ModelEditor } from "./ModelEditor"; diff --git a/extensions/ql-vscode/src/view/results/AlertTable.tsx b/extensions/ql-vscode/src/view/results/AlertTable.tsx index 4bf45341b..c651dc835 100644 --- a/extensions/ql-vscode/src/view/results/AlertTable.tsx +++ b/extensions/ql-vscode/src/view/results/AlertTable.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import * as Sarif from "sarif"; import * as Keys from "./result-keys"; import { className, jumpToLocation } from "./result-table-utils"; diff --git a/extensions/ql-vscode/src/view/results/AlertTableDropdownIndicatorCell.tsx b/extensions/ql-vscode/src/view/results/AlertTableDropdownIndicatorCell.tsx index 3db621b7e..135c4b03d 100644 --- a/extensions/ql-vscode/src/view/results/AlertTableDropdownIndicatorCell.tsx +++ b/extensions/ql-vscode/src/view/results/AlertTableDropdownIndicatorCell.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import TextButton from "../common/TextButton"; import { chevronDown, chevronRight } from "./octicons"; diff --git a/extensions/ql-vscode/src/view/results/AlertTableHeader.tsx b/extensions/ql-vscode/src/view/results/AlertTableHeader.tsx index 2d29e6e6e..2ed4449e0 100644 --- a/extensions/ql-vscode/src/view/results/AlertTableHeader.tsx +++ b/extensions/ql-vscode/src/view/results/AlertTableHeader.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback } from "react"; import { vscode } from "../vscode-api"; import { diff --git a/extensions/ql-vscode/src/view/results/AlertTableNoResults.tsx b/extensions/ql-vscode/src/view/results/AlertTableNoResults.tsx index e41c02e44..51bd4c5ff 100644 --- a/extensions/ql-vscode/src/view/results/AlertTableNoResults.tsx +++ b/extensions/ql-vscode/src/view/results/AlertTableNoResults.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { EmptyQueryResultsMessage } from "./EmptyQueryResultsMessage"; import TextButton from "../common/TextButton"; diff --git a/extensions/ql-vscode/src/view/results/AlertTablePathNodeRow.tsx b/extensions/ql-vscode/src/view/results/AlertTablePathNodeRow.tsx index 7be9511e4..c1d9f6d21 100644 --- a/extensions/ql-vscode/src/view/results/AlertTablePathNodeRow.tsx +++ b/extensions/ql-vscode/src/view/results/AlertTablePathNodeRow.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import * as Sarif from "sarif"; import * as Keys from "./result-keys"; import { SarifLocation } from "./locations/SarifLocation"; diff --git a/extensions/ql-vscode/src/view/results/AlertTablePathRow.tsx b/extensions/ql-vscode/src/view/results/AlertTablePathRow.tsx index 230da3ff4..30e3e9413 100644 --- a/extensions/ql-vscode/src/view/results/AlertTablePathRow.tsx +++ b/extensions/ql-vscode/src/view/results/AlertTablePathRow.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import * as Sarif from "sarif"; import * as Keys from "./result-keys"; import { selectableZebraStripe } from "./result-table-utils"; diff --git a/extensions/ql-vscode/src/view/results/AlertTableResultRow.tsx b/extensions/ql-vscode/src/view/results/AlertTableResultRow.tsx index 07e130ed7..0dd4f6907 100644 --- a/extensions/ql-vscode/src/view/results/AlertTableResultRow.tsx +++ b/extensions/ql-vscode/src/view/results/AlertTableResultRow.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import * as Sarif from "sarif"; import * as Keys from "./result-keys"; import { info, listUnordered } from "./octicons"; diff --git a/extensions/ql-vscode/src/view/results/AlertTableTruncatedMessage.tsx b/extensions/ql-vscode/src/view/results/AlertTableTruncatedMessage.tsx index 58acb7d7d..c2c1565ea 100644 --- a/extensions/ql-vscode/src/view/results/AlertTableTruncatedMessage.tsx +++ b/extensions/ql-vscode/src/view/results/AlertTableTruncatedMessage.tsx @@ -1,5 +1,3 @@ -import * as React from "react"; - interface Props { numTruncatedResults: number; } diff --git a/extensions/ql-vscode/src/view/results/EmptyQueryResultsMessage.tsx b/extensions/ql-vscode/src/view/results/EmptyQueryResultsMessage.tsx index d2b8fa4bd..93107ce41 100644 --- a/extensions/ql-vscode/src/view/results/EmptyQueryResultsMessage.tsx +++ b/extensions/ql-vscode/src/view/results/EmptyQueryResultsMessage.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { sendTelemetry } from "../common/telemetry"; diff --git a/extensions/ql-vscode/src/view/results/Graph.tsx b/extensions/ql-vscode/src/view/results/Graph.tsx index 04f9a127f..09a94f8e8 100644 --- a/extensions/ql-vscode/src/view/results/Graph.tsx +++ b/extensions/ql-vscode/src/view/results/Graph.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { select } from "d3"; import { jumpToLocation } from "./result-table-utils"; import { graphviz, GraphvizOptions } from "d3-graphviz"; diff --git a/extensions/ql-vscode/src/view/results/ProblemsViewCheckbox.tsx b/extensions/ql-vscode/src/view/results/ProblemsViewCheckbox.tsx index 9b326dfca..de0e0f2f9 100644 --- a/extensions/ql-vscode/src/view/results/ProblemsViewCheckbox.tsx +++ b/extensions/ql-vscode/src/view/results/ProblemsViewCheckbox.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ALERTS_TABLE_NAME } from "../../common/interface-types"; import { alertExtrasClassName, diff --git a/extensions/ql-vscode/src/view/results/RawTable.tsx b/extensions/ql-vscode/src/view/results/RawTable.tsx index e2ee22146..5ac867e0e 100644 --- a/extensions/ql-vscode/src/view/results/RawTable.tsx +++ b/extensions/ql-vscode/src/view/results/RawTable.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { className, jumpToLocation } from "./result-table-utils"; import { diff --git a/extensions/ql-vscode/src/view/results/RawTableHeader.tsx b/extensions/ql-vscode/src/view/results/RawTableHeader.tsx index 22af2bc24..b7aaea176 100644 --- a/extensions/ql-vscode/src/view/results/RawTableHeader.tsx +++ b/extensions/ql-vscode/src/view/results/RawTableHeader.tsx @@ -1,5 +1,3 @@ -import * as React from "react"; - import { vscode } from "../vscode-api"; import { RawResultsSortState, diff --git a/extensions/ql-vscode/src/view/results/RawTableRow.tsx b/extensions/ql-vscode/src/view/results/RawTableRow.tsx index d6927f5bd..d64ab81b2 100644 --- a/extensions/ql-vscode/src/view/results/RawTableRow.tsx +++ b/extensions/ql-vscode/src/view/results/RawTableRow.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { selectedRowClassName, zebraStripe } from "./result-table-utils"; import RawTableValue from "./RawTableValue"; import { Row } from "../../common/raw-result-types"; diff --git a/extensions/ql-vscode/src/view/results/RawTableValue.tsx b/extensions/ql-vscode/src/view/results/RawTableValue.tsx index 374ccac51..eb1d327fd 100644 --- a/extensions/ql-vscode/src/view/results/RawTableValue.tsx +++ b/extensions/ql-vscode/src/view/results/RawTableValue.tsx @@ -1,5 +1,3 @@ -import * as React from "react"; - import { Location } from "./locations/Location"; import { RawNumberValue } from "../common/RawNumberValue"; import { CellValue } from "../../common/raw-result-types"; diff --git a/extensions/ql-vscode/src/view/results/ResultCount.tsx b/extensions/ql-vscode/src/view/results/ResultCount.tsx index bf6ddb474..fa946a469 100644 --- a/extensions/ql-vscode/src/view/results/ResultCount.tsx +++ b/extensions/ql-vscode/src/view/results/ResultCount.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ResultSet } from "../../common/interface-types"; import { tableHeaderItemClassName } from "./result-table-utils"; diff --git a/extensions/ql-vscode/src/view/results/ResultTable.tsx b/extensions/ql-vscode/src/view/results/ResultTable.tsx index ecd87aa18..660233376 100644 --- a/extensions/ql-vscode/src/view/results/ResultTable.tsx +++ b/extensions/ql-vscode/src/view/results/ResultTable.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { AlertTable } from "./AlertTable"; import { Graph } from "./Graph"; import { RawTable } from "./RawTable"; diff --git a/extensions/ql-vscode/src/view/results/ResultTables.tsx b/extensions/ql-vscode/src/view/results/ResultTables.tsx index 2467945ba..4c40fe99f 100644 --- a/extensions/ql-vscode/src/view/results/ResultTables.tsx +++ b/extensions/ql-vscode/src/view/results/ResultTables.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { DatabaseInfo, Interpretation, diff --git a/extensions/ql-vscode/src/view/results/ResultTablesHeader.tsx b/extensions/ql-vscode/src/view/results/ResultTablesHeader.tsx index edaa1af4a..55af08295 100644 --- a/extensions/ql-vscode/src/view/results/ResultTablesHeader.tsx +++ b/extensions/ql-vscode/src/view/results/ResultTablesHeader.tsx @@ -1,5 +1,4 @@ -import * as React from "react"; -import { useCallback, useEffect } from "react"; +import { useCallback, useEffect, useState } from "react"; import { vscode } from "../vscode-api"; import { openFile, tableHeaderItemClassName } from "./result-table-utils"; import { sendTelemetry } from "../common/telemetry"; @@ -62,7 +61,7 @@ const OpenQueryLink = styled(TextButton)` export function ResultTablesHeader(props: Props) { const { queryPath, queryName, parsedResultSets, selectedTable } = props; - const [selectedPage, setSelectedPage] = React.useState( + const [selectedPage, setSelectedPage] = useState( `${parsedResultSets.pageNumber + 1}`, ); useEffect(() => { diff --git a/extensions/ql-vscode/src/view/results/ResultsApp.tsx b/extensions/ql-vscode/src/view/results/ResultsApp.tsx index 800c5b90f..b8e1c7be4 100644 --- a/extensions/ql-vscode/src/view/results/ResultsApp.tsx +++ b/extensions/ql-vscode/src/view/results/ResultsApp.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { assertNever, getErrorMessage } from "../../common/helpers-pure"; import { DatabaseInfo, @@ -18,7 +17,7 @@ import { EventHandlers as EventHandlerList } from "./event-handler-list"; import { ResultTables } from "./ResultTables"; import "./resultsView.css"; -import { useCallback, useEffect } from "react"; +import { useCallback, useEffect, useState } from "react"; /** * ResultsApp.tsx @@ -72,7 +71,7 @@ export const onNavigation = new EventHandlerList(); * A minimal state container for displaying results. */ export function ResultsApp() { - const [state, setState] = React.useState({ + const [state, setState] = useState({ displayedResults: { resultsInfo: null, results: null, diff --git a/extensions/ql-vscode/src/view/results/__tests__/results.spec.tsx b/extensions/ql-vscode/src/view/results/__tests__/results.spec.tsx index 87eea7059..dd0bf2260 100644 --- a/extensions/ql-vscode/src/view/results/__tests__/results.spec.tsx +++ b/extensions/ql-vscode/src/view/results/__tests__/results.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { ResultsApp } from "../ResultsApp"; import { diff --git a/extensions/ql-vscode/src/view/results/index.tsx b/extensions/ql-vscode/src/view/results/index.tsx index 2118a8813..b58acd7b4 100644 --- a/extensions/ql-vscode/src/view/results/index.tsx +++ b/extensions/ql-vscode/src/view/results/index.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { WebviewDefinition } from "../webview-definition"; import { ResultsApp } from "./ResultsApp"; diff --git a/extensions/ql-vscode/src/view/results/locations/ClickableLocation.tsx b/extensions/ql-vscode/src/view/results/locations/ClickableLocation.tsx index 4c58bcda3..f7a0f73e1 100644 --- a/extensions/ql-vscode/src/view/results/locations/ClickableLocation.tsx +++ b/extensions/ql-vscode/src/view/results/locations/ClickableLocation.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback } from "react"; import { jumpToLocation } from "../result-table-utils"; import TextButton from "../../common/TextButton"; diff --git a/extensions/ql-vscode/src/view/results/locations/Location.tsx b/extensions/ql-vscode/src/view/results/locations/Location.tsx index e17472d36..dc14ca7c0 100644 --- a/extensions/ql-vscode/src/view/results/locations/Location.tsx +++ b/extensions/ql-vscode/src/view/results/locations/Location.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useMemo } from "react"; import { UrlValue } from "../../../common/raw-result-types"; diff --git a/extensions/ql-vscode/src/view/results/locations/NonClickableLocation.tsx b/extensions/ql-vscode/src/view/results/locations/NonClickableLocation.tsx index 7aff6ffe5..503afc7da 100644 --- a/extensions/ql-vscode/src/view/results/locations/NonClickableLocation.tsx +++ b/extensions/ql-vscode/src/view/results/locations/NonClickableLocation.tsx @@ -1,5 +1,3 @@ -import * as React from "react"; - interface Props { msg?: string; locationHint?: string; diff --git a/extensions/ql-vscode/src/view/results/locations/SarifLocation.tsx b/extensions/ql-vscode/src/view/results/locations/SarifLocation.tsx index 1fe00a125..a043deab4 100644 --- a/extensions/ql-vscode/src/view/results/locations/SarifLocation.tsx +++ b/extensions/ql-vscode/src/view/results/locations/SarifLocation.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import * as Sarif from "sarif"; import { parseSarifLocation } from "../../../common/sarif-utils"; import { basename } from "../../../common/path"; diff --git a/extensions/ql-vscode/src/view/results/locations/SarifMessageWithLocations.tsx b/extensions/ql-vscode/src/view/results/locations/SarifMessageWithLocations.tsx index 96053ce13..46f1343df 100644 --- a/extensions/ql-vscode/src/view/results/locations/SarifMessageWithLocations.tsx +++ b/extensions/ql-vscode/src/view/results/locations/SarifMessageWithLocations.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import * as Sarif from "sarif"; import { parseSarifPlainTextMessage } from "../../../common/sarif-utils"; import { SarifLocation } from "./SarifLocation"; diff --git a/extensions/ql-vscode/src/view/results/octicons.tsx b/extensions/ql-vscode/src/view/results/octicons.tsx index ebbdd5b7b..0905cd596 100644 --- a/extensions/ql-vscode/src/view/results/octicons.tsx +++ b/extensions/ql-vscode/src/view/results/octicons.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; const Octicon = styled.svg` diff --git a/extensions/ql-vscode/src/view/variant-analysis/AnalysisAlertResult.tsx b/extensions/ql-vscode/src/view/variant-analysis/AnalysisAlertResult.tsx index 7f54ae310..61a2dfbd7 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/AnalysisAlertResult.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/AnalysisAlertResult.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { AnalysisAlert } from "../../variant-analysis/shared/analysis-result"; import { CodePaths, FileCodeSnippet } from "../common"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/AnalyzedRepoItemContent.tsx b/extensions/ql-vscode/src/view/variant-analysis/AnalyzedRepoItemContent.tsx index a7ecc71ec..0ad9d08ab 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/AnalyzedRepoItemContent.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/AnalyzedRepoItemContent.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { AnalysisAlert, diff --git a/extensions/ql-vscode/src/view/variant-analysis/FailureReasonAlert.tsx b/extensions/ql-vscode/src/view/variant-analysis/FailureReasonAlert.tsx index 2c5f947be..c5e9a7546 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/FailureReasonAlert.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/FailureReasonAlert.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ReactNode } from "react"; import { VSCodeLink } from "@vscode/webview-ui-toolkit/react"; import { Alert } from "../common"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/QueryDetails.tsx b/extensions/ql-vscode/src/view/variant-analysis/QueryDetails.tsx index d841e3f1b..d35d031d1 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/QueryDetails.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/QueryDetails.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { ViewTitle } from "../common"; import { LinkIconButton } from "./LinkIconButton"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/RawResultCell.tsx b/extensions/ql-vscode/src/view/variant-analysis/RawResultCell.tsx index b0898359a..08f0fed8a 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/RawResultCell.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/RawResultCell.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { VSCodeLink } from "@vscode/webview-ui-toolkit/react"; import { CellValue } from "../../common/raw-result-types"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/RawResultRow.tsx b/extensions/ql-vscode/src/view/variant-analysis/RawResultRow.tsx index d52441eb2..73b257b7e 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/RawResultRow.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/RawResultRow.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { Row } from "../../common/raw-result-types"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/RawResultsTable.tsx b/extensions/ql-vscode/src/view/variant-analysis/RawResultsTable.tsx index 4fcfcd8ff..088fdd2b7 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/RawResultsTable.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/RawResultsTable.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useState } from "react"; import { styled } from "styled-components"; import TextButton from "../common/TextButton"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/RepoRow.tsx b/extensions/ql-vscode/src/view/variant-analysis/RepoRow.tsx index 06d9ea8af..acca5e129 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/RepoRow.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/RepoRow.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { ChangeEvent, useCallback, useEffect, useState } from "react"; import { styled } from "styled-components"; import { VSCodeBadge, VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesFilter.tsx b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesFilter.tsx index 1c1c8f606..56596b2ec 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesFilter.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesFilter.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback } from "react"; import { styled } from "styled-components"; import { VSCodeDropdown, VSCodeOption } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesResultFormat.tsx b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesResultFormat.tsx index 2bffdfe09..11ac814cc 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesResultFormat.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesResultFormat.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback } from "react"; import { styled } from "styled-components"; import { VSCodeDropdown, VSCodeOption } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSearch.tsx b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSearch.tsx index d9dbb6471..bf0b89404 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSearch.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSearch.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback } from "react"; import { styled } from "styled-components"; import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSearchSortRow.tsx b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSearchSortRow.tsx index 557501d2b..91fca7bd8 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSearchSortRow.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSearchSortRow.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { Dispatch, SetStateAction, useCallback } from "react"; import { styled } from "styled-components"; import { diff --git a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSort.tsx b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSort.tsx index 3b8667d09..d4383a3e1 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSort.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/RepositoriesSort.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback } from "react"; import { styled } from "styled-components"; import { VSCodeDropdown, VSCodeOption } from "@vscode/webview-ui-toolkit/react"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/StatItem.tsx b/extensions/ql-vscode/src/view/variant-analysis/StatItem.tsx index 0aa31ce52..3faaca507 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/StatItem.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/StatItem.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import type { ReactNode } from "react"; import { styled } from "styled-components"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysis.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysis.tsx index 3f692d1a8..785ebd6db 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysis.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysis.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useCallback, useEffect, useState } from "react"; import { diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisActions.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisActions.tsx index b8325998e..d324e3215 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisActions.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisActions.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { VSCodeButton } from "@vscode/webview-ui-toolkit/react"; import { VariantAnalysisStatus } from "../../variant-analysis/shared/variant-analysis"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisAnalyzedRepos.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisAnalyzedRepos.tsx index 3561d83e9..c61346e15 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisAnalyzedRepos.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisAnalyzedRepos.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { Dispatch, SetStateAction, useCallback, useMemo } from "react"; import { styled } from "styled-components"; import { RepoRow } from "./RepoRow"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisHeader.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisHeader.tsx index 09ccd1c61..0ca7c19f0 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisHeader.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisHeader.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useMemo } from "react"; import { styled } from "styled-components"; import { diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisLoading.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisLoading.tsx index c46024c1b..f86943e78 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisLoading.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisLoading.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; const Container = styled.div` diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisOutcomePanels.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisOutcomePanels.tsx index 6d7b44896..740e66cd9 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisOutcomePanels.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisOutcomePanels.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { Dispatch, SetStateAction, useState } from "react"; import { styled } from "styled-components"; import { diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisRepositoriesStats.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisRepositoriesStats.tsx index b7a0baa00..2e12b62da 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisRepositoriesStats.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisRepositoriesStats.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { VariantAnalysisStatus } from "../../variant-analysis/shared/variant-analysis"; import { formatDecimal } from "../../common/number"; import { diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisSkippedRepositoriesTab.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisSkippedRepositoriesTab.tsx index 52116c212..42c079758 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisSkippedRepositoriesTab.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisSkippedRepositoriesTab.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useMemo } from "react"; import { styled } from "styled-components"; import { VariantAnalysisSkippedRepositoryGroup } from "../../variant-analysis/shared/variant-analysis"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStats.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStats.tsx index 28a1ece3e..eea7dd41c 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStats.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStats.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { useMemo } from "react"; import { styled } from "styled-components"; import { VariantAnalysisStatus } from "../../variant-analysis/shared/variant-analysis"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStatusStats.tsx b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStatusStats.tsx index 6c2d0fbc9..85b7b1596 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStatusStats.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStatusStats.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { styled } from "styled-components"; import { VSCodeLink } from "@vscode/webview-ui-toolkit/react"; import { formatDate } from "../../common/date"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/AnalyzedRepoItemContent.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/AnalyzedRepoItemContent.spec.tsx index f1645b82a..66bda3e43 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/AnalyzedRepoItemContent.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/AnalyzedRepoItemContent.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { VariantAnalysisRepoStatus, diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/QueryDetails.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/QueryDetails.spec.tsx index 65373f1e9..54b519f77 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/QueryDetails.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/QueryDetails.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { userEvent } from "@testing-library/user-event"; import { QueryDetails, QueryDetailsProps } from "../QueryDetails"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/RepoRow.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/RepoRow.spec.tsx index 3ec39160e..a11a86a6c 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/RepoRow.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/RepoRow.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { act, render as reactRender, diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysis.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysis.spec.tsx index cff74f37e..7af5b5af2 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysis.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysis.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen, waitFor } from "@testing-library/react"; import { VariantAnalysisFailureReason, diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisActions.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisActions.spec.tsx index bb72eb39b..15d8b54b8 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisActions.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisActions.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { userEvent } from "@testing-library/user-event"; import { VariantAnalysisStatus } from "../../../variant-analysis/shared/variant-analysis"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisAnalyzedRepos.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisAnalyzedRepos.spec.tsx index 161a5d1cd..e1ed21a9e 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisAnalyzedRepos.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisAnalyzedRepos.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { act, render as reactRender, screen } from "@testing-library/react"; import { userEvent } from "@testing-library/user-event"; import { diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisLoading.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisLoading.spec.tsx index 52c64df6f..13b462b31 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisLoading.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisLoading.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { VariantAnalysisLoading } from "../VariantAnalysisLoading"; diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisOutcomePanels.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisOutcomePanels.spec.tsx index 90fe56099..f113247f3 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisOutcomePanels.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisOutcomePanels.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { VariantAnalysis, diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisSkippedRepositoriesTab.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisSkippedRepositoriesTab.spec.tsx index 6c0f0c3d4..3f754a0cd 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisSkippedRepositoriesTab.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisSkippedRepositoriesTab.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { VariantAnalysisSkippedRepositoriesTab, diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStats.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStats.spec.tsx index 1996e88e7..dc0e9ff29 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStats.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStats.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { VariantAnalysisStatus } from "../../../variant-analysis/shared/variant-analysis"; import { diff --git a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStatusStats.spec.tsx b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStatusStats.spec.tsx index 8cdc0cd56..3577af32c 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStatusStats.spec.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStatusStats.spec.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { render as reactRender, screen } from "@testing-library/react"; import { VariantAnalysisStatus } from "../../../variant-analysis/shared/variant-analysis"; import { diff --git a/extensions/ql-vscode/src/view/variant-analysis/index.tsx b/extensions/ql-vscode/src/view/variant-analysis/index.tsx index 298fdee9b..e04077f2e 100644 --- a/extensions/ql-vscode/src/view/variant-analysis/index.tsx +++ b/extensions/ql-vscode/src/view/variant-analysis/index.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { WebviewDefinition } from "../webview-definition"; import { VariantAnalysis } from "./VariantAnalysis"; diff --git a/extensions/ql-vscode/src/view/webview.tsx b/extensions/ql-vscode/src/view/webview.tsx index 98267d01a..d6eb19521 100644 --- a/extensions/ql-vscode/src/view/webview.tsx +++ b/extensions/ql-vscode/src/view/webview.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import { vscode } from "./vscode-api";