Skip to content

Commit aacd984

Browse files
committed
Merge branch 'main' of github.com:Hi7cl4w/diffy-explain-ai
2 parents 95a50ae + bde14a1 commit aacd984

File tree

7 files changed

+28
-24
lines changed

7 files changed

+28
-24
lines changed

.deepsource.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version = 1
2+
3+
[[analyzers]]
4+
name = "javascript"

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"webpack-cli": "^5.0.0"
161161
},
162162
"dependencies": {
163-
"axios": "^1.2.1",
163+
"axios": "^1.6.0",
164164
"axios-retry": "^3.5.0",
165165
"openai": "^4.7.0",
166166
"simple-git": "^3.16.0"

src/Diffy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Diffy extends BaseDiffy {
1313
private gitService: GitService | null = null;
1414
private _openAIService: OpenAiService | null = null;
1515
private workspaceService: WorkspaceService | null = null;
16-
isEnabled: boolean = false;
16+
isEnabled = false;
1717
private _windowsService: any;
1818
context!: ExtensionContext;
1919

@@ -35,7 +35,7 @@ class Diffy extends BaseDiffy {
3535
this.onWorkSpaceChanged();
3636
});
3737
this.isEnabled = true;
38-
sendToOutput(`initiated`);
38+
sendToOutput("initiated");
3939
}
4040

4141
/**

src/service/GitService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import simpleGit from "simple-git";
66

77
class GitService {
88
static _instance: GitService;
9-
isEnabled: boolean = false;
9+
isEnabled = false;
1010
vscodeGitApi: GitApi | null = null;
1111

1212
/**
@@ -47,7 +47,7 @@ class GitService {
4747
const api = await this.getVscodeGitApi();
4848
if (api === undefined) {
4949
this.showErrorMessage(
50-
`Please make sure git repo initiated or scm plugin working`
50+
"Please make sure git repo initiated or scm plugin working"
5151
);
5252
this.isEnabled = false;
5353
return;
@@ -64,7 +64,7 @@ class GitService {
6464
async checkAndWarnRepoExist() {
6565
const repos = this.vscodeGitApi?.repositories;
6666
if (repos === undefined || repos.length === 0) {
67-
this.showErrorMessage(`No Git Repo Found in Current Workspace`);
67+
this.showErrorMessage("No Git Repo Found in Current Workspace");
6868
return false;
6969
}
7070
return true;

src/service/OpenAiService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class OpenAiService implements AIService {
196196
} `
197197
);
198198
} else {
199-
window.showErrorMessage(`OpenAI Error`);
199+
window.showErrorMessage("OpenAI Error");
200200
}
201201
if (reason?.response?.status && openAIKey) {
202202
if (reason?.response?.status === 429) {
@@ -208,7 +208,7 @@ class OpenAiService implements AIService {
208208
}
209209
if (reason.response?.data.error?.type === "invalid_request_error") {
210210
window.showErrorMessage(
211-
`Diffy Error: There was an issue. Server is experiencing downtime/busy. Please try again later.`
211+
"Diffy Error: There was an issue. Server is experiencing downtime/busy. Please try again later."
212212
);
213213
progress?.report({
214214
increment: 1,

src/service/WorkspaceService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class WorkspaceService extends EventEmitter {
4343
!workspace.workspaceFolders ||
4444
workspace.workspaceFolders.length === 0
4545
) {
46-
this.showErrorMessage(`Your are not in a Workspace`);
46+
this.showErrorMessage("Your are not in a Workspace");
4747
return false;
4848
}
4949
return true;

0 commit comments

Comments
 (0)