Skip to content
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
Fixes #60, Adds support for md files
  • Loading branch information
cvharris authored Jun 9, 2017
commit 3a36dd8b02810d29b804ed75b6dee89eef985d12
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
const php = provideCompletionItemsGenerator('php', htmlRegex);
const vue = provideCompletionItemsGenerator('vue', htmlRegex);
const twig = provideCompletionItemsGenerator('twig', htmlRegex);
const md = provideCompletionItemsGenerator('md', htmlRegex);
Copy link
Owner

@zignd zignd Jun 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace md with markdown. It's the correct language id and without this properly set the extension will not work for Markdown.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I thought it was simply referring to the file extension. Let me know if that's enough.

const tsReact = provideCompletionItemsGenerator('typescriptreact', jsxRegex);
const js = provideCompletionItemsGenerator('javascript', jsxRegex)
const jsReact = provideCompletionItemsGenerator('javascriptreact', jsxRegex);
Expand All @@ -126,6 +127,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
context.subscriptions.push(php);
context.subscriptions.push(vue);
context.subscriptions.push(twig);
context.subscriptions.push(md);
context.subscriptions.push(tsReact);
context.subscriptions.push(js);
context.subscriptions.push(jsReact);
Expand All @@ -136,4 +138,4 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
export function deactivate(): void {
}

// TODO: Look for CSS class definitions automatically in case a new file is added to the workspace. I think the API does not provide and event for that. Maybe I should consider opening a PR.
// TODO: Look for CSS class definitions automatically in case a new file is added to the workspace. I think the API does not provide and event for that. Maybe I should consider opening a PR.