Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Datata1 committed Jun 18, 2024
1 parent efd03db commit 16fcbaf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,21 @@
"Other"
],
"pricing": "Free",
"enabledApiProposals": [
"resolvers",
"terminalDataWriteEvent",
"contribViewsRemote"
],
"activationEvents": [
"onResolveAuthority:codesphere",
"onView:remoteHosts",
"*"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
Expand Down Expand Up @@ -116,7 +128,7 @@
"title": "Back to menu"
}
],
"extensionKind": ["workspace"]
"extensionKind": ["ui"]
},
"extensionPack": [
"ms-vscode-remote.vscode-remote-extensionpack"
Expand Down
19 changes: 16 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ function getWorkspaceRootPath(): string {
}

export function activate(context: vscode.ExtensionContext) {
//testing

const config = vscode.workspace.getConfiguration('remote.tunnels');

// Beispielhafte Einstellungen abrufen und anzeigen
const portMappings = config.get('portMappings');
const auth = config.get('auth');
const connectionTimeout = config.get('connectionTimeout');

console.log('portMappings: ', portMappings);
console.log('auth: ', auth);
console.log('connectionTimeout: ', connectionTimeout);

const sidebarProvider = new SidebarProvider(context.extensionUri, context);
const noCurrentWorkspaceProvider = new NoCurrentWorkspaceProvider(context.extensionUri);
const rootPath: string = getWorkspaceRootPath();
Expand All @@ -36,8 +49,6 @@ export function activate(context: vscode.ExtensionContext) {
const machineId = vscode.env.machineId;
console.log('machine id ' + machineId);

const config = vscode.workspace.getConfiguration('remote.tunnels');

console.log('config ' + JSON.stringify(config));

context.subscriptions.push(
Expand Down Expand Up @@ -225,4 +236,6 @@ export function activate(context: vscode.ExtensionContext) {


// This method is called when your extension is deactivated
export function deactivate() {}
export function deactivate() {

}

0 comments on commit 16fcbaf

Please sign in to comment.