refactor: rename the project as devstar
This commit is contained in:
		
							
								
								
									
										28
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								package.json
									
									
									
									
									
								
							@@ -1,12 +1,12 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "superide",
 | 
			
		||||
  "version": "0.1.0",
 | 
			
		||||
  "name": "devstar",
 | 
			
		||||
  "version": "0.2.0",
 | 
			
		||||
  "publisher": "mengning",
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "vscode": "^1.65.0"
 | 
			
		||||
  },
 | 
			
		||||
  "license": "Apache-2.0",
 | 
			
		||||
  "displayName": "SuperIDE",
 | 
			
		||||
  "displayName": "DevStar",
 | 
			
		||||
  "description": "",
 | 
			
		||||
  "categories": [],
 | 
			
		||||
  "keywords": [],
 | 
			
		||||
@@ -20,18 +20,18 @@
 | 
			
		||||
    "url": "https://gitee.com/SuperIDE/superide.git"
 | 
			
		||||
  },
 | 
			
		||||
  "activationEvents": [
 | 
			
		||||
    "onView:superide.quickAccess",
 | 
			
		||||
    "onCommand:superide.showHome"
 | 
			
		||||
    "onView:devstar.quickAccess",
 | 
			
		||||
    "onCommand:devstar.showHome"
 | 
			
		||||
  ],
 | 
			
		||||
  "contributes": {
 | 
			
		||||
    "commands": [
 | 
			
		||||
      {
 | 
			
		||||
        "command": "superide.showHome",
 | 
			
		||||
        "command": "devstar.showHome",
 | 
			
		||||
        "title": "SuperIDE Home",
 | 
			
		||||
        "category": "Super IDE"
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "command": "superide.connectRemoteContainer",
 | 
			
		||||
        "command": "devstar.connectRemoteContainer",
 | 
			
		||||
        "title": "Connect to a Remote Container",
 | 
			
		||||
        "category": "Super IDE"
 | 
			
		||||
      }
 | 
			
		||||
@@ -39,7 +39,7 @@
 | 
			
		||||
    "menus": {
 | 
			
		||||
      "file/newFile": [
 | 
			
		||||
        {
 | 
			
		||||
          "command": "superide.showHome",
 | 
			
		||||
          "command": "devstar.showHome",
 | 
			
		||||
          "group": "navigation"
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
@@ -48,16 +48,16 @@
 | 
			
		||||
    "viewsContainers": {
 | 
			
		||||
      "activitybar": [
 | 
			
		||||
        {
 | 
			
		||||
          "id": "superide",
 | 
			
		||||
          "id": "devstar",
 | 
			
		||||
          "title": "SuperIDE",
 | 
			
		||||
          "icon": "assets/icons/si-activity-icon.svg"
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    "views": {
 | 
			
		||||
      "superide": [
 | 
			
		||||
      "devstar": [
 | 
			
		||||
        {
 | 
			
		||||
          "id": "superide.quickAccess",
 | 
			
		||||
          "id": "devstar.quickAccess",
 | 
			
		||||
          "name": "Quick Access",
 | 
			
		||||
          "type": "tree"
 | 
			
		||||
        }
 | 
			
		||||
@@ -65,13 +65,13 @@
 | 
			
		||||
    },
 | 
			
		||||
    "viewsWelcome": [
 | 
			
		||||
      {
 | 
			
		||||
        "view": "superide.quickAccess",
 | 
			
		||||
        "view": "devstar.quickAccess",
 | 
			
		||||
        "contents": "welcome SuperIDE..."
 | 
			
		||||
      }
 | 
			
		||||
    ],
 | 
			
		||||
    "walkthroughs": [
 | 
			
		||||
      {
 | 
			
		||||
        "id": "superide.welcome",
 | 
			
		||||
        "id": "devstar.welcome",
 | 
			
		||||
        "title": "Get started with Super IDE",
 | 
			
		||||
        "description": "",
 | 
			
		||||
        "steps": []
 | 
			
		||||
@@ -81,7 +81,7 @@
 | 
			
		||||
      "type": "object",
 | 
			
		||||
      "title": "SuperIDE",
 | 
			
		||||
      "properties": {
 | 
			
		||||
        "superide.disableSuperIDEHomeStartup": {
 | 
			
		||||
        "devstar.disableSuperIDEHomeStartup": {
 | 
			
		||||
          "type": "boolean",
 | 
			
		||||
          "default": false,
 | 
			
		||||
          "description": "Disable showing SuperIDE Home at startup"
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@ import * as vscode from 'vscode';
 | 
			
		||||
import RemoteContainer from './remote-container';
 | 
			
		||||
import fetch from './fetch'
 | 
			
		||||
 | 
			
		||||
export default class SIHome {
 | 
			
		||||
export default class DSHome {
 | 
			
		||||
  private context: vscode.ExtensionContext;
 | 
			
		||||
  private remoteContainer: RemoteContainer;
 | 
			
		||||
  static defaultUrl = 'http://localhost:8080/tmp/index.html';
 | 
			
		||||
@@ -12,7 +12,7 @@ export default class SIHome {
 | 
			
		||||
    this.remoteContainer = new RemoteContainer()
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  async toggle(url: string = SIHome.defaultUrl) {
 | 
			
		||||
  async toggle(url: string = DSHome.defaultUrl) {
 | 
			
		||||
    console.log(url);
 | 
			
		||||
    const panel = vscode.window.createWebviewPanel(
 | 
			
		||||
      'myWebview',
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										14
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								src/main.ts
									
									
									
									
									
								
							@@ -1,16 +1,16 @@
 | 
			
		||||
import * as vscode from 'vscode';
 | 
			
		||||
import QuickAccessTreeProvider from './views/quick-access-tree';
 | 
			
		||||
import SIHome from './home';
 | 
			
		||||
import DSHome from './home';
 | 
			
		||||
 | 
			
		||||
export class SuperIDEExtension {
 | 
			
		||||
  siHome: SIHome;
 | 
			
		||||
  dsHome: DSHome;
 | 
			
		||||
 | 
			
		||||
  constructor(private context: vscode.ExtensionContext) {
 | 
			
		||||
    this.siHome = new SIHome(context);
 | 
			
		||||
    this.dsHome = new DSHome(context);
 | 
			
		||||
 | 
			
		||||
    context.subscriptions.push(
 | 
			
		||||
      vscode.window.registerTreeDataProvider(
 | 
			
		||||
        'superide.quickAccess',
 | 
			
		||||
        'devstar.quickAccess',
 | 
			
		||||
        new QuickAccessTreeProvider()
 | 
			
		||||
      )
 | 
			
		||||
    );
 | 
			
		||||
@@ -21,14 +21,14 @@ export class SuperIDEExtension {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  async startSuperIDEHome() {
 | 
			
		||||
    vscode.commands.executeCommand('superide.showHome');
 | 
			
		||||
    vscode.commands.executeCommand('devstar.showHome');
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  registerGlobalCommands(context: vscode.ExtensionContext) {
 | 
			
		||||
    context.subscriptions.push(
 | 
			
		||||
      vscode.commands.registerCommand('superide.showHome', (url: string) =>
 | 
			
		||||
        this.siHome.toggle(url)
 | 
			
		||||
      vscode.commands.registerCommand('devstar.showHome', (url: string) =>
 | 
			
		||||
        this.dsHome.toggle(url)
 | 
			
		||||
      ),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -28,14 +28,14 @@ export default class QuickAccessTreeProvider {
 | 
			
		||||
        undefined,
 | 
			
		||||
        undefined,
 | 
			
		||||
        vscode.TreeItemCollapsibleState.Expanded,
 | 
			
		||||
        [new QuickItem('Open', 'superide.showHome')]
 | 
			
		||||
        [new QuickItem('Open', 'devstar.showHome')]
 | 
			
		||||
      ),
 | 
			
		||||
      // new QuickItem(
 | 
			
		||||
      //   'Miscellaneous',
 | 
			
		||||
      //   undefined,
 | 
			
		||||
      //   undefined,
 | 
			
		||||
      //   vscode.TreeItemCollapsibleState.Expanded,
 | 
			
		||||
      //   [new QuickItem('Connect Remote Container', 'superide.connectRemoteContainer')]
 | 
			
		||||
      //   [new QuickItem('Connect Remote Container', 'devstar.connectRemoteContainer')]
 | 
			
		||||
      // ),
 | 
			
		||||
    ];
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user