mirror of
				https://github.com/We-Dont-Byte/Mind_Reader.git
				synced 2025-02-04 10:38:42 +00:00 
			
		
		
		
	added initial webpage
This commit is contained in:
		@@ -48,6 +48,11 @@ const commands: Command[] = [
 | 
			
		||||
    name: 'mind-reader.resetEditorScale',
 | 
			
		||||
    callback: resetEditorScale,
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  {
 | 
			
		||||
    name: 'mind-reader.openWebview',
 | 
			
		||||
    callback: openWebview,
 | 
			
		||||
  }
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
// COMMAND CALLBACK IMPLEMENTATIONS
 | 
			
		||||
@@ -76,4 +81,14 @@ function resetEditorScale(): void {
 | 
			
		||||
  vscode.commands.executeCommand('workbench.action.zoomReset');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function openWebview(): void {
 | 
			
		||||
  //vscode.commands.executeCommand('workbench.action.zoomOut');
 | 
			
		||||
  vscode.window.createWebviewPanel(
 | 
			
		||||
    'catCoding', // Identifies the type of the webview. Used internally
 | 
			
		||||
    'Cat Coding', // Title of the panel displayed to the user
 | 
			
		||||
    vscode.ViewColumn.One, // Editor column to show the new webview panel in.
 | 
			
		||||
    {}
 | 
			
		||||
  ); // Webview options. More on these later.
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default commands;
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,7 @@ export function activate(context: vscode.ExtensionContext) {
 | 
			
		||||
      command.callback
 | 
			
		||||
    );
 | 
			
		||||
    context.subscriptions.push(disposable);
 | 
			
		||||
    console.log(command.name);
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user