@lvce-editor/source-control-worker 1.21.0 → 1.22.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.
|
@@ -2087,6 +2087,7 @@ const getIndex = (state, eventX, eventY) => {
|
|
|
2087
2087
|
};
|
|
2088
2088
|
|
|
2089
2089
|
const warn = (...args) => {
|
|
2090
|
+
// @ts-ignore
|
|
2090
2091
|
console.warn(...args);
|
|
2091
2092
|
};
|
|
2092
2093
|
|
|
@@ -2200,12 +2201,12 @@ const handleClickDirectoryExpanded = async (state, item) => {
|
|
|
2200
2201
|
};
|
|
2201
2202
|
|
|
2202
2203
|
const readFile = async (uri, encoding = 'utf8') => {
|
|
2203
|
-
const content = await
|
|
2204
|
+
const content = await readFile$1(uri);
|
|
2204
2205
|
return content;
|
|
2205
2206
|
};
|
|
2206
2207
|
|
|
2207
2208
|
const openUri = uri => {
|
|
2208
|
-
return
|
|
2209
|
+
return openUri$1(uri);
|
|
2209
2210
|
};
|
|
2210
2211
|
|
|
2211
2212
|
const openDiffEditor = async (before, afterPath, width) => {
|
|
@@ -2245,7 +2246,7 @@ const selectIndex = async (state, index) => {
|
|
|
2245
2246
|
case File:
|
|
2246
2247
|
return handleClickFile(state, item);
|
|
2247
2248
|
default:
|
|
2248
|
-
|
|
2249
|
+
warn(`unknown item type: ${item.type}`);
|
|
2249
2250
|
return state;
|
|
2250
2251
|
}
|
|
2251
2252
|
};
|