File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 130
130
{
131
131
"command" : " vscode-objectscript.studio.actions" ,
132
132
"when" : " vscode-objectscript.connectActive && resourceScheme == isfs"
133
+ },
134
+ {
135
+ "command" : " vscode-objectscript.studio.contextActions" ,
136
+ "when" : " false"
133
137
}
134
138
],
135
139
"view/title" : [
Original file line number Diff line number Diff line change @@ -337,12 +337,8 @@ class StudioActions {
337
337
}
338
338
}
339
339
340
- // export function contextMenu(uri: vscode.Uri): Promise<void> {
341
- // return doMenuAction(uri, "context");
342
- // }
343
-
344
340
export async function mainMenu ( uri : vscode . Uri ) {
345
- uri = uri || vscode . window . activeTextEditor . document . uri ;
341
+ uri = uri || vscode . window . activeTextEditor ? .document . uri ;
346
342
if ( ! uri || uri . scheme !== FILESYSTEM_SCHEMA ) {
347
343
return ;
348
344
}
@@ -351,8 +347,8 @@ export async function mainMenu(uri: vscode.Uri) {
351
347
}
352
348
353
349
export async function contextMenu ( node : PackageNode | ClassNode | RoutineNode ) : Promise < any > {
354
- const nodeOrUri = node || vscode . window . activeTextEditor . document . uri ;
355
- if ( ! nodeOrUri || ( nodeOrUri instanceof vscode . Uri && nodeOrUri . scheme !== FILESYSTEM_SCHEMA ) ) {
350
+ const nodeOrUri = node || vscode . window . activeTextEditor ? .document . uri ;
351
+ if ( ! nodeOrUri || ( nodeOrUri instanceof vscode . Uri && nodeOrUri . scheme !== FILESYSTEM_SCHEMA ) ) {
356
352
return ;
357
353
}
358
354
const studioActions = new StudioActions ( nodeOrUri ) ;
You can’t perform that action at this time.
0 commit comments