summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/build-meta.lua15
-rw-r--r--script/provider/provider.lua2
2 files changed, 12 insertions, 5 deletions
diff --git a/script/provider/build-meta.lua b/script/provider/build-meta.lua
index a1900e5e..21390411 100644
--- a/script/provider/build-meta.lua
+++ b/script/provider/build-meta.lua
@@ -1,7 +1,9 @@
-local fs = require 'bee.filesystem'
-local config = require 'config'
-local util = require 'utility'
-local await = require 'await'
+local fs = require 'bee.filesystem'
+local config = require 'config'
+local util = require 'utility'
+local await = require 'await'
+local progress = require 'progress'
+local lang = require 'language'
local m = {}
@@ -136,8 +138,11 @@ function m.build(name, api)
files[api.root][#files[api.root]+1] = buildRootText(api)
- for _, class in ipairs(api.classes) do
+ local proc <close> = progress.create(nil, lang.script.WINDOW_PROCESSING_BUILD_META, 0.5)
+ for i, class in ipairs(api.classes) do
local space = class.namespace ~= '' and class.namespace or api.root
+ proc:setMessage(space)
+ proc:setPercentage(i / #api.classes * 100)
local text = buildText(api.root, class)
files[space][#files[space]+1] = text
await.delay()
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 26c0a777..a5255f44 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1342,6 +1342,8 @@ m.register '$/api/report' {
---@async
function (params)
local buildMeta = require 'provider.build-meta'
+ await.close 'api/report'
+ await.setID 'api/report'
local dir = buildMeta.build('default', params)
client.setConfig {
{