Skip to content

Commit

Permalink
feat: use syntax injection for wikilinks
Browse files Browse the repository at this point in the history
  • Loading branch information
memeplex committed May 4, 2022
1 parent b827918 commit f53e768
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 443 deletions.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@
"main": "./dist/extension",
"contributes": {
"markdown.markdownItPlugins": true,
"commands": [
"grammars": [
{
"path": "./syntaxes/injection.json",
"scopeName": "memo.wikilink.injection",
"injectTo": ["text.html.markdown"]
}
],
"commands": [
{
"command": "memo.openDailyNote",
"title": "Open daily note",
Expand Down
3 changes: 0 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as vscode from 'vscode';

import { fileWatcher, cache } from './workspace';
import {
syntaxDecorations,
referenceContextWatcher,
completionProvider,
DocumentLinkProvider,
Expand All @@ -28,8 +27,6 @@ export const activate = async (
): Promise<void | { extendMarkdownIt: typeof extendMarkdownIt }> => {
newVersionNotifier.activate(context);

when('decorations.enabled', () => syntaxDecorations.activate(context));

if (process.env.DISABLE_FILE_WATCHER !== 'true') {
fileWatcher.activate(context);
}
Expand Down
1 change: 0 additions & 1 deletion src/features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ export { default as BacklinksTreeDataProvider } from './BacklinksTreeDataProvide
export { default as extendMarkdownIt } from './extendMarkdownIt';
export { default as codeActionProvider } from './codeActionProvider';
export * as referenceContextWatcher from './referenceContextWatcher';
export * as syntaxDecorations from './syntaxDecorations';
export * as newVersionNotifier from './newVersionNotifier';
288 changes: 0 additions & 288 deletions src/features/syntaxDecorations.spec.ts

This file was deleted.

Loading

0 comments on commit f53e768

Please # to comment.