Skip to content

Commit 699e3b6

Browse files
committed
cleanup
1 parent 0a49881 commit 699e3b6

File tree

4 files changed

+2
-17
lines changed

4 files changed

+2
-17
lines changed

extensions/vscode/e2e/selectors/GUI.selectors.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,6 @@ export class GUISelectors {
148148
}
149149

150150
public static getThreadMessageByText(view: WebView, text: string) {
151-
void view.findElement(By.xpath(`//*[@class="thread-message"]`)).then(e=>{
152-
console.log('debug1 thread element: ', e);
153-
});
154-
155-
void view.findElement(By.xpath(`//*[@class="thread-message"]`)).getText().then(e=>{
156-
console.log('debug1 thread message: ', e);
157-
});
158-
159151
return view.findWebElement(
160152
By.xpath(`//*[@class="thread-message"]//*[contains(text(), "${text}")]`),
161153
);

extensions/vscode/e2e/tests/GUI.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,7 @@ describe("GUI Test", () => {
382382
});
383383

384384
describe("Repeat back the system message", () => {
385-
it("should repeat back the system message", async function () {
386-
this.timeout(DEFAULT_TIMEOUT.XL);
385+
it("should repeat back the system message", async () => {
387386
await GUIActions.selectModelFromDropdown(view, "SYSTEM MESSAGE MOCK LLM");
388387
const [messageInput] = await GUISelectors.getMessageInputFields(view);
389388
await messageInput.sendKeys("Hello");

gui/src/components/StyledMarkdownPreview/markdown.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,10 +1037,3 @@ body[data-color-mode*="light"] {
10371037
.token.entity {
10381038
cursor: help;
10391039
}
1040-
/*
1041-
.markdown-table th {
1042-
background-color: var(--color-fg-muted);
1043-
}
1044-
.markdown-table td {
1045-
background-color: var(--color-fg-subtle);
1046-
} */

gui/src/components/StyledMarkdownPreview/utils/remarkTables.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export function remarkTables() {
3232
/((?:\| *[^|\r\n]+ *)+\|)(?:\r?\n)((?:\|[ :]?-+[ :]?)+\|)((?:(?:\r?\n)(?:\| *[^|\r\n]+ *)+\|)+)/g;
3333
//// header // newline // |:---|----:| // new line // table rows
3434

35+
// prevent modifying if no markdown tables are present
3536
if(!buffer.match(tableRegex)) {
3637
return;
3738
}

0 commit comments

Comments
 (0)