@huawei-ide/codearts 1.0.52 → 1.0.54
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 +5 -2
- package/index.js +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@ if (window.location.origin.endsWith('.net')) {
|
|
|
8
8
|
}
|
|
9
9
|
const iframe = document.createElement('iframe');
|
|
10
10
|
iframe.id = 'codeartside';
|
|
11
|
-
iframe.src = hcOrigin + '/codearts-core-web-static/1.0.
|
|
11
|
+
iframe.src = hcOrigin + '/codearts-core-web-static/1.0.88/resources/server/gitcode.html';
|
|
12
12
|
|
|
13
13
|
const OS = getOS();
|
|
14
14
|
const ON_DID_CHANGE = 'onDidChange';
|
|
@@ -211,6 +211,14 @@ export function setHighlightLineNumber(config) {
|
|
|
211
211
|
postMessage(message);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
+
export function enableMarkdownPreview(isEnable) {
|
|
215
|
+
const message = {
|
|
216
|
+
type: 'enableMarkdownPreview',
|
|
217
|
+
data: isEnable
|
|
218
|
+
};
|
|
219
|
+
postMessage(message);
|
|
220
|
+
}
|
|
221
|
+
|
|
214
222
|
function postMessage(message) {
|
|
215
223
|
iframe.contentWindow.postMessage(message, hcOrigin);
|
|
216
224
|
}
|