mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Small cleanup
This commit is contained in:
@ -8,6 +8,7 @@ const cats = {
|
||||
};
|
||||
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
|
||||
context.subscriptions.push(vscode.commands.registerCommand('catCoding.start', () => {
|
||||
CatCodingPanel.createOrShow(context.extensionPath);
|
||||
}));
|
||||
@ -129,9 +130,10 @@ class CatCodingPanel {
|
||||
|
||||
private _getHtmlForWebview(catGif: string) {
|
||||
|
||||
// The main script use
|
||||
// Local path to main script run in the webview
|
||||
const scriptPathOnDisk = vscode.Uri.file(path.join(this._extensionPath, 'media', 'main.js'));
|
||||
|
||||
// And the uri we use to load this script in the webview
|
||||
const scriptUri = scriptPathOnDisk.with({ scheme: 'vscode-resource' });
|
||||
|
||||
return `<!DOCTYPE html>
|
||||
|
||||
Reference in New Issue
Block a user