Skip to content

Commit 8876079

Browse files
committed
Bumped to version 5.1.0 (OpenNingia#185)
* Bumped to version 5.1.0 * Testcase fix * Fixed Tests * Fixed Tests
1 parent a20a2b2 commit 8876079

File tree

5 files changed

+264
-36
lines changed

5 files changed

+264
-36
lines changed

.vscode/launch.json

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"runtimeExecutable": "${execPath}",
2828
"args": [
2929
"--extensionDevelopmentPath=${workspaceFolder}",
30+
"--disable-extensions",
3031
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index",
3132
"${workspaceFolder}/out"
3233
],

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## Release Notes
22

3+
### 5.1.0
4+
5+
_Feature_
6+
7+
- Cleartool context menu as submenu
8+
- Editor title commands
9+
- Handling of internal commands
10+
311
### 5.0.0
412

513
_Feature_

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-clearcase",
33
"displayName": "Unofficial ClearCase SCM Commands",
44
"description": "Unofficial support for IBM Rational ClearCase most common commands",
5-
"version": "5.1.0-beta.1",
5+
"version": "5.1.0",
66
"publisher": "OpenNingia",
77
"license": "MIT",
88
"repository": {

src/clearcase.ts

+10-9
Original file line numberDiff line numberDiff line change
@@ -1148,15 +1148,13 @@ export class ClearCase {
11481148
// convert backslash to slash
11491149
cmd.files = cmd.files.map((f) => this.wslPath(f, false));
11501150

1151-
const outputChannel = this.outputChannel;
1152-
1153-
outputChannel.appendLine(cmd.getCmd().toString(), LogLevel.Debug);
1151+
this.outputChannel.appendLine(cmd.getCmd().toString(), LogLevel.Debug);
11541152
const command = spawn(executable, cmd.getCmd(), { cwd: cwd, env: process.env, detached: true });
11551153

11561154
// remove old running command
11571155
this.killRunningCommand(cmdId, command.pid);
11581156
this.mRunningCommands.set(cmdId, command);
1159-
outputChannel.appendLine(`Command ${cmdId} (${command.pid}) started`, LogLevel.Trace);
1157+
this.outputChannel.appendLine(`Command ${cmdId} (${command.pid}) started`, LogLevel.Trace);
11601158

11611159
let allData: Buffer = Buffer.alloc(0);
11621160
let cmdErrMsg = "";
@@ -1180,19 +1178,22 @@ export class ClearCase {
11801178
});
11811179

11821180
command.on("close", (code, signal) => {
1183-
outputChannel.appendLine(`Command ${cmdId} (${command.pid}), with Signal (${signal}) deleted`, LogLevel.Trace);
1181+
this.outputChannel.appendLine(
1182+
`Command ${cmdId} (${command.pid}), with Signal (${signal}) deleted`,
1183+
LogLevel.Trace
1184+
);
11841185
if (this.mRunningCommands.has(cmdId)) {
11851186
if (this.mRunningCommands.get(cmdId)?.pid === command.pid) {
11861187
this.mRunningCommands.delete(cmdId);
1187-
outputChannel.appendLine(`Command ${cmdId} (${command.pid}) deleted`, LogLevel.Trace);
1188+
this.outputChannel.appendLine(`Command ${cmdId} (${command.pid}) deleted`, LogLevel.Trace);
11881189
}
1189-
outputChannel.appendLine(`Command ${cmdId} (${command.pid}) finished`, LogLevel.Trace);
1190+
this.outputChannel.appendLine(`Command ${cmdId} (${command.pid}) finished`, LogLevel.Trace);
11901191
}
11911192
if (cmdErrMsg !== "") {
11921193
// If something was printed on stderr, log it, regardless of the exit code
1193-
outputChannel.appendLine(`exit code ${code}, stderr: ${cmdErrMsg}`, LogLevel.Error);
1194+
this.outputChannel.appendLine(`exit code ${code}, stderr: ${cmdErrMsg}`, LogLevel.Error);
11941195
} else {
1195-
outputChannel.appendLine(`${allData.toString()}`, LogLevel.Debug);
1196+
this.outputChannel.appendLine(`${allData.toString()}`, LogLevel.Debug);
11961197
}
11971198
if (code !== null && code !== 0 && this.isView && cmdErrMsg !== "") {
11981199
reject(cmdErrMsg);

0 commit comments

Comments
 (0)