@lvce-editor/extension-host-worker 8.53.1 → 8.53.2
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.
|
@@ -2026,28 +2026,32 @@ const {
|
|
|
2026
2026
|
type: Array$1
|
|
2027
2027
|
}
|
|
2028
2028
|
});
|
|
2029
|
-
const executeCodeActionProvider = async uid => {
|
|
2029
|
+
const executeCodeActionProvider = async (uid, ...args) => {
|
|
2030
2030
|
if (!hasLegacyProvider(getProvider$b, uid)) {
|
|
2031
|
-
const isolated = await execute$1('code action', 'provideCodeActions', uid);
|
|
2031
|
+
const isolated = await execute$1('code action', 'provideCodeActions', uid, ...args);
|
|
2032
2032
|
if (isolated.found) {
|
|
2033
2033
|
return isolated.result;
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
|
-
|
|
2036
|
+
const executeProvider = executeRegisteredCodeActionProvider;
|
|
2037
|
+
return executeProvider(uid, ...args);
|
|
2037
2038
|
};
|
|
2038
2039
|
const toSourceAction = (languageId, action) => {
|
|
2039
2040
|
return {
|
|
2041
|
+
...(action.edits && {
|
|
2042
|
+
edits: action.edits
|
|
2043
|
+
}),
|
|
2040
2044
|
kind: action.kind,
|
|
2041
2045
|
languageId,
|
|
2042
2046
|
name: action.name
|
|
2043
2047
|
};
|
|
2044
2048
|
};
|
|
2045
|
-
const getSourceActions = async uid => {
|
|
2049
|
+
const getSourceActions = async (uid, ...args) => {
|
|
2046
2050
|
const textDocument = get$a(uid);
|
|
2047
2051
|
if (!textDocument) {
|
|
2048
2052
|
return [];
|
|
2049
2053
|
}
|
|
2050
|
-
const actions = await executeCodeActionProvider(uid);
|
|
2054
|
+
const actions = await executeCodeActionProvider(uid, ...args);
|
|
2051
2055
|
return actions.map(action => toSourceAction(textDocument.languageId, action));
|
|
2052
2056
|
};
|
|
2053
2057
|
const isOrganizeImports = action => {
|