Update package version to 0.0.7, add media/styles.css for styling, and adjust paths in webview files to reference new stylesheet location. Include .vscodeignore update to exclude media directory from packaging.

This commit is contained in:
S.Gromov
2025-07-15 00:15:58 +03:00
parent 784c1311f4
commit bcb2c381fb
6 changed files with 130 additions and 4 deletions

View File

@@ -17,7 +17,8 @@ export async function showTemplateAndVarsWebview(
return I18N_DICTIONARIES[language] || I18N_DICTIONARIES['ru'];
}
const templates = fs.readdirSync(templatesDir).filter(f => fs.statSync(path.join(templatesDir, f)).isDirectory());
const stylePath = vscode.Uri.joinPath(context.extensionUri, 'src', 'webview', 'styles.css');
// Стили теперь лежат в media/styles.css (папка для статики)
const stylePath = vscode.Uri.joinPath(context.extensionUri, 'media', 'styles.css');
return new Promise((resolve) => {
const panel = vscode.window.createWebviewPanel(
'templateVars',