Skip to content

Commit 391ebae

Browse files
committed
fixup: more of them
1 parent ebb7109 commit 391ebae

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

media/dependency.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import axios from "axios"
22
import { getUser, getWorkspaces } from "coder/site/src/api/api"
33
import { Workspace } from "coder/site/src/api/typesGenerated"
44
import * as vscode from "vscode"
5-
import { OutlineProvider } from "./workspaces"
65
import { Remote } from "./remote"
76
import { Storage } from "./storage"
7+
import { WorkspacesProvider } from "./workspaces"
88

99
export class Commands {
10-
public constructor(private readonly storage: Storage, private readonly treeDataProvider: OutlineProvider) {}
10+
public constructor(private readonly storage: Storage, private readonly treeDataProvider: WorkspacesProvider) {}
1111

1212
public async login(...args: string[]): Promise<void> {
1313
let url: string | undefined = args.length >= 1 ? args[0] : undefined

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
1414
const storage = new Storage(output, ctx.globalState, ctx.secrets, ctx.globalStorageUri, ctx.logUri)
1515
await storage.init()
1616

17-
vscode.window.registerTreeDataProvider("nodeDependencies", workspacesProvider)
17+
vscode.window.registerTreeDataProvider("coderRemote", workspacesProvider)
1818

1919
getUser()
2020
.then(() => {

src/workspaces.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { getWorkspaces } from "coder/site/src/api/api"
2-
import * as path from "path"
32
import * as vscode from "vscode"
43

54
export class WorkspacesProvider implements vscode.TreeDataProvider<Workspace> {
@@ -62,8 +61,5 @@ export class Workspace extends vscode.TreeItem {
6261
this.tooltip = `${this.label}`
6362
}
6463

65-
iconPath = {
66-
light: path.join(__filename, "..", "..", "media", "dependency.svg"),
67-
dark: path.join(__filename, "..", "..", "media", "dependency.svg"),
68-
}
64+
iconPath = new vscode.ThemeIcon(this.iconId)
6965
}

0 commit comments

Comments
 (0)