Complete residential site build with Docker Compose & Gitea Actions deployment

This commit is contained in:
CalebLewallen
2026-05-13 17:31:20 -04:00
parent f9c4e13a50
commit 3c22823f72
19354 changed files with 2097331 additions and 0 deletions
@@ -0,0 +1,46 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { YamlCommands } from '../../commands';
import { URI } from 'vscode-uri';
export function registerCommands(commandExecutor, connection) {
commandExecutor.registerCommand(YamlCommands.JUMP_TO_SCHEMA, async (uri) => {
if (!uri) {
return;
}
const wsFolders = await connection.workspace.getWorkspaceFolders();
if (uri.indexOf('://') < 0 && !uri.startsWith('/')) {
if (wsFolders.length === 1) {
const wsUri = URI.parse(wsFolders[0].uri);
uri = wsUri.with({ path: wsUri.path + uri }).toString();
}
}
else if (uri.startsWith('file://') && wsFolders.length === 1 && URI.parse(wsFolders[0].uri).scheme != 'file') {
const wsUri = URI.parse(wsFolders[0].uri);
const pathFromUri = URI.parse(uri).path;
uri = wsUri.with({ path: pathFromUri }).toString();
}
else if (!uri.startsWith('file') && !/^[a-z]:[\\/]/i.test(uri)) {
// if uri points to local file of its a windows path
const origUri = URI.parse(uri);
const customUri = URI.from({
scheme: 'json-schema',
authority: origUri.authority,
path: origUri.path.endsWith('.json') ? origUri.path : origUri.path + '.json',
fragment: uri,
});
uri = customUri.toString();
}
// test if uri is windows path, ie starts with 'c:\' and convert to URI
if (/^[a-z]:[\\/]/i.test(uri)) {
const winUri = URI.file(uri);
uri = winUri.toString();
}
const result = await connection.window.showDocument({ uri: uri, external: false, takeFocus: true });
if (!result) {
connection.window.showErrorMessage(`Cannot open ${uri}`);
}
});
}
//# sourceMappingURL=yamlCommands.js.map