@lvce-editor/test-worker 12.1.0 → 12.2.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.
- package/dist/api.d.ts +7 -1
- package/dist/testWorkerMain.js +4 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -71,6 +71,11 @@ export interface FileItem {
|
|
|
71
71
|
readonly uri: string;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
export interface Dirent {
|
|
75
|
+
readonly name: string;
|
|
76
|
+
readonly type: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
export interface SelectItem2Options {
|
|
75
80
|
readonly callbackCommand: string;
|
|
76
81
|
readonly label: string;
|
|
@@ -209,6 +214,7 @@ interface Editor {
|
|
|
209
214
|
readonly toggleCompletionDetails: () => Promise<void>;
|
|
210
215
|
readonly toggleLineComment: () => Promise<void>;
|
|
211
216
|
readonly type: (text: string) => Promise<void>;
|
|
217
|
+
readonly unIndent: () => Promise<void>;
|
|
212
218
|
readonly undo: () => Promise<void>;
|
|
213
219
|
}
|
|
214
220
|
|
|
@@ -332,7 +338,7 @@ interface FileSystem {
|
|
|
332
338
|
readonly getTmpDir: ({ scheme }?: FileSystemTmpDirOptions) => Promise<string>;
|
|
333
339
|
readonly loadFixture: (url: string) => Promise<string>;
|
|
334
340
|
readonly mkdir: (uri: string) => Promise<void>;
|
|
335
|
-
readonly readDir: (uri: string) => Promise<
|
|
341
|
+
readonly readDir: (uri: string) => Promise<readonly Dirent[]>;
|
|
336
342
|
readonly readFile: (uri: string) => Promise<string>;
|
|
337
343
|
readonly remove: (uri: string) => Promise<void>;
|
|
338
344
|
readonly setFiles: (files: readonly FileItem[]) => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1969,6 +1969,9 @@ const setDeltaY = async deltaY => {
|
|
|
1969
1969
|
const format = async () => {
|
|
1970
1970
|
await invoke('Editor.format');
|
|
1971
1971
|
};
|
|
1972
|
+
const unIndent = async () => {
|
|
1973
|
+
await invoke('Editor.unIndent');
|
|
1974
|
+
};
|
|
1972
1975
|
const insertLineBreak = async () => {
|
|
1973
1976
|
await invoke('Editor.insertLineBreak');
|
|
1974
1977
|
};
|
|
@@ -2183,6 +2186,7 @@ const Editor = {
|
|
|
2183
2186
|
toggleCompletionDetails,
|
|
2184
2187
|
toggleLineComment,
|
|
2185
2188
|
type,
|
|
2189
|
+
unIndent,
|
|
2186
2190
|
undo
|
|
2187
2191
|
};
|
|
2188
2192
|
|