Skip to content

Commit 33e95bc

Browse files
committed
Fix logo
1 parent 18f46bd commit 33e95bc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/logo.png

-28.9 KB
Loading

docs/logo_blue.png

39 KB
Loading

src/extension.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface QuickPickItemWithPath extends QuickPickItem {
1010

1111
const projectRoot = workspace.rootPath ? workspace.rootPath : '.';
1212

13+
console.log(projectRoot)
1314
export function activate(context: ExtensionContext) {
1415

1516
(async () => {
@@ -25,7 +26,7 @@ export function activate(context: ExtensionContext) {
2526
}
2627
const lines = stdout.split(/\n/).filter(l => l !== '');
2728
if (!lines.length) {
28-
window.showInformationMessage('There are no items')
29+
window.showInformationMessage('There are no items.')
2930
return resolve([]);
3031
}
3132
return resolve(lines.map(l => {
@@ -41,10 +42,9 @@ export function activate(context: ExtensionContext) {
4142
});
4243
});
4344

44-
const options: QuickPickOptions = {
45-
matchOnDescription: true,
46-
};
45+
const options: QuickPickOptions = { matchOnDescription: true };
4746
const item = await window.showQuickPick(fetchItems(), options);
47+
if (!item) return;
4848
const [file, line] = item.fullPath.split(':');
4949
const doc = await workspace.openTextDocument(projectRoot + '/' + file);
5050
await window.showTextDocument(doc);

vscode-git-grep-0.0.4.vsix

443 KB
Binary file not shown.

0 commit comments

Comments
 (0)