Skip to content

Commit

Permalink
Revert "Merge pull request microsoft#498: Use vscode.env.openExternal…
Browse files Browse the repository at this point in the history
… to open browser windows when available"

This reverts commit 2908ec8, reversing
changes made to f76a76f.
  • Loading branch information
CRS-Azure committed Sep 8, 2019
1 parent 2908ec8 commit f2b0faf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import { BuildResult } from "vso-node-api/interfaces/BuildInterfaces";
import { Strings } from "./strings";
import * as vscode from "vscode";

import * as fs from "fs";
import * as path from "path";
Expand Down Expand Up @@ -154,13 +153,6 @@ export class Utils {

//Use open for Windows and Mac, opener for Linux
public static OpenUrl(url: string) : void {
// Use the built in VS Code openExternal function if present.
if ((<any>vscode.env).openExternal) {
(<any>vscode.env).openExternal(vscode.Uri.parse(url));
return;
}

// Fallback to other node modules for old versions of VS Code
switch (process.platform) {
case "win32":
case "darwin":
Expand Down

0 comments on commit f2b0faf

Please sign in to comment.