Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix link autocompletion with tags #885

Merged
merged 2 commits into from
Dec 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix link autocompletion with tags
  • Loading branch information
memeplex committed Dec 22, 2021
commit bd9718a61aaeabacb3c20b4f38e28e13421d6cf0
2 changes: 1 addition & 1 deletion packages/foam-vscode/src/features/link-completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class CompletionProvider
// eslint-disable-next-line no-useless-escape
const requiresAutocomplete = cursorPrefix.match(WIKILINK_REGEX);

if (!requiresAutocomplete || cursorPrefix.indexOf('#') >= 0) {
if (!requiresAutocomplete || requiresAutocomplete[0].indexOf('#') >= 0) {
return null;
}

Expand Down