Skip to content

Commit a2d23f0

Browse files
committed
Add refresh icons to treeview. fix linting
1 parent f86102c commit a2d23f0

File tree

9 files changed

+15
-16
lines changed

9 files changed

+15
-16
lines changed

package.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,15 @@
264264
"when": "viewItem =~ /^migration-.*\\|?can-undo\\|?.*$/",
265265
"group": "context@1"
266266
},
267+
{
268+
"command": "entityframework.refreshDbContextTree",
269+
"when": "viewItem == dbContext",
270+
"group": "inline@1"
271+
},
267272
{
268273
"command": "entityframework.addMigration",
269274
"when": "viewItem == dbContext",
270-
"group": "inline@4"
275+
"group": "inline@2"
271276
},
272277
{
273278
"command": "entityframework.addMigration",
@@ -293,6 +298,11 @@
293298
{
294299
"command": "entityframework.scaffold",
295300
"when": "viewItem == project",
301+
"group": "inline@2"
302+
},
303+
{
304+
"command": "entityframework.refreshProjectTree",
305+
"when": "viewItem == project",
296306
"group": "inline@1"
297307
},
298308
{

sample_dotnet/ExampleAPI/blogging.db

0 Bytes
Binary file not shown.

src/actions/AddMigrationAction.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import * as vscode from 'vscode';
22
import { EFOutputParser } from '../cli/EFOutputParser';
3-
import { CommandProvider } from '../commands/CommandProvider';
4-
import { RefreshTreeCommand } from '../commands/RefreshTreeCommand';
53
import { getCommandsConfig } from '../config/config';
64
import { TREE_VIEW_ID } from '../constants/constants';
75

src/actions/RunMigrationAction.ts

-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import * as vscode from 'vscode';
2-
import { CommandProvider } from '../commands/CommandProvider';
3-
import { RefreshTreeCommand } from '../commands/RefreshTreeCommand';
42
import { getCommandsConfig } from '../config/config';
53
import { TREE_VIEW_ID } from '../constants/constants';
64
import type { TerminalProvider } from '../terminal/TerminalProvider';
7-
import {
8-
dbContextsCache,
9-
DbContextTreeItem,
10-
} from '../treeView/DbContextTreeItem';
115
import { TerminalAction } from './TerminalAction';
126

137
export class RunMigrationAction extends TerminalAction {

src/actions/ScaffoldAction.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import type { Project } from 'nuget-deps-tree';
22
import * as vscode from 'vscode';
33
import { EFOutputParser } from '../cli/EFOutputParser';
4-
import { CommandProvider } from '../commands/CommandProvider';
5-
import { RefreshTreeCommand } from '../commands/RefreshTreeCommand';
64
import { getCommandsConfig } from '../config/config';
75
import { DEFAULT_EFCORE_PROVIDERS, TREE_VIEW_ID } from '../constants/constants';
86
import { ProjectFilesProvider } from '../solution/ProjectFilesProvider';
97

108
import type { TerminalProvider } from '../terminal/TerminalProvider';
11-
import { projectsCache, ProjectTreeItem } from '../treeView/ProjectTreeItem';
129
import type { ProjectFile } from '../types/ProjectFile';
1310
import { InputWizard } from '../util/InputWizard';
1411

src/commands/UndoMigrationCommand.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
DbContextTreeItem,
77
} from '../treeView/DbContextTreeItem';
88
import type { MigrationTreeItem } from '../treeView/MigrationTreeItem';
9-
import { ProjectTreeItem, projectsCache } from '../treeView/ProjectTreeItem';
109
import { Command } from './Command';
1110
import { CommandProvider } from './CommandProvider';
1211
import { RefreshTreeCommand } from './RefreshTreeCommand';

src/treeView/TreeDataProvider.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class TreeDataProvider
3737
this.cacheId = 'TreeDataProvider';
3838
const view = vscode.window.createTreeView(`${EXTENSION_NAMESPACE}Tree`, {
3939
treeDataProvider: this,
40+
showCollapseAll: true,
4041
});
4142
view.onDidChangeSelection(this.handleTreeItemSelection.bind(this));
4243
this.subscriptions.push(view);

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exclude": ["dist", "out", "*.js"],
3-
"include": ["wdio.conf.ts", "src"],
3+
"include": ["src"],
44
"compilerOptions": {
55
"module": "commonjs",
66
"target": "ES2020",

webview-ui/vite.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export default defineConfig({
77
outDir: "build",
88
rollupOptions: {
99
output: {
10-
manualChunks: () => '_',
11-
entryFileNames: `assets/[name].js`,
10+
manualChunks: () => '_',
11+
entryFileNames: `assets/[name].js`,
1212
chunkFileNames: `assets/[name].js`,
1313
assetFileNames: `assets/[name].[ext]`,
1414
},

0 commit comments

Comments
 (0)