Skip to content

Commit

Permalink
perf: provide completion for all markdown files
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-jerry committed Oct 7, 2024
1 parent 760c925 commit 3ba06e9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import { type ExtensionContext, languages, window, workspace } from 'vscode'
import { type DocumentSelector, type ExtensionContext, languages, window, workspace } from 'vscode'
import { registerCommands } from './commands'
import { HexoCompletionProvider } from './hexoCompletionProvider'
import plugin from './markdownItHexoResource'
Expand All @@ -14,10 +14,7 @@ export function activate(context: ExtensionContext) {
return
}

const selectors = [
{ language: 'markdown', scheme: 'file' },
{ language: 'markdown', scheme: 'untitled' },
]
const selectors: DocumentSelector = [{ language: 'markdown' }]

const completionItemProvider = languages.registerCompletionItemProvider(
selectors,
Expand Down

0 comments on commit 3ba06e9

Please sign in to comment.