Skip to content

Commit

Permalink
remove redundent code
Browse files Browse the repository at this point in the history
  • Loading branch information
fumer-fubotv committed Oct 13, 2023
1 parent 273d71c commit 53ee647
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/BrightScriptCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,42 +481,6 @@ export class BrightScriptCommands {
return this.workspacePath;
}

public async getRemotePassword() {
this.password = await this.context.workspaceState.get('remotePassword');
if (!this.password) {
let config = vscode.workspace.getConfiguration('brightscript.remoteControl', null);
this.password = config.get('password');
// eslint-disable-next-line no-template-curly-in-string
if (this.password === '${promptForPassword}') {
this.password = await vscode.window.showInputBox({
placeHolder: 'The developer account password for your Roku device',
value: ''
});
}
}
if (!this.password) {
throw new Error('Can\'t send command: password is required.');
} else {
await this.context.workspaceState.update('remotePassword', this.password);
}
}

public async getWorkspacePath() {
this.workspacePath = await this.context.workspaceState.get('workspacePath');
//let folderUri: vscode.Uri;
if (!this.workspacePath) {
if (vscode.workspace.workspaceFolders.length === 1) {
this.workspacePath = vscode.workspace.workspaceFolders[0].uri.fsPath;
} else {
//there are multiple workspaces, ask the user to specify which one they want to use
let workspaceFolder = await vscode.window.showWorkspaceFolderPick();
if (workspaceFolder) {
this.workspacePath = workspaceFolder.uri.fsPath;
}
}
}
}

public async getSigningPassword() {
this.signingPassword = await this.context.workspaceState.get('signingPassword');
if (!this.signingPassword) {
Expand Down

0 comments on commit 53ee647

Please sign in to comment.