File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,10 @@ import {
8
8
getResolvedConnectionSpec ,
9
9
config ,
10
10
extensionContext ,
11
- FILESYSTEM_SCHEMA ,
12
- FILESYSTEM_READONLY_SCHEMA ,
13
11
workspaceState ,
14
12
panel ,
15
13
checkConnection ,
14
+ schemas ,
16
15
} from "../extension" ;
17
16
import { currentWorkspaceFolder , outputConsole , outputChannel } from "../utils" ;
18
17
@@ -93,7 +92,7 @@ export class AtelierAPI {
93
92
let namespace = "" ;
94
93
if ( wsOrFile ) {
95
94
if ( wsOrFile instanceof vscode . Uri ) {
96
- if ( wsOrFile . scheme === FILESYSTEM_SCHEMA || wsOrFile . scheme === FILESYSTEM_READONLY_SCHEMA ) {
95
+ if ( schemas . includes ( wsOrFile . scheme ) ) {
97
96
workspaceFolderName = wsOrFile . authority ;
98
97
const { query } = url . parse ( decodeURIComponent ( wsOrFile . toString ( ) ) , true ) ;
99
98
if ( query ) {
You can’t perform that action at this time.
0 commit comments