Skip to content

Commit 16fcbaf

Browse files
committed
testing
1 parent efd03db commit 16fcbaf

2 files changed

Lines changed: 29 additions & 4 deletions

File tree

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,21 @@
1717
"Other"
1818
],
1919
"pricing": "Free",
20+
"enabledApiProposals": [
21+
"resolvers",
22+
"terminalDataWriteEvent",
23+
"contribViewsRemote"
24+
],
2025
"activationEvents": [
26+
"onResolveAuthority:codesphere",
27+
"onView:remoteHosts",
2128
"*"
2229
],
30+
"capabilities": {
31+
"untrustedWorkspaces": {
32+
"supported": true
33+
}
34+
},
2335
"main": "./dist/extension.js",
2436
"contributes": {
2537
"viewsContainers": {
@@ -116,7 +128,7 @@
116128
"title": "Back to menu"
117129
}
118130
],
119-
"extensionKind": ["workspace"]
131+
"extensionKind": ["ui"]
120132
},
121133
"extensionPack": [
122134
"ms-vscode-remote.vscode-remote-extensionpack"

src/extension.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ function getWorkspaceRootPath(): string {
1717
}
1818

1919
export function activate(context: vscode.ExtensionContext) {
20+
//testing
21+
22+
const config = vscode.workspace.getConfiguration('remote.tunnels');
23+
24+
// Beispielhafte Einstellungen abrufen und anzeigen
25+
const portMappings = config.get('portMappings');
26+
const auth = config.get('auth');
27+
const connectionTimeout = config.get('connectionTimeout');
28+
29+
console.log('portMappings: ', portMappings);
30+
console.log('auth: ', auth);
31+
console.log('connectionTimeout: ', connectionTimeout);
32+
2033
const sidebarProvider = new SidebarProvider(context.extensionUri, context);
2134
const noCurrentWorkspaceProvider = new NoCurrentWorkspaceProvider(context.extensionUri);
2235
const rootPath: string = getWorkspaceRootPath();
@@ -36,8 +49,6 @@ export function activate(context: vscode.ExtensionContext) {
3649
const machineId = vscode.env.machineId;
3750
console.log('machine id ' + machineId);
3851

39-
const config = vscode.workspace.getConfiguration('remote.tunnels');
40-
4152
console.log('config ' + JSON.stringify(config));
4253

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

226237

227238
// This method is called when your extension is deactivated
228-
export function deactivate() {}
239+
export function deactivate() {
240+
241+
}

0 commit comments

Comments
 (0)