Skip to content

Commit 02f02d4

Browse files
author
Tajudeen
committed
fix: update all void URLs to use opencortexide organization
- Fix compilation errors in update notification system - Update GitHub URLs to use opencortexide organization - Replace voideditor.com email with GitHub issues link - Update product name references from Void to CortexIDE - Fix IHostService import path - Convert localize2 calls to use .value for string conversion
1 parent aceaa40 commit 02f02d4

5 files changed

Lines changed: 23 additions & 17 deletions

File tree

src/vs/workbench/contrib/cortexide/browser/cortexideUpdateActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const notifyUpdate = (res: CortexideCheckUpdateResponse & { message: string }, n
3737
class: undefined,
3838
run: () => {
3939
const { window } = dom.getActiveWindow()
40-
window.open('https://voideditor.com/download-beta')
40+
window.open('https://github.com/opencortexide/cortexide/releases')
4141
}
4242
})
4343
}

src/vs/workbench/contrib/cortexide/browser/cortexideUpdateNotification.ts

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import { Disposable } from '../../../../base/common/lifecycle.js';
77
import Severity from '../../../../base/common/severity.js';
88
import { IWorkbenchContribution, registerWorkbenchContribution2, WorkbenchPhase } from '../../../common/contributions.js';
9-
import { INotificationService, INotificationActions } from '../../../../platform/notification/common/notification.js';
9+
import { INotificationService } from '../../../../platform/notification/common/notification.js';
1010
import { IStorageService, StorageScope, StorageTarget } from '../../../../platform/storage/common/storage.js';
1111
import { IProductService } from '../../../../platform/product/common/productService.js';
12-
import { IHostService } from '../../../../platform/host/browser/host.js';
12+
import { IHostService } from '../../../services/host/browser/host.js';
1313
import { IOpenerService } from '../../../../platform/opener/common/opener.js';
1414
import { URI } from '../../../../base/common/uri.js';
1515
import { IAction } from '../../../../base/common/actions.js';
@@ -35,7 +35,7 @@ class CortexideUpdateNotificationContribution extends Disposable implements IWor
3535
super();
3636

3737
// Wait for the window to have focus before showing the notification
38-
this._hostService.hadLastFocus().then(async hadLastFocus => {
38+
this._hostService.hadLastFocus().then(async (hadLastFocus: boolean) => {
3939
if (!hadLastFocus) {
4040
return;
4141
}
@@ -68,18 +68,18 @@ class CortexideUpdateNotificationContribution extends Disposable implements IWor
6868

6969
private _showUpdateNotification(version: string, isNewInstallation: boolean): void {
7070
const message = isNewInstallation
71-
? localize2('updateNotification.welcome', 'Welcome to {0} {1}!', this._productService.nameLong, version)
72-
: localize2('updateNotification.updated', '{0} has been updated to {1}!', this._productService.nameLong, version);
71+
? localize2('updateNotification.welcome', 'Welcome to {0} {1}!', this._productService.nameLong, version).value
72+
: localize2('updateNotification.updated', '{0} has been updated to {1}!', this._productService.nameLong, version).value;
7373

7474
const primaryActions: IAction[] = [];
7575

7676
// Add "What's New" button if release notes URL is available
7777
if (this._productService.releaseNotesUrl) {
7878
primaryActions.push({
7979
id: 'cortexide.update.whatsNew',
80-
label: localize2('updateNotification.whatsNew', 'What\'s New'),
80+
label: localize2('updateNotification.whatsNew', 'What\'s New').value,
8181
enabled: true,
82-
tooltip: localize2('updateNotification.whatsNewTooltip', 'View release notes'),
82+
tooltip: localize2('updateNotification.whatsNewTooltip', 'View release notes').value,
8383
class: undefined,
8484
run: async () => {
8585
const uri = URI.parse(this._productService.releaseNotesUrl!);
@@ -90,9 +90,9 @@ class CortexideUpdateNotificationContribution extends Disposable implements IWor
9090
// Fallback to GitHub releases if no release notes URL is configured
9191
primaryActions.push({
9292
id: 'cortexide.update.whatsNew',
93-
label: localize2('updateNotification.whatsNew', 'What\'s New'),
93+
label: localize2('updateNotification.whatsNew', 'What\'s New').value,
9494
enabled: true,
95-
tooltip: localize2('updateNotification.whatsNewTooltip', 'View release notes'),
95+
tooltip: localize2('updateNotification.whatsNewTooltip', 'View release notes').value,
9696
class: undefined,
9797
run: async () => {
9898
const uri = URI.parse('https://github.com/opencortexide/cortexide/releases');
@@ -110,9 +110,9 @@ class CortexideUpdateNotificationContribution extends Disposable implements IWor
110110
secondary: [
111111
{
112112
id: 'cortexide.update.dismiss',
113-
label: localize2('updateNotification.dismiss', 'Dismiss'),
113+
label: localize2('updateNotification.dismiss', 'Dismiss').value,
114114
enabled: true,
115-
tooltip: localize2('updateNotification.dismissTooltip', 'Dismiss this notification'),
115+
tooltip: localize2('updateNotification.dismissTooltip', 'Dismiss this notification').value,
116116
class: undefined,
117117
run: () => {
118118
// Mark this version as dismissed
@@ -132,11 +132,17 @@ class CortexideUpdateNotificationContribution extends Disposable implements IWor
132132

133133
// Auto-dismiss after 30 seconds if it's not a new installation
134134
if (!isNewInstallation) {
135-
setTimeout(() => {
136-
if (!notificationHandle.isDisposed) {
135+
const timeoutId = setTimeout(() => {
136+
try {
137137
notificationHandle.close();
138+
} catch (e) {
139+
// Notification may have already been closed
138140
}
139141
}, 30000);
142+
// Clean up timeout if notification is closed early
143+
notificationHandle.onDidClose(() => {
144+
clearTimeout(timeoutId);
145+
});
140146
}
141147
}
142148
}

src/vs/workbench/contrib/cortexide/browser/react/src/void-onboarding/VoidOnboarding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ const VoidOnboardingContent = () => {
660660
// can be md
661661
const detailedDescOfWantToUseOption: { [wantToUseOption in WantToUseOption]: string } = {
662662
smart: "Most intelligent and best for agent mode.",
663-
private: "Private-hosted so your data never leaves your computer or network. [Email us](mailto:founders@voideditor.com) for help setting up at your company.",
663+
private: "Private-hosted so your data never leaves your computer or network. [Contact us](https://github.com/opencortexide/cortexide/issues/new) for help setting up at your company.",
664664
cheap: "Use great deals like Gemini 2.5 Pro, or self-host a model with Ollama or vLLM for free.",
665665
all: "",
666666
}

src/vs/workbench/contrib/cortexide/common/cortexideSettingsTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const subTextMdOfProviderName = (providerName: ProviderName): string => {
121121
if (providerName === 'xAI') return 'Get your [API Key here](https://console.x.ai).'
122122
if (providerName === 'mistral') return 'Get your [API Key here](https://console.mistral.ai/api-keys).'
123123
if (providerName === 'openAICompatible') return `Use any provider that's OpenAI-compatible (use this for llama.cpp and more).`
124-
if (providerName === 'googleVertex') return 'You must authenticate before using Vertex with Void. Read more about endpoints [here](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/call-vertex-using-openai-library), and regions [here](https://cloud.google.com/vertex-ai/docs/general/locations#available-regions).'
124+
if (providerName === 'googleVertex') return 'You must authenticate before using Vertex with CortexIDE. Read more about endpoints [here](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/call-vertex-using-openai-library), and regions [here](https://cloud.google.com/vertex-ai/docs/general/locations#available-regions).'
125125
if (providerName === 'microsoftAzure') return 'Read more about endpoints [here](https://learn.microsoft.com/en-us/rest/api/aifoundry/model-inference/get-chat-completions/get-chat-completions?view=rest-aifoundry-model-inference-2024-05-01-preview&tabs=HTTP), and get your API key [here](https://learn.microsoft.com/en-us/azure/search/search-security-api-keys?tabs=rest-use%2Cportal-find%2Cportal-query#find-existing-keys).'
126126
if (providerName === 'awsBedrock') return 'Connect via a LiteLLM proxy or the AWS [Bedrock-Access-Gateway](https://github.com/aws-samples/bedrock-access-gateway). LiteLLM Bedrock setup docs are [here](https://docs.litellm.ai/docs/providers/bedrock).'
127127
if (providerName === 'ollama') return 'Read more about custom [Endpoints here](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-expose-ollama-on-my-network).'

src/vs/workbench/contrib/cortexide/electron-main/cortexideUpdateMainService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class CortexideMainUpdateService extends Disposable implements ICortexide
9595

9696
private async _manualCheckGHTagIfDisabled(explicit: boolean): Promise<CortexideCheckUpdateResponse> {
9797
try {
98-
const response = await fetch('https://api.github.com/repos/cortexide/cortexide/releases/latest');
98+
const response = await fetch('https://api.github.com/repos/opencortexide/cortexide/releases/latest');
9999

100100
const data = await response.json();
101101
const version = data.tag_name;

0 commit comments

Comments
 (0)