mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
GitProtocolHandler - update supported schemes based on the platform (#208730)
This commit is contained in:
parent
81d996c90e
commit
8d02db45e9
|
@ -4,10 +4,13 @@
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import { UriHandler, Uri, window, Disposable, commands, LogOutputChannel, l10n } from 'vscode';
|
import { UriHandler, Uri, window, Disposable, commands, LogOutputChannel, l10n } from 'vscode';
|
||||||
import { dispose } from './util';
|
import { dispose, isWindows } from './util';
|
||||||
import * as querystring from 'querystring';
|
import * as querystring from 'querystring';
|
||||||
|
|
||||||
const schemes = new Set(['file', 'git', 'http', 'https', 'ssh']);
|
const schemes = isWindows ?
|
||||||
|
new Set(['git', 'http', 'https', 'ssh']) :
|
||||||
|
new Set(['file', 'git', 'http', 'https', 'ssh']);
|
||||||
|
|
||||||
const refRegEx = /^$|[~\^:\\\*\s\[\]]|^-|^\.|\/\.|\.\.|\.lock\/|\.lock$|\/$|\.$/;
|
const refRegEx = /^$|[~\^:\\\*\s\[\]]|^-|^\.|\/\.|\.\.|\.lock\/|\.lock$|\/$|\.$/;
|
||||||
|
|
||||||
export class GitProtocolHandler implements UriHandler {
|
export class GitProtocolHandler implements UriHandler {
|
||||||
|
|
Loading…
Reference in a new issue