Skip to content

Commit bece24a

Browse files
committed
Declare support for markdown files
1 parent 44e161d commit bece24a

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@
5656
},
5757
"activationEvents": [
5858
"onLanguage:python",
59+
"onLanguage:markdown",
5960
"workspaceContains:*.py",
60-
"workspaceContains:*.ipynb"
61+
"workspaceContains:*.ipynb",
62+
"workspaceContains:*.md"
6163
],
6264
"main": "./dist/extension.js",
6365
"scripts": {

src/common/utilities.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,16 @@ export async function getProjectRoot(): Promise<WorkspaceFolder> {
3737

3838
export function getDocumentSelector(): DocumentSelector {
3939
return isVirtualWorkspace()
40-
? [{ language: "python" }]
40+
? [
41+
{ language: "python" },
42+
{ language: "markdown" },
43+
]
4144
: [
4245
{ scheme: "file", language: "python" },
4346
{ scheme: "untitled", language: "python" },
4447
{ scheme: "vscode-notebook", language: "python" },
4548
{ scheme: "vscode-notebook-cell", language: "python" },
49+
{ scheme: "file", language: "markdown" },
50+
{ scheme: "untitled", language: "markdown" },
4651
];
4752
}

0 commit comments

Comments
 (0)