File tree 4 files changed +2
-17
lines changed
gui/src/components/StyledMarkdownPreview 4 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -148,14 +148,6 @@ export class GUISelectors {
148
148
}
149
149
150
150
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
-
159
151
return view . findWebElement (
160
152
By . xpath ( `//*[@class="thread-message"]//*[contains(text(), "${ text } ")]` ) ,
161
153
) ;
Original file line number Diff line number Diff line change @@ -382,8 +382,7 @@ describe("GUI Test", () => {
382
382
} ) ;
383
383
384
384
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 ( ) => {
387
386
await GUIActions . selectModelFromDropdown ( view , "SYSTEM MESSAGE MOCK LLM" ) ;
388
387
const [ messageInput ] = await GUISelectors . getMessageInputFields ( view ) ;
389
388
await messageInput . sendKeys ( "Hello" ) ;
Original file line number Diff line number Diff line change @@ -1037,10 +1037,3 @@ body[data-color-mode*="light"] {
1037
1037
.token .entity {
1038
1038
cursor : help;
1039
1039
}
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
- } */
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export function remarkTables() {
32
32
/ ( (?: \| * [ ^ | \r \n ] + * ) + \| ) (?: \r ? \n ) ( (?: \| [ : ] ? - + [ : ] ? ) + \| ) ( (?: (?: \r ? \n ) (?: \| * [ ^ | \r \n ] + * ) + \| ) + ) / g;
33
33
//// header // newline // |:---|----:| // new line // table rows
34
34
35
+ // prevent modifying if no markdown tables are present
35
36
if ( ! buffer . match ( tableRegex ) ) {
36
37
return ;
37
38
}
You can’t perform that action at this time.
0 commit comments