Skip to content

Commit

Permalink
refactor: consistent provider naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Mar 30, 2022
1 parent d94f2ff commit a34d2fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/PyMakr.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ class PyMakr {

this.projectsProvider = new ProjectsProvider(this);
this.devicesProvider = new DevicesProvider(this);
this.fileSystem = new FileSystemProvider(this);
// this.statusBar = new StatusBar(this);
this.fileSystemProvider = new FileSystemProvider(this);

this.registerWithIde();
this.setup();
Expand All @@ -56,8 +55,8 @@ class PyMakr {
vscode.workspace.onDidChangeConfiguration((e) => {
if (e.affectsConfiguration("pymakr")) this.config.set(vscode.workspace.getConfiguration("pymakr"));
}),
vscode.workspace.registerFileSystemProvider("serial", this.fileSystem, { isCaseSensitive: true }),
vscode.workspace.registerFileSystemProvider("telnet", this.fileSystem, { isCaseSensitive: true }),
vscode.workspace.registerFileSystemProvider("serial", this.fileSystemProvider, { isCaseSensitive: true }),
vscode.workspace.registerFileSystemProvider("telnet", this.fileSystemProvider, { isCaseSensitive: true }),
vscode.window.registerTreeDataProvider("pymakr-projects-tree", this.projectsProvider),
vscode.window.registerTreeDataProvider("pymakr-devices-tree", this.devicesProvider),
vscode.workspace.onDidChangeConfiguration(this.updateConfig.bind(this)),
Expand Down

0 comments on commit a34d2fa

Please sign in to comment.