Skip to content

Commit

Permalink
Show the loading message while running
Browse files Browse the repository at this point in the history
  • Loading branch information
SangsooNam committed Nov 11, 2024
1 parent f9a67d1 commit c95e7f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-extension-quick-grep",
"displayName": "Quick Grep",
"description": "Git Grep and Ripgrep extension for Visual Studio Code. Easy to search code, see results, and navigate with the quick pick view.",
"version": "0.2.3",
"version": "1.0.0",
"publisher": "sangsoonam",
"private": true,
"license": "MIT",
Expand Down
10 changes: 8 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ export function activate(context: vscode.ExtensionContext) {
let documentUpdated: boolean;

context.subscriptions.push(
vscode.workspace.onDidSaveTextDocument(()=> {
vscode.workspace.onDidSaveTextDocument(() => {
documentUpdated = true;
}),
vscode.workspace.onDidDeleteFiles(()=> {
vscode.workspace.onDidDeleteFiles(() => {
documentUpdated = true;
}),
vscode.commands.registerCommand('quickgrep.action', () => {
Expand Down Expand Up @@ -120,6 +120,12 @@ export function activate(context: vscode.ExtensionContext) {
return;
}
documentUpdated = false;
quickPick.items = [
{
label: 'Loading...',
alwaysShow: true,
},
];
quickGrep(value).then((items) => {
cacheValue = value;
cacheItems = items as vscode.QuickPickItem[];
Expand Down

0 comments on commit c95e7f2

Please sign in to comment.