@theia/ai-chat-ui 1.70.0-next.28 → 1.70.0-next.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -481,7 +481,7 @@ let AIChatInputWidget = class AIChatInputWidget extends browser_2.ReactWidget {
|
|
|
481
481
|
const topAtPos = editor.getTopForPosition(line, col);
|
|
482
482
|
const topAtLineStart = editor.getTopForLineNumber(line);
|
|
483
483
|
const topAtLineEnd = editor.getTopForPosition(line, model.getLineMaxColumn(line));
|
|
484
|
-
const lineHeight = editor.getOption(
|
|
484
|
+
const lineHeight = editor.getOption(75 /* EditorOption.lineHeight */);
|
|
485
485
|
const toleranceValue = 0.5;
|
|
486
486
|
const isFirstVisualOfThisLine = Math.abs(topAtPos - topAtLineStart) < toleranceValue;
|
|
487
487
|
const isLastVisualOfThisLine = Math.abs(topAtPos - topAtLineEnd) < toleranceValue || (topAtPos > topAtLineEnd - lineHeight + toleranceValue);
|
|
@@ -1081,7 +1081,7 @@ const ChatInput = (props) => {
|
|
|
1081
1081
|
// Disable code lens and inlay hints to avoid console errors from other contributions
|
|
1082
1082
|
codeLens: false,
|
|
1083
1083
|
inlayHints: { enabled: 'off' },
|
|
1084
|
-
hover: { enabled:
|
|
1084
|
+
hover: { enabled: 'on' },
|
|
1085
1085
|
autoSizing: false, // we handle the sizing ourselves
|
|
1086
1086
|
scrollBeyondLastLine: false,
|
|
1087
1087
|
scrollBeyondLastColumn: 0,
|
|
@@ -215,7 +215,7 @@ const CodeWrapper = (props) => {
|
|
|
215
215
|
wordWrap: 'off',
|
|
216
216
|
codeLens: false,
|
|
217
217
|
inlayHints: { enabled: 'off' },
|
|
218
|
-
hover: { enabled:
|
|
218
|
+
hover: { enabled: 'off' }
|
|
219
219
|
});
|
|
220
220
|
editor.document.textEditorModel.setValue(props.content);
|
|
221
221
|
editor.getControl().onContextMenu(e => props.contextMenuCallback(e.event));
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/ai-chat-ui",
|
|
3
|
-
"version": "1.70.0-next.
|
|
3
|
+
"version": "1.70.0-next.43+8b83716cc",
|
|
4
4
|
"description": "Theia - AI Chat UI Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/ai-chat": "1.70.0-next.
|
|
7
|
-
"@theia/ai-core": "1.70.0-next.
|
|
8
|
-
"@theia/core": "1.70.0-next.
|
|
9
|
-
"@theia/editor": "1.70.0-next.
|
|
10
|
-
"@theia/editor-preview": "1.70.0-next.
|
|
11
|
-
"@theia/filesystem": "1.70.0-next.
|
|
12
|
-
"@theia/monaco": "1.70.0-next.
|
|
13
|
-
"@theia/monaco-editor-core": "1.
|
|
14
|
-
"@theia/preferences": "1.70.0-next.
|
|
15
|
-
"@theia/workspace": "1.70.0-next.
|
|
6
|
+
"@theia/ai-chat": "1.70.0-next.43+8b83716cc",
|
|
7
|
+
"@theia/ai-core": "1.70.0-next.43+8b83716cc",
|
|
8
|
+
"@theia/core": "1.70.0-next.43+8b83716cc",
|
|
9
|
+
"@theia/editor": "1.70.0-next.43+8b83716cc",
|
|
10
|
+
"@theia/editor-preview": "1.70.0-next.43+8b83716cc",
|
|
11
|
+
"@theia/filesystem": "1.70.0-next.43+8b83716cc",
|
|
12
|
+
"@theia/monaco": "1.70.0-next.43+8b83716cc",
|
|
13
|
+
"@theia/monaco-editor-core": "1.108.201",
|
|
14
|
+
"@theia/preferences": "1.70.0-next.43+8b83716cc",
|
|
15
|
+
"@theia/workspace": "1.70.0-next.43+8b83716cc",
|
|
16
16
|
"date-fns": "^4.1.0",
|
|
17
17
|
"tslib": "^2.6.2",
|
|
18
18
|
"uuid": "^9.0.1"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"nyc": {
|
|
57
57
|
"extends": "../../configs/nyc.json"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "8b83716cc93de231a1d472d4ae4016711dbd31a3"
|
|
60
60
|
}
|
|
@@ -1347,7 +1347,7 @@ const ChatInput: React.FunctionComponent<ChatInputProperties> = (props: ChatInpu
|
|
|
1347
1347
|
// Disable code lens and inlay hints to avoid console errors from other contributions
|
|
1348
1348
|
codeLens: false,
|
|
1349
1349
|
inlayHints: { enabled: 'off' },
|
|
1350
|
-
hover: { enabled:
|
|
1350
|
+
hover: { enabled: 'on' },
|
|
1351
1351
|
autoSizing: false, // we handle the sizing ourselves
|
|
1352
1352
|
scrollBeyondLastLine: false,
|
|
1353
1353
|
scrollBeyondLastColumn: 0,
|
|
@@ -244,7 +244,7 @@ export const CodeWrapper = (props: {
|
|
|
244
244
|
wordWrap: 'off',
|
|
245
245
|
codeLens: false,
|
|
246
246
|
inlayHints: { enabled: 'off' },
|
|
247
|
-
hover: { enabled:
|
|
247
|
+
hover: { enabled: 'off' }
|
|
248
248
|
});
|
|
249
249
|
editor.document.textEditorModel.setValue(props.content);
|
|
250
250
|
editor.getControl().onContextMenu(e => props.contextMenuCallback(e.event));
|