Skip to content

Commit 1a29eba

Browse files
add back
1 parent 5896b82 commit 1a29eba

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
".wls",
4343
".wlt",
4444
".mt",
45-
".vsnb"
45+
".vsnb",
46+
".ipynb",
47+
".wlnb"
4648
],
4749
"configuration": "./wolfram.language-configuration.json"
4850
}
@@ -211,19 +213,19 @@
211213
"menus": {
212214
"explorer/context": [
213215
{
214-
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf",
216+
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf || resourceExtname == .ipynb || resourceExtname == .wlnb",
215217
"command": "wolfram.OpenNotebook",
216218
"group": "navigation"
217219
}
218220
],
219221
"editor/context": [
220222
{
221-
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf",
223+
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf || resourceExtname == .ipynb || resourceExtname == .wlnb",
222224
"command": "wolfram.OpenNotebook",
223225
"group": "navigation"
224226
},
225227
{
226-
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf",
228+
"when": "resourceExtname == .nb || resourceExtname == .m || resourceExtname == .wl || resourceExtname == .wls || resourceExtname == .cdf || resourceExtname == .ipynb || resourceExtname == .wlnb",
227229
"command": "workbench.action.terminal.runSelectedText",
228230
"group": "navigation"
229231
},

src/extension/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export function activate(context: vscode.ExtensionContext) {
205205
};
206206

207207
let clientOptions: LanguageClientOptions = {
208-
documentSelector: [{ scheme: 'file', language: 'wolfram' }],
208+
documentSelector: [{ language: 'wolfram' }],
209209
initializationOptions: {
210210
implicitTokens: implicitTokens,
211211
// bracketMatcher: bracketMatcher,

0 commit comments

Comments
 (0)