Skip to content

Commit

Permalink
fix: #1
Browse files Browse the repository at this point in the history
  • Loading branch information
tjx666 committed Jan 3, 2024
1 parent fc1423a commit 7ad440e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/fileInfo/fileSizeStatusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export async function fileSizeStatusBar(context: vscode.ExtensionContext) {
return statusBarItem;
};

const supportedSchema = new Set(['vscode-userdata', 'file']);
const updateStatusBar = async () => {
const { activeTextEditor } = vscode.window;
if (!activeTextEditor || activeTextEditor.document.uri.scheme !== 'file') {
if (!activeTextEditor || !supportedSchema.has(activeTextEditor.document.uri.scheme)) {
statusBarItem?.hide();
return;
}
Expand Down

0 comments on commit 7ad440e

Please sign in to comment.