@lvce-editor/editor-worker 19.22.0 → 19.23.0

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.
@@ -11033,8 +11033,9 @@ const getEditorSourceActions = async editorId => {
11033
11033
  const {
11034
11034
  newState
11035
11035
  } = get$7(editorId);
11036
+ const offset = getOffsetAtCursor$1(newState);
11036
11037
  return execute({
11037
- args: [],
11038
+ args: [offset],
11038
11039
  editor: newState,
11039
11040
  event: 'onLanguage',
11040
11041
  method: 'ExtensionHostCodeActions.getSourceActions'
@@ -12972,12 +12973,16 @@ const set = (uid, dom) => {
12972
12973
  const getDom = state => {
12973
12974
  const {
12974
12975
  initial,
12975
- textInfos
12976
+ textInfos,
12977
+ visualDecorations = []
12976
12978
  } = state;
12977
12979
  if (initial && textInfos.length === 0) {
12978
12980
  return [];
12979
12981
  }
12980
- return getEditorVirtualDom(state);
12982
+ return getEditorVirtualDom({
12983
+ ...state,
12984
+ diagnostics: visualDecorations
12985
+ });
12981
12986
  };
12982
12987
  const renderIncremental = (oldState, newState) => {
12983
12988
  const oldDom = oldState.initial ? getDom(oldState) : get(newState.uid) || getDom(oldState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.22.0",
3
+ "version": "19.23.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"