mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Minor code cleanup
This commit is contained in:
@@ -889,9 +889,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||||||
await this.postStateToWebview()
|
await this.postStateToWebview()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.postMessageToWebview({ type: "listApiConfig", listApiConfig })
|
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error delete api configuration:", error)
|
console.error("Error delete api configuration:", error)
|
||||||
vscode.window.showErrorMessage("Failed to delete api configuration")
|
vscode.window.showErrorMessage("Failed to delete api configuration")
|
||||||
|
|||||||
@@ -39,11 +39,9 @@ const GlamaModelPicker: React.FC = () => {
|
|||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (apiConfiguration?.glamaModelId) {
|
if (apiConfiguration?.glamaModelId && apiConfiguration?.glamaModelId !== searchTerm) {
|
||||||
if (apiConfiguration?.glamaModelId !== searchTerm) {
|
|
||||||
setSearchTerm(apiConfiguration?.glamaModelId)
|
setSearchTerm(apiConfiguration?.glamaModelId)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}, [apiConfiguration, searchTerm])
|
}, [apiConfiguration, searchTerm])
|
||||||
|
|
||||||
useMount(() => {
|
useMount(() => {
|
||||||
|
|||||||
@@ -29,11 +29,9 @@ const OpenAiModelPicker: React.FC = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (apiConfiguration?.openAiModelId) {
|
if (apiConfiguration?.openAiModelId && apiConfiguration?.openAiModelId !== searchTerm) {
|
||||||
if (apiConfiguration?.openAiModelId !== searchTerm) {
|
|
||||||
setSearchTerm(apiConfiguration?.openAiModelId)
|
setSearchTerm(apiConfiguration?.openAiModelId)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}, [apiConfiguration, searchTerm])
|
}, [apiConfiguration, searchTerm])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -38,11 +38,9 @@ const OpenRouterModelPicker: React.FC = () => {
|
|||||||
}, [apiConfiguration])
|
}, [apiConfiguration])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (apiConfiguration?.openRouterModelId) {
|
if (apiConfiguration?.openRouterModelId && apiConfiguration?.openRouterModelId !== searchTerm) {
|
||||||
if (apiConfiguration?.openRouterModelId !== searchTerm) {
|
|
||||||
setSearchTerm(apiConfiguration?.openRouterModelId)
|
setSearchTerm(apiConfiguration?.openRouterModelId)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}, [apiConfiguration, searchTerm])
|
}, [apiConfiguration, searchTerm])
|
||||||
|
|
||||||
useMount(() => {
|
useMount(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user