Skip to content

Commit ae1e759

Browse files
author
Arvid Paeglit
committed
fixed issue with readonly workplace folders;
bumped version 2.0.0 added changelog
1 parent 62d2305 commit ae1e759

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.0.0] - 2019-04-27
2+
- Major version. Big refactoring
3+
- Separated a module @deepcode/tsc for all API integration
4+
15
## [1.1.1] - 2019-03-04
26
- Added support for GitPod
37

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"//": "Changing display name requires change in general.ts",
44
"displayName": "DeepCode (Beta)",
55
"description": "DeepCode finds bugs, security vulnerabilities, performance and API issues based on AI. DeepCode's speed of analysis allow us to analyse your code in real time and deliver results when you hit the save button in Visual Studio Code. Supported languages are Java, C/C++, JavaScript, Python, TypeScript and XML. Integrations with GitHub, BitBucket and Gitlab.",
6-
"version": "1.1.1",
6+
"version": "2.0.0",
77
"icon": "images/deepCodeLogo.jpg",
88
"publisher": "deepcode",
99
"homepage": "https://www.deepcode.ai/",

src/deepcode/lib/modules/BundlesModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BundlesModule extends LoginModule
9090
this.currentWorkspacePath = newWorkspacePath;
9191
}
9292

93-
public createWorkspacesList(workspaces: vscode.WorkspaceFolder[]): void {
93+
public createWorkspacesList(workspaces: readonly vscode.WorkspaceFolder[]): void {
9494
for (const folder of workspaces) {
9595
this.workspacesPaths.push(folder.uri.fsPath);
9696
}

src/deepcode/lib/modules/DeepCodeLib.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@ export default class DeepCodeLib extends BundlesModule
117117
return;
118118
}
119119

120-
const workspaceFolders: vscode.WorkspaceFolder[] | undefined =
120+
const workspaceFolders: readonly vscode.WorkspaceFolder[] | undefined =
121121
vscode.workspace.workspaceFolders;
122122

123123
if (!workspaceFolders || !workspaceFolders.length) {
124124
return;
125-
} else {
126-
for await (const folder of workspaceFolders) {
127-
// check if upload confirmed for each of workspaces
128-
if (!this.checkUploadConfirm(folder.uri.fsPath)) {
129-
await this.showConfirmMsg(this, folder.uri.fsPath);
130-
}
125+
}
126+
127+
for await (const folder of workspaceFolders) {
128+
// check if upload confirmed for each of workspaces
129+
if (!this.checkUploadConfirm(folder.uri.fsPath)) {
130+
await this.showConfirmMsg(this, folder.uri.fsPath);
131131
}
132132
}
133133

0 commit comments

Comments
 (0)