feat(settings): 헤더 빌드 버전 배지 (v2.2.207)
Settings 헤더에 현재 확장 버전 표시(provider가 __VERSION__ 주입). 새 vsix 로딩 여부 확인 마커. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -717,9 +717,11 @@ export class SettingsPanelProvider implements vscode.WebviewViewProvider {
|
||||
const scriptUri = webview.asWebviewUri(vscode.Uri.joinPath(mediaRoot, 'settings-panel.js')).toString();
|
||||
const tplPath = path.join(this._deps.extensionUri.fsPath, 'media', 'settings-panel.html');
|
||||
const tpl = fs.readFileSync(tplPath, 'utf8');
|
||||
const version = (this._deps.context?.extension?.packageJSON?.version as string) || '';
|
||||
return tpl
|
||||
.replace('__STYLES_URI__', stylesUri)
|
||||
.replace('__SCRIPT_URI__', scriptUri);
|
||||
.replace('__SCRIPT_URI__', scriptUri)
|
||||
.replace('__VERSION__', version);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user