Skip to content

Commit 55bb542

Browse files
Merge pull request #248 from gjsjohnmurray/fix-247
fix #247 Handle non-isfs multi-server multiroot in OE
2 parents 9b2c6f5 + 51715a0 commit 55bb542

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/api/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ import {
88
getResolvedConnectionSpec,
99
config,
1010
extensionContext,
11-
FILESYSTEM_SCHEMA,
12-
FILESYSTEM_READONLY_SCHEMA,
1311
workspaceState,
1412
panel,
1513
checkConnection,
14+
schemas,
1615
} from "../extension";
1716
import { currentWorkspaceFolder, outputConsole, outputChannel } from "../utils";
1817

@@ -93,7 +92,7 @@ export class AtelierAPI {
9392
let namespace = "";
9493
if (wsOrFile) {
9594
if (wsOrFile instanceof vscode.Uri) {
96-
if (wsOrFile.scheme === FILESYSTEM_SCHEMA || wsOrFile.scheme === FILESYSTEM_READONLY_SCHEMA) {
95+
if (schemas.includes(wsOrFile.scheme)) {
9796
workspaceFolderName = wsOrFile.authority;
9897
const { query } = url.parse(decodeURIComponent(wsOrFile.toString()), true);
9998
if (query) {

0 commit comments

Comments
 (0)