Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

106 annoyance error notifications for none clearcase files #111

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
c9c7c68
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
Feb 21, 2019
40b4f94
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Feb 28, 2019
ad2e75c
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
Feb 28, 2019
0bd5c74
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Feb 28, 2019
faf2e9c
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Mar 7, 2019
1c24548
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Mar 11, 2019
aa3b7a3
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Mar 28, 2019
848e537
Merge remote-tracking branch 'openninja/master'
fr43nk Apr 10, 2019
7f00e09
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Apr 15, 2019
19ba3ce
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Apr 25, 2019
a46ad8a
Added Webview view type support
fr43nk Apr 30, 2019
ead103b
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Apr 30, 2019
49f1e7e
Merge branch 'master' into feature/ccwebview01
fr43nk Apr 30, 2019
7d3dd3e
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk May 6, 2019
f69088c
Further correction in view detection
fr43nk May 7, 2019
023ddb5
Merge branch 'master' into feature/ccwebview01
fr43nk May 8, 2019
3863b2a
Added cleartool executable configuration date
fr43nk May 8, 2019
6190669
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk May 9, 2019
1700c42
Merge branch 'master' into feature/ccwebview01
fr43nk May 9, 2019
8351c81
Added configuration for WebView
fr43nk May 9, 2019
b6d2632
Use Login command
fr43nk May 10, 2019
96212fe
Fixed cleartool executable constructor
fr43nk May 10, 2019
eeb70a8
Minor fixes in login
fr43nk May 13, 2019
a916ff1
More debug information
fr43nk May 13, 2019
9f12c59
Changes in extension initialization
fr43nk May 22, 2019
0330a6e
Added return Promise in init method
fr43nk May 22, 2019
8082b80
try - catch on init
fr43nk May 22, 2019
c837b1d
Next release version
fr43nk May 22, 2019
ae36318
Merge remote-tracking branch 'origin/feature/ccwebview02' into integr…
Jul 20, 2022
989537e
merged remote cleartool feature
fr43nk Jul 21, 2022
5adc7f4
Revert "merged remote cleartool feature"
fr43nk Jul 21, 2022
3f18b35
Merge commit 'ae36318bb1e5179d25ff5777d1cdd616f904177c'
fr43nk Jul 21, 2022
efc5359
Added context menu items
fr43nk Jul 21, 2022
a5df661
Fixed codefactor issues
fr43nk Jul 21, 2022
352e4cc
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Jul 21, 2022
69132ad
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Jul 22, 2022
66786d6
Bumped to version 4.0.0
fr43nk Jul 22, 2022
4e5c105
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Jul 22, 2022
2d61b99
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
fr43nk Jul 22, 2022
4ed6807
Merge pull request #4 from OpenNingia/master
fr43nk Jul 22, 2022
27427ff
Bumped to version 4.0.1
fr43nk Jul 22, 2022
549adc6
Bumped to version 4.0.1
fr43nk Jul 22, 2022
de9e55e
Merge branch 'master' of https://github.com/fr43nk/vscode-clearcase
fr43nk Jul 22, 2022
eabde8f
Added Webpack for faster startup
Jul 29, 2022
0f75d77
Bump to version 4.1.0
Jul 29, 2022
f25d513
integrate openningia/master
Jul 29, 2022
dc9908b
Merge branch 'master' of https://github.com/OpenNingia/vscode-clearcase
Jul 29, 2022
074283c
Fixed issue #106
Aug 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions src/clearcase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,19 +522,33 @@ export class ClearCase {
* Alternate methode detecting if the given path is part of an clearcase
* view.
*/
public async hasConfigspec(): Promise<boolean> {
public async hasConfigspec(): Promise<boolean> {
let result: boolean = false;
try {
if ( workspace.workspaceFolders !== undefined && workspace.workspaceFolders.length > 0) {
if (workspace.workspaceFolders !== undefined && workspace.workspaceFolders.length > 0) {
let cmd: CCArgs = new CCArgs(["catcs"]);
await this.runCleartoolCommand(cmd, workspace.workspaceFolders[0].uri.fsPath, (data) => {
});
return true;
await this.runCleartoolCommand(
cmd,
workspace.workspaceFolders[0].uri.fsPath,
(data) => {},
(finishRes: string) => {
if (finishRes === "error") {
result = false;
} else {
result = true;
}
},
(errorRes: string) => {
if (errorRes.length > 0) {
result = false;
}
}
);
}
return false;
}
catch (error) {
return false;
} catch (error) {
result = false;
}
return result;
}

/**
Expand Down Expand Up @@ -918,7 +932,9 @@ export class ClearCase {
if( self.isView && cmdErrMsg !== "" ) {
window.showErrorMessage(`${cmdErrMsg}`, {modal: false});
}

if (typeof onFinished === "function") {
onFinished("error");
}
} else {
if (typeof onFinished === 'function') {
onFinished((allData.length > 0) ? allData.toString() : allDataStr);
Expand Down
2 changes: 0 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ async function _activate(context: vscode.ExtensionContext, disposables: vscode.D
provider.clearCase?.onCommandExecuted(() => {
uiInfo.initialQuery();
}, uiInfo);
} else {
vscode.window.showWarningMessage("VSCode-Clearcase extension could not be started");
}
} catch {
vscode.window.showWarningMessage("VSCode-Clearcase extension could not be started (catched)");
Expand Down