зеркало из https://github.com/microsoft/kiota.git
- replaces confusing checkmark
This commit is contained in:
Родитель
25f5f58502
Коммит
782ce8c562
|
@ -1,3 +0,0 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6.25 3C4.45507 3 3 4.45508 3 6.25V17.75C3 19.5449 4.45508 21 6.25 21H17.75C19.5449 21 21 19.5449 21 17.75V6.25C21 4.45507 19.5449 3 17.75 3H6.25ZM17.28 9.28064L10.5263 16.0266C10.2333 16.3192 9.75868 16.319 9.46591 16.0262L6.72014 13.2803C6.42726 12.9874 6.42727 12.5125 6.72018 12.2196C7.01308 11.9268 7.48795 11.9268 7.78084 12.2197L9.99658 14.4356L16.22 8.21936C16.513 7.92664 16.9879 7.92691 17.2806 8.21998C17.5734 8.51304 17.5731 8.98791 17.28 9.28064Z" fill="#FFFFFF"/>
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 590 B |
|
@ -1,5 +0,0 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M3 6.25C3 4.45507 4.45507 3 6.25 3H17.75C19.5449 3 21 4.45507 21 6.25V17.75C21 19.5449 19.5449 21 17.75 21H6.25C4.45507 21 3 19.5449 3 17.75V6.25ZM6.25 5C5.55964 5 5 5.55964 5 6.25V17.75C5 18.4404 5.55964 19 6.25 19H17.75C18.4404 19 19 18.4404 19 17.75V6.25C19 5.55964 18.4404 5 17.75 5H6.25Z"
|
||||
fill="#FFFFFF" />
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 443 B |
|
@ -1,3 +0,0 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6.25 3C4.45507 3 3 4.45508 3 6.25V17.75C3 19.5449 4.45508 21 6.25 21H17.75C19.5449 21 21 19.5449 21 17.75V6.25C21 4.45507 19.5449 3 17.75 3H6.25ZM17.28 9.28064L10.5263 16.0266C10.2333 16.3192 9.75868 16.319 9.46591 16.0262L6.72014 13.2803C6.42726 12.9874 6.42727 12.5125 6.72018 12.2196C7.01308 11.9268 7.48795 11.9268 7.78084 12.2197L9.99658 14.4356L16.22 8.21936C16.513 7.92664 16.9879 7.92691 17.2806 8.21998C17.5734 8.51304 17.5731 8.98791 17.28 9.28064Z" fill="#000000"/>
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 590 B |
|
@ -1,5 +0,0 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M3 6.25C3 4.45507 4.45507 3 6.25 3H17.75C19.5449 3 21 4.45507 21 6.25V17.75C21 19.5449 19.5449 21 17.75 21H6.25C4.45507 21 3 19.5449 3 17.75V6.25ZM6.25 5C5.55964 5 5 5.55964 5 6.25V17.75C5 18.4404 5.55964 19 6.25 19H17.75C18.4404 19 19 18.4404 19 17.75V6.25C19 5.55964 18.4404 5 17.75 5H6.25Z"
|
||||
fill="#000000" />
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 443 B |
|
@ -68,22 +68,22 @@
|
|||
{
|
||||
"command": "kiota.openApiExplorer.openDescription",
|
||||
"when": "view == kiota.openApiExplorer",
|
||||
"group": "navigation"
|
||||
"group": "navigation@2"
|
||||
},
|
||||
{
|
||||
"command": "kiota.searchApiDescription",
|
||||
"when": "view == kiota.openApiExplorer",
|
||||
"group": "navigation"
|
||||
"group": "navigation@1"
|
||||
},
|
||||
{
|
||||
"command": "kiota.openApiExplorer.generateClient",
|
||||
"when": "view == kiota.openApiExplorer",
|
||||
"group": "navigation"
|
||||
"group": "navigation@3"
|
||||
},
|
||||
{
|
||||
"command": "kiota.openApiExplorer.closeDescription",
|
||||
"when": "view == kiota.openApiExplorer",
|
||||
"group": "navigation"
|
||||
"group": "navigation@4"
|
||||
}
|
||||
],
|
||||
"view/item/context": [
|
||||
|
|
|
@ -112,14 +112,8 @@ export class OpenApiTreeProvider implements vscode.TreeDataProvider<OpenApiTreeN
|
|||
private getPathSegments(path: string): string[] {
|
||||
return path.replace('/', '').split('\\').filter(x => x !== ''); // the root node is always /
|
||||
}
|
||||
private readonly selectedSet: IconSet = {
|
||||
light: path.join(__filename, '..', '..', 'media', 'light', 'ic_fluent_checkbox_checked_24_filled.svg'),
|
||||
dark: path.join(__filename, '..', '..', 'media', 'dark', 'ic_fluent_checkbox_checked_24_filled.svg')
|
||||
};
|
||||
private readonly unselectedSet: IconSet = {
|
||||
light: path.join(__filename, '..', '..', 'media', 'light', 'ic_fluent_checkbox_unchecked_24_filled.svg'),
|
||||
dark: path.join(__filename, '..', '..', 'media', 'dark', 'ic_fluent_checkbox_unchecked_24_filled.svg')
|
||||
};
|
||||
private readonly selectedSet: IconSet = new vscode.ThemeIcon('check');
|
||||
private readonly unselectedSet: IconSet = new vscode.ThemeIcon('circle-slash');
|
||||
private getIconSet(selected: boolean): IconSet {
|
||||
return selected ? this.selectedSet : this.unselectedSet;
|
||||
}
|
||||
|
@ -176,8 +170,7 @@ export class OpenApiTreeProvider implements vscode.TreeDataProvider<OpenApiTreeN
|
|||
return [];
|
||||
}
|
||||
}
|
||||
type IconSet = { light: string | vscode.Uri; dark: string | vscode.Uri };
|
||||
|
||||
type IconSet = string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri } | vscode.ThemeIcon;
|
||||
export class OpenApiTreeNode extends vscode.TreeItem {
|
||||
constructor(
|
||||
public readonly path: string,
|
||||
|
|
Загрузка…
Ссылка в новой задаче