Skip to content

Commit 6c5ee05

Browse files
committed
Fix CodeLens for schemas with URI without //
Fixes redhat-developer/vscode-yaml#1220 Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent 5007fd5 commit 6c5ee05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/languageservice/services/yamlCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function registerCommands(commandExecutor: CommandExecutor, connection: C
1515
}
1616
const wsFolders = await connection.workspace.getWorkspaceFolders();
1717

18-
if (uri.indexOf('://') < 0 && !uri.startsWith('/')) {
18+
if (uri.indexOf(':') < 0 && !uri.startsWith('/')) {
1919
if (wsFolders.length === 1) {
2020
const wsUri = URI.parse(wsFolders[0].uri);
2121
uri = wsUri.with({ path: wsUri.path + uri }).toString();

0 commit comments

Comments
 (0)