@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.
Files changed (3) hide show
  1. package/README.md +3 -0
  2. package/index.js +9 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -170,3 +170,6 @@
170
170
 
171
171
  22. 设置编辑区文本是否自动换行,默认关闭
172
172
  `ide.setEditorWordWrap(wordWrap: boolean)`
173
+
174
+ 23. 搜索编辑区文本
175
+ `ide.searchText(text: string)`
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.102/resources/server/gitcode.html';
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huawei-ide/codearts",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {