@lvce-editor/extension-host-worker 6.5.0 → 6.7.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/README.md +0 -4
- package/dist/extensionHostWorkerMain.js +26 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -716,7 +716,7 @@ const registerCommand = command => {
|
|
|
716
716
|
throw new VError(error, `Failed to register command${commandDisplayId}`);
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
|
-
const executeCommand = async (id, ...args) => {
|
|
719
|
+
const executeCommand$1 = async (id, ...args) => {
|
|
720
720
|
try {
|
|
721
721
|
const command = state$c.commands[id];
|
|
722
722
|
if (!command) {
|
|
@@ -3397,7 +3397,7 @@ const api = {
|
|
|
3397
3397
|
// Comment
|
|
3398
3398
|
|
|
3399
3399
|
executeClosingTagProvider: executeClosingTagProvider,
|
|
3400
|
-
executeCommand: executeCommand,
|
|
3400
|
+
executeCommand: executeCommand$1,
|
|
3401
3401
|
executeCommentProvider: executeCommentProvider,
|
|
3402
3402
|
executeCompletionProvider: executeCompletionProvider,
|
|
3403
3403
|
executeDefinitionProvider: executeDefinitionProvider,
|
|
@@ -4944,20 +4944,20 @@ const executeExternalCommand = (method, ...params) => {
|
|
|
4944
4944
|
const BraceCompletionExecuteBraceCompletionProvider = 'ExtensionHostBraceCompletion.executeBraceCompletionProvider';
|
|
4945
4945
|
const ClosingTagExecuteClosingTagProvider = 'ExtensionHostClosingTag.executeClosingTagProvider';
|
|
4946
4946
|
const CommandExecute = 'ExtensionHostCommand.executeCommand';
|
|
4947
|
-
const CompletionExecute = 'ExtensionHostCompletion.execute';
|
|
4948
4947
|
const CommentProviderExecute = 'ExtensionHostCommment.execute';
|
|
4948
|
+
const CompletionExecute = 'ExtensionHostCompletion.execute';
|
|
4949
4949
|
const CompletionResolveExecute = 'ExtensionHostCompletion.executeResolve';
|
|
4950
4950
|
const ConfigurationSetConfiguration = 'ExtensionHostConfiguration.setConfiguration';
|
|
4951
4951
|
const DefinitionExecuteDefinitionProvider = 'ExtensionHostDefinition.executeDefinitionProvider';
|
|
4952
4952
|
const DiagnosticExecuteDiagnosticProvider = 'ExtensionHost.executeDiagnosticProvider';
|
|
4953
4953
|
const ExtensionActivate = 'ExtensionHostExtension.activate';
|
|
4954
4954
|
const FileSystemGetPathSeparator = 'ExtensionHostFileSystem.getPathSeparator';
|
|
4955
|
+
const FileSystemMkdir = 'ExtensionHostFileSystem.mkdir';
|
|
4955
4956
|
const FileSystemReadDirWithFileTypes = 'ExtensionHostFileSystem.readDirWithFileTypes';
|
|
4956
4957
|
const FileSystemReadFile = 'ExtensionHostFileSystem.readFile';
|
|
4958
|
+
const FileSystemRemove = 'ExtensionHostFileSystem.remove';
|
|
4957
4959
|
const FileSystemRename = 'ExtensionHostFileSystem.rename';
|
|
4958
4960
|
const FileSystemWriteFile = 'ExtensionHostFileSystem.writeFile';
|
|
4959
|
-
const FileSystemRemove = 'ExtensionHostFileSystem.remove';
|
|
4960
|
-
const FileSystemMkdir = 'ExtensionHostFileSystem.mkdir';
|
|
4961
4961
|
const FormattingExecuteFormmattingProvider = 'ExtensionHostFormatting.executeFormattingProvider';
|
|
4962
4962
|
const HoverExecute = 'ExtensionHostHover.execute';
|
|
4963
4963
|
const ImplementationExecuteImplementationProvider = 'ExtensionHostImplementation.executeImplementationProvider';
|
|
@@ -4975,9 +4975,11 @@ const SourceControlGetChangedFiles = 'ExtensionHost.sourceControlGetChangedFiles
|
|
|
4975
4975
|
const SourceControlGetEnabledProviderIds = 'ExtensionHostSourceControl.getEnabledProviderIds';
|
|
4976
4976
|
const SourceControlGetFileBefore = 'ExtensionHostSourceControl.GetFileBefore';
|
|
4977
4977
|
const SourceControlGetFileBefore2 = 'ExtensionHostSourceControl.getFileBefore';
|
|
4978
|
-
const SourceControlGetGroups = 'ExtensionHostSourceControl.getGroups';
|
|
4979
4978
|
const SourceControlGetFileDecorations = 'ExtensionHostSourceControl.getFileDecorations';
|
|
4979
|
+
const SourceControlGetGroups = 'ExtensionHostSourceControl.getGroups';
|
|
4980
|
+
const StatusBarExecuteCommand = 'ExtensionHostStatusBar.executeCommand';
|
|
4980
4981
|
const StatusBarGetStatusBarItems = 'ExtensionHost.getStatusBarItems';
|
|
4982
|
+
const StatusBarGetStatusBarItems2 = 'ExtensionHost.getStatusBarItems2';
|
|
4981
4983
|
const StatusBarRegisterChangeListener = 'ExtensionHostStatusBar.registerChangeListener';
|
|
4982
4984
|
const TabCompletionExecuteTabCompletionProvider = 'ExtensionHost.executeTabCompletionProvider';
|
|
4983
4985
|
const TextDocumentSetLanguageId = 'ExtensionHostTextDocument.setLanguageId';
|
|
@@ -5052,9 +5054,24 @@ const getStatusBarItems = async () => {
|
|
|
5052
5054
|
}
|
|
5053
5055
|
return statusBarItems;
|
|
5054
5056
|
};
|
|
5057
|
+
const getStatusBarItems2 = async () => {
|
|
5058
|
+
const providers = Object.values(state$8.providers);
|
|
5059
|
+
const statusBarItems = [];
|
|
5060
|
+
for (const provider of providers) {
|
|
5061
|
+
// @ts-ignore
|
|
5062
|
+
if (provider && provider.getStatusBarItems) {
|
|
5063
|
+
// @ts-ignore
|
|
5064
|
+
statusBarItems.push(...provider.getStatusBarItems());
|
|
5065
|
+
}
|
|
5066
|
+
}
|
|
5067
|
+
return statusBarItems;
|
|
5068
|
+
};
|
|
5055
5069
|
const registerChangeListener = () => {
|
|
5056
5070
|
// TODO
|
|
5057
5071
|
};
|
|
5072
|
+
const executeCommand = async name => {
|
|
5073
|
+
await executeCommand$1(name);
|
|
5074
|
+
};
|
|
5058
5075
|
|
|
5059
5076
|
const Directory$1 = 3;
|
|
5060
5077
|
const File$1 = 7;
|
|
@@ -6200,7 +6217,7 @@ const commandMap = {
|
|
|
6200
6217
|
'ExtensionHost.launchIframeWorker': launchIframeWorker,
|
|
6201
6218
|
[BraceCompletionExecuteBraceCompletionProvider]: executeBraceCompletionProvider,
|
|
6202
6219
|
[ClosingTagExecuteClosingTagProvider]: executeClosingTagProvider,
|
|
6203
|
-
[CommandExecute]: executeCommand,
|
|
6220
|
+
[CommandExecute]: executeCommand$1,
|
|
6204
6221
|
[CommentProviderExecute]: executeCommentProvider,
|
|
6205
6222
|
[CompletionExecute]: executeCompletionProvider,
|
|
6206
6223
|
[CompletionResolveExecute]: executeresolveCompletionItemProvider,
|
|
@@ -6234,7 +6251,9 @@ const commandMap = {
|
|
|
6234
6251
|
[SourceControlGetFileBefore2]: getFileBefore,
|
|
6235
6252
|
[SourceControlGetFileDecorations]: getFileDecorations,
|
|
6236
6253
|
[SourceControlGetGroups]: getGroups,
|
|
6254
|
+
[StatusBarExecuteCommand]: executeCommand,
|
|
6237
6255
|
[StatusBarGetStatusBarItems]: getStatusBarItems,
|
|
6256
|
+
[StatusBarGetStatusBarItems2]: getStatusBarItems2,
|
|
6238
6257
|
[StatusBarRegisterChangeListener]: registerChangeListener,
|
|
6239
6258
|
[TabCompletionExecuteTabCompletionProvider]: executeTabCompletionProvider,
|
|
6240
6259
|
[TextDocumentSetLanguageId]: setLanguageId,
|