Initial share provider API and UI (#182999)

* Formalize share provider API

* i18n.resources.json

* Don't introduce a generic Success dialog severity
This commit is contained in:
Joyce Er
2023-05-22 15:32:43 -07:00
committed by GitHub
parent d470f53f49
commit bc1090cc10
21 changed files with 529 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ function getRangeOrSelection(lineNumber: number | undefined) {
: vscode.window.activeTextEditor?.selection;
}
function rangeString(range: vscode.Range | undefined) {
export function rangeString(range: vscode.Range | undefined) {
if (!range) {
return '';
}
@@ -119,7 +119,7 @@ export function notebookCellRangeString(index: number | undefined, range: vscode
return hash;
}
function encodeURIComponentExceptSlashes(path: string) {
export function encodeURIComponentExceptSlashes(path: string) {
// There may be special characters like # and whitespace in the path.
// These characters are not escaped by encodeURI(), so it is not sufficient to
// feed the full URI to encodeURI().