Skip to content

Commit 73d56a2

Browse files
authored
Merge pull request #318 from devchat-ai/update_new_topic
Update new topic
2 parents 02b4853 + 331b72f commit 73d56a2

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/contributes/commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ function registerAskForFileCommand(context: vscode.ExtensionContext) {
8585
function regAccessKeyCommand(context: vscode.ExtensionContext, provider: string) {
8686
context.subscriptions.push(
8787
vscode.commands.registerCommand(`DevChat.AccessKey.${provider}`, async () => {
88+
vscode.commands.executeCommand("devchat-view.focus");
8889
const passwordInput: string | undefined = await vscode.window.showInputBox({
8990
password: true,
9091
title: `Set ${provider} Key`,

src/panel/statusBarView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function createStatusBarItem(context: vscode.ExtensionContext): vscode.St
4242
if (apiKeyStatus !== 'has valid access key') {
4343
statusBarItem.text = `$(warning)DevChat`;
4444
statusBarItem.tooltip = `${apiKeyStatus}`;
45-
statusBarItem.command = 'devchat-view.focus';
45+
statusBarItem.command = 'DevChat.AccessKey.DevChat';
4646
progressBar.update(`Checking dependencies: ${apiKeyStatus}.`, 0);
4747
return;
4848
}

src/panel/statusBarViewBase.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ export async function dependencyCheck(): Promise<[string, string]> {
8282

8383
// define subfunction to check api key
8484
const getApiKeyStatus = async (): Promise<string> => {
85-
if (apiKeyStatus === '' || apiKeyStatus === 'Please set the API key') {
85+
if (apiKeyStatus === '' || apiKeyStatus === 'Click "DevChat" status icon to set key') {
8686
const accessKey = await ApiKeyManager.getApiKey();
8787
if (accessKey) {
8888
apiKeyStatus = 'has valid access key';
8989
return apiKeyStatus;
9090
} else {
91-
apiKeyStatus = 'Please set the API key';
91+
apiKeyStatus = 'Click "DevChat" status icon to set key';
9292
return apiKeyStatus;
9393
}
9494
} else {

src/panel/webviewManager.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ export default class WebviewManager {
3030
}
3131

3232
private _getHtmlContent(): string {
33-
let mainHtml = 'welcome.html';
34-
// if open a folder, then load index.html
35-
if (vscode.workspace.workspaceFolders) {
36-
mainHtml = 'index.html';
37-
}
33+
let mainHtml = 'index.html';
3834

3935
// const htmlPath = vscode.Uri.joinPath(this._extensionUri, 'dist', 'assets', 'chatPanel.html');
4036
const htmlPath = vscode.Uri.joinPath(this._extensionUri, 'dist', mainHtml);

0 commit comments

Comments
 (0)