blob: 3eae0754ad299cb0a75b563ba90cc0c1a3ab54de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export const Schemes = Object.freeze({
file: 'file',
untitled: 'untitled',
mailto: 'mailto',
vscode: 'vscode',
'vscode-insiders': 'vscode-insiders',
notebookCell: 'vscode-notebook-cell',
});
export function isOfScheme(scheme: string, link: string): boolean {
return link.toLowerCase().startsWith(scheme + ':');
}
|