mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-19 14:22:19 +01:00
Clean up formatting.
This commit is contained in:
@@ -89,8 +89,8 @@ export class Git {
|
||||
}
|
||||
|
||||
const stagedTitle = scmHeaders.find((val) => {
|
||||
return val.match(/staged/i) ? true : false;
|
||||
});
|
||||
return val.match(/staged/i) ? true : false;
|
||||
});
|
||||
|
||||
if (!stagedTitle) {
|
||||
return Promise.reject(`No 'Staged' header title found in SCM viewlet`);
|
||||
@@ -98,7 +98,7 @@ export class Git {
|
||||
|
||||
const monacoRowIndex = scmHeaders.indexOf(stagedTitle);
|
||||
try {
|
||||
return this.spectron.waitFor(this.spectron.client.getText, `.scm-status.show-file-icons .monaco-list-rows>:nth-child(${monacoRowIndex+1}) .monaco-count-badge`);
|
||||
return this.spectron.waitFor(this.spectron.client.getText, `.scm-status.show-file-icons .monaco-list-rows>:nth-child(${monacoRowIndex + 1}) .monaco-count-badge`);
|
||||
} catch (e) {
|
||||
return Promise.reject('Stage count badge cannot be found');
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@ export class IntegratedTerminal {
|
||||
for (let i = 0; i < rows.value.length; i++) {
|
||||
let rowText;
|
||||
try {
|
||||
rowText = await this.spectron.client.getText(`${selector}>:nth-child(${i+1})`);
|
||||
rowText = await this.spectron.client.getText(`${selector}>:nth-child(${i + 1})`);
|
||||
} catch (e) {
|
||||
return Promise.reject(`Failed to obtain text from line ${i+1} from the terminal.`);
|
||||
return Promise.reject(`Failed to obtain text from line ${i + 1} from the terminal.`);
|
||||
}
|
||||
if (rowText.trim() === result) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user