mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 591842cc4b71958c81947b254924a215fe3edcbd (#4886)
This commit is contained in:
@@ -274,7 +274,7 @@ export class BreadcrumbsWidget {
|
||||
this._onDidSelectItem.fire({ type: 'select', item: this._items[this._selectedItemIdx], node: this._nodes[this._selectedItemIdx], payload });
|
||||
}
|
||||
|
||||
getItems(): ReadonlyArray<BreadcrumbsItem> {
|
||||
getItems(): readonly BreadcrumbsItem[] {
|
||||
return this._items;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import { sep, posix, normalize } from 'vs/base/common/path';
|
||||
import { endsWith, ltrim, startsWithIgnoreCase, rtrim, startsWith } from 'vs/base/common/strings';
|
||||
import { endsWith, startsWithIgnoreCase, rtrim, startsWith } from 'vs/base/common/strings';
|
||||
import { Schemas } from 'vs/base/common/network';
|
||||
import { isLinux, isWindows, isMacintosh } from 'vs/base/common/platform';
|
||||
import { isEqual, basename } from 'vs/base/common/resources';
|
||||
import { isEqual, basename, relativePath } from 'vs/base/common/resources';
|
||||
import { CharCode } from 'vs/base/common/charCode';
|
||||
|
||||
export interface IWorkspaceFolderProvider {
|
||||
@@ -40,8 +40,7 @@ export function getPathLabel(resource: URI | string, userHomeProvider?: IUserHom
|
||||
if (isEqual(baseResource.uri, resource)) {
|
||||
pathLabel = ''; // no label if paths are identical
|
||||
} else {
|
||||
// TODO: isidor use resources.relative
|
||||
pathLabel = normalize(ltrim(resource.path.substr(baseResource.uri.path.length), posix.sep)!);
|
||||
pathLabel = relativePath(baseResource.uri, resource)!;
|
||||
}
|
||||
|
||||
if (hasMultipleRoots) {
|
||||
|
||||
Reference in New Issue
Block a user