File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import * as vscode from "vscode" ;
2
2
import { AtelierAPI } from "../api" ;
3
- import { config , FILESYSTEM_SCHEMA } from "../extension" ;
3
+ import { config , filesystemSchemas } from "../extension" ;
4
4
import { outputChannel , outputConsole , getServerName } from "../utils" ;
5
5
import { DocumentContentProvider } from "../providers/DocumentContentProvider" ;
6
6
import { ClassNode } from "../explorer/models/classNode" ;
@@ -455,7 +455,7 @@ export async function mainSourceControlMenu(uri?: vscode.Uri): Promise<void> {
455
455
456
456
async function _mainMenu ( sourceControl : boolean , uri ?: vscode . Uri ) : Promise < void > {
457
457
uri = uri || vscode . window . activeTextEditor ?. document . uri ;
458
- if ( uri && uri . scheme !== FILESYSTEM_SCHEMA ) {
458
+ if ( uri && ! filesystemSchemas . includes ( uri . scheme ) ) {
459
459
return ;
460
460
}
461
461
const studioActions = new StudioActions ( uri ) ;
@@ -472,7 +472,7 @@ export async function contextSourceControlMenu(node: PackageNode | ClassNode | R
472
472
473
473
export async function _contextMenu ( sourceControl : boolean , node : PackageNode | ClassNode | RoutineNode ) : Promise < void > {
474
474
const nodeOrUri = node || vscode . window . activeTextEditor ?. document . uri ;
475
- if ( ! nodeOrUri || ( nodeOrUri instanceof vscode . Uri && nodeOrUri . scheme !== FILESYSTEM_SCHEMA ) ) {
475
+ if ( ! nodeOrUri || ( nodeOrUri instanceof vscode . Uri && ! filesystemSchemas . includes ( nodeOrUri . scheme ) ) ) {
476
476
return ;
477
477
}
478
478
const studioActions = new StudioActions ( nodeOrUri ) ;
You can’t perform that action at this time.
0 commit comments