mirror of
https://github.com/Microsoft/vscode
synced 2024-07-07 19:50:26 +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 { dispose } from './util';
|
||||
import { dispose, isWindows } from './util';
|
||||
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$|\/$|\.$/;
|
||||
|
||||
export class GitProtocolHandler implements UriHandler {
|
||||
|
|
Loading…
Reference in New Issue
Block a user