Skip to content

Commit a4bd7d4

Browse files
committed
feat: show local endpoint info (triples count, files loaded) in the settings panel�
fix: fix loaded file uri in info msg
1 parent 2e2205e commit a4bd7d4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@ export async function activate(context: vscode.ExtensionContext) {
397397
const count = await localEndpoint.addFile(targetUri);
398398
const { files } = localEndpoint.getInfo();
399399
queryPanel?.refreshEndpoints();
400-
vscode.window.showInformationMessage(`Local SPARQL endpoint: ${count} triples loaded (${files.join(', ')})`);
400+
vscode.window.showInformationMessage(
401+
`Local SPARQL endpoint: ${count} triples loaded (${files.map((f) => f.label).join(', ')})`,
402+
);
401403
} catch (err: unknown) {
402404
vscode.window.showErrorMessage(`Failed to load RDF file: ${err instanceof Error ? err.message : String(err)}`);
403405
}

0 commit comments

Comments
 (0)