Skip to content

Commit

Permalink
Realized I no longer need to parse http response for xml
Browse files Browse the repository at this point in the history
  • Loading branch information
MilapNaik committed Nov 1, 2023
1 parent 3335532 commit 03de7d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/BrightScriptCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,7 @@ export class BrightScriptCommands {

private parseXmlResponse(responseData) {
let appNames: vscode.QuickPickItem[] = [];

// Extract the XML content
const xmlStartIndex = responseData.indexOf('<?xml');
const xmlContent = responseData.slice(xmlStartIndex);
xml2js.parseString(xmlContent, (err, result) => {
xml2js.parseString(responseData, (err, result) => {
if (err) {
console.error('Error parsing XML:', err);
return;
Expand Down

0 comments on commit 03de7d6

Please sign in to comment.