Skip to content

Commit

Permalink
fix: adjust vscode and code position
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhiter committed Nov 12, 2024
1 parent 4582365 commit 5c2340f
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 4 deletions.
1 change: 1 addition & 0 deletions extensions/ide/vscode/devbox/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
*.vsix

.env
!.vscode/
8 changes: 8 additions & 0 deletions extensions/ide/vscode/devbox/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint",
"ms-vscode.extension-test-runner"
]
}
20 changes: 20 additions & 0 deletions extensions/ide/vscode/devbox/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}",
"env": {
"NODE_ENV": "development"
}
}
]
}
14 changes: 14 additions & 0 deletions extensions/ide/vscode/devbox/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false, // set this to true to hide the "out" folder with the compiled JS files
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
},
"search.exclude": {
"out": true, // set this to false to include "out" folder in search results
"dist": true // set this to false to include "dist" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
"typescript.tsdk": "node_modules/typescript/lib"
}
37 changes: 37 additions & 0 deletions extensions/ide/vscode/devbox/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$ts-webpack-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "npm",
"script": "watch-tests",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": "build"
},
{
"label": "tasks: watch-tests",
"dependsOn": ["npm: watch", "npm: watch-tests"],
"problemMatcher": []
}
]
}
2 changes: 1 addition & 1 deletion extensions/ide/vscode/devbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "devbox-aio",
"displayName": "Devbox",
"description": "help code for cloud devbox in sailos/sealos",
"version": "0.9.9",
"version": "0.9.10",
"keywords": [
"devbox",
"remote development",
Expand Down
6 changes: 3 additions & 3 deletions extensions/ide/vscode/devbox/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export async function activate(context: vscode.ExtensionContext) {
const tools = new ToolCommands(context)
context.subscriptions.push(tools)

// globalState manager
GlobalStateManager.init(context)

// remote connector
const remoteConnector = new RemoteSSHConnector(context)
context.subscriptions.push(remoteConnector)
Expand All @@ -23,9 +26,6 @@ export async function activate(context: vscode.ExtensionContext) {
const devboxListViewProvider = new DevboxListViewProvider(context)
context.subscriptions.push(devboxListViewProvider)

// globalState manager
GlobalStateManager.init(context)

// update api base url
const workspaceFolders = vscode.workspace.workspaceFolders
if (workspaceFolders && workspaceFolders.length > 0 && !isDevelopment) {
Expand Down

0 comments on commit 5c2340f

Please sign in to comment.