@huawei-ide/codearts 1.0.69 → 1.0.70
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.
- package/README.md +3 -0
- package/index.js +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -14,7 +14,7 @@ if (gitcodeOriginSuffix) {
|
|
|
14
14
|
}
|
|
15
15
|
const iframe = document.createElement('iframe');
|
|
16
16
|
iframe.id = 'codeartside';
|
|
17
|
-
iframe.src = hcOrigin + '/codearts-core-web-static/1.0.
|
|
17
|
+
iframe.src = hcOrigin + '/codearts-core-web-static/1.0.103/resources/server/gitcode.html';
|
|
18
18
|
|
|
19
19
|
const OS = getOS();
|
|
20
20
|
const ON_DID_CHANGE = 'onDidChange';
|
|
@@ -249,6 +249,14 @@ export function setEditorWordWrap(wordWrap) {
|
|
|
249
249
|
postMessage(message);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
+
export function searchText(text) {
|
|
253
|
+
const message = {
|
|
254
|
+
type: 'searchText',
|
|
255
|
+
data: text
|
|
256
|
+
};
|
|
257
|
+
postMessage(message);
|
|
258
|
+
}
|
|
259
|
+
|
|
252
260
|
function postMessage(message) {
|
|
253
261
|
iframe.contentWindow.postMessage(message, hcOrigin);
|
|
254
262
|
}
|