Skip to content

Commit

Permalink
[F] rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrnperl committed Oct 16, 2023
1 parent c6c63e8 commit 2e3159b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,11 @@
"category": "outline-map"
},
{
"command": "outline-map.workspace.deleteFile",
"title": "Delete",
"command": "outline-map.workspace.closeFile",
"title": "Close",
"category": "outline-map",
"shortTitle": "Delete"
"icon": "$(close)",
"shortTitle": "Close"
},
{
"command": "outline-map.workspace.deleteSymbol",
Expand Down Expand Up @@ -484,8 +485,9 @@
],
"view/item/context": [
{
"command": "outline-map.workspace.deleteFile",
"when": "view == outline-map-workspace && viewItem == file"
"command": "outline-map.workspace.closeFile",
"when": "view == outline-map-workspace && viewItem == file",
"group": "inline"
},
{
"command": "outline-map.workspace.deleteSymbol",
Expand Down
6 changes: 3 additions & 3 deletions src/extension/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const OutlineViewCommandList: Command[] = [


// export
function workspaceDeleteFile(workspaceSymbols: WorkspaceSymbols, item: SymbolTreeItem) {
function workspaceCloseFile(workspaceSymbols: WorkspaceSymbols, item: SymbolTreeItem) {
workspaceSymbols.removeDocuments([item.uri]);
}

Expand All @@ -106,8 +106,8 @@ function workspaceExcludeName(target: 'global' | 'workspace' | 'folder', withUri

export const WorkspaceCommandList: Command[] = [
{
name: 'outline-map.workspace.deleteFile',
fn: workspaceDeleteFile,
name: 'outline-map.workspace.closeFile',
fn: workspaceCloseFile,
},
{
name: 'outline-map.workspace.deleteSymbol',
Expand Down

0 comments on commit 2e3159b

Please sign in to comment.