Skip to content

Commit 11b1a1d

Browse files
add ipynb
1 parent 8b55fb1 commit 11b1a1d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
".m",
3838
".wls",
3939
".wlt",
40-
".mt"
40+
".mt",
41+
".ipynb",
42+
".wlnb"
4143
],
4244
"configuration": "./wolfram.language-configuration.json"
4345
}
@@ -152,14 +154,14 @@
152154
"menus": {
153155
"explorer/context": [
154156
{
155-
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf",
157+
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf || resourceExtname == .ipynb || resourceExtname == .wlnb",
156158
"command": "wolfram.OpenNotebook",
157159
"group": "navigation"
158160
}
159161
],
160162
"editor/context": [
161163
{
162-
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf",
164+
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf || resourceExtname == .ipynb || resourceExtname == .wlnb",
163165
"command": "wolfram.OpenNotebook",
164166
"group": "navigation"
165167
}

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export function activate(context: ExtensionContext) {
136136
};
137137

138138
let clientOptions: LanguageClientOptions = {
139-
documentSelector: [{ scheme: 'file', language: 'wolfram' }],
139+
documentSelector: [{ language: 'wolfram' }],
140140
initializationOptions: {
141141
implicitTokens: implicitTokens,
142142
// bracketMatcher: bracketMatcher,

0 commit comments

Comments
 (0)