|
|
@ -338,8 +338,10 @@ export const SearchProvider = ({ |
|
|
|
async function fetchWorkspace() { |
|
|
|
async function fetchWorkspace() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const workspace = await plugin.call('filePanel', 'getCurrentWorkspace') |
|
|
|
const workspace = await plugin.call('filePanel', 'getCurrentWorkspace') |
|
|
|
if (workspace) value.setCurrentWorkspace(workspace.name) |
|
|
|
if (workspace && workspace.name) { |
|
|
|
setFiles(await getDirectory('/', plugin)) |
|
|
|
value.setCurrentWorkspace(workspace.name) |
|
|
|
|
|
|
|
setFiles(await getDirectory('/', plugin)) |
|
|
|
|
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
console.log(e) |
|
|
|
console.log(e) |
|
|
|
} |
|
|
|
} |
|
|
|