mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
fix: correct VSCode URI
This commit is contained in:
@@ -143,7 +143,7 @@ Once your merge is successful:
|
|||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev" target="_blank"><strong>Download on VS Marketplace</strong></a>
|
<a href="https://marketplace.visualstudio.com/items?itemName=rooveterinaryinc.roo-cline" target="_blank"><strong>Download on VS Marketplace</strong></a>
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://discord.gg/cline" target="_blank"><strong>Join the Discord</strong></a>
|
<a href="https://discord.gg/cline" target="_blank"><strong>Join the Discord</strong></a>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ The Cline extension exposes an API that can be used by other extensions. To use
|
|||||||
3. Get access to the API with the following code:
|
3. Get access to the API with the following code:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
const clineExtension = vscode.extensions.getExtension<ClineAPI>("saoudrizwan.claude-dev")
|
const clineExtension = vscode.extensions.getExtension<ClineAPI>("rooveterinaryinc.roo-cline")
|
||||||
|
|
||||||
if (!clineExtension?.isActive) {
|
if (!clineExtension?.isActive) {
|
||||||
throw new Error("Cline extension is not activated")
|
throw new Error("Cline extension is not activated")
|
||||||
@@ -44,11 +44,11 @@ The Cline extension exposes an API that can be used by other extensions. To use
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** To ensure that the `saoudrizwan.claude-dev` extension is activated before your extension, add it to the `extensionDependencies` in your `package.json`:
|
**Note:** To ensure that the `rooveterinaryinc.roo-cline` extension is activated before your extension, add it to the `extensionDependencies` in your `package.json`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"extensionDependencies": [
|
"extensionDependencies": [
|
||||||
"saoudrizwan.claude-dev"
|
"rooveterinaryinc.roo-cline"
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -141,5 +141,5 @@ export function mergeJson(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getExtensionUri(): vscode.Uri {
|
function getExtensionUri(): vscode.Uri {
|
||||||
return vscode.extensions.getExtension("saoudrizwan.claude-dev")!.extensionUri
|
return vscode.extensions.getExtension("rooveterinaryinc.roo-cline")!.extensionUri
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -741,13 +741,13 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getGlamaAuthUrl(uriScheme?: string) {
|
export function getGlamaAuthUrl(uriScheme?: string) {
|
||||||
const callbackUrl = `${uriScheme || "vscode"}://saoudrizwan.claude-dev/glama`
|
const callbackUrl = `${uriScheme || "vscode"}://rooveterinaryinc.roo-cline/glama`
|
||||||
|
|
||||||
return `https://glama.ai/oauth/authorize?callback_url=${encodeURIComponent(callbackUrl)}`
|
return `https://glama.ai/oauth/authorize?callback_url=${encodeURIComponent(callbackUrl)}`
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getOpenRouterAuthUrl(uriScheme?: string) {
|
export function getOpenRouterAuthUrl(uriScheme?: string) {
|
||||||
return `https://openrouter.ai/auth?callback_url=${uriScheme || "vscode"}://saoudrizwan.claude-dev/openrouter`
|
return `https://openrouter.ai/auth?callback_url=${uriScheme || "vscode"}://rooveterinaryinc.roo-cline/openrouter`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const formatPrice = (price: number) => {
|
export const formatPrice = (price: number) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user