-
Notifications
You must be signed in to change notification settings - Fork 585
Edit Data Result Filtering #22045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Edit Data Result Filtering #22045
Changes from all commits
af30504
2e4a49f
bfced53
c741ea6
dadc64b
099c453
342430b
bcad015
005785c
3156671
14f72e9
f9cd344
a369e2d
61dd079
90d4a4f
55af0e8
abfba28
adfa2b3
a7753bc
5ee0145
a0b6df3
c89a390
7742d8a
7bf70b9
81143ed
8d41a3c
dd87e00
7ce416a
8188188
7c2793c
01c4716
f8eef84
489d21d
1049527
e65798b
55215af
db00311
aa8f991
ee9082f
84f24ae
88311b0
89a97c3
b2d462b
24943ac
f0dd75e
6be2a6b
d1af8b3
53c4d0b
9e3133f
5399382
9831600
d1a7ae2
9782a61
672180c
ca3ab66
9bf5526
3820eec
acd9d7c
20f2c3c
5fd6273
38d9996
8aab6ab
89005a4
45c66a3
d899c95
ecad265
20b9e70
2745a70
5e0bcfb
94c7ee8
fcef025
71e40f9
346e031
f59bd09
2e152cc
b89a336
bdcf862
0f0dcba
763b4cd
00b3e05
d432dc6
9c94e9a
d0db891
99ce169
752a0a3
32f3517
52740a0
a3fa988
372069a
e5f1dbf
744408e
f3ea34f
aedfb34
a3fc7b8
f92b64b
79c6c0e
08cac27
acdc8bc
bacdf97
8b81e5e
682bffb
a85feb0
25e9a84
7340cdb
0f503ab
5e72f39
6e543c9
db3f81f
29d9045
4b0b6e1
d04f845
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ export class WebviewPanelController<State, Reducers, Result = void> extends Webv | |
| State, | ||
| Reducers | ||
| > { | ||
| private _panel: vscode.WebviewPanel; | ||
| private _panel!: vscode.WebviewPanel; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What prompted the changes in this file?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you prefer that I undo the changes here or to just keep them? They don't alter any state, just satisfy typescript. |
||
| public readonly dialogResult: Deferred<Result | undefined> = new Deferred<Result | undefined>(); | ||
|
|
||
| /** | ||
|
|
@@ -107,10 +107,13 @@ export class WebviewPanelController<State, Reducers, Result = void> extends Webv | |
| this._panel.reveal(viewColumn, true); | ||
| } | ||
|
|
||
| protected async showRestorePrompt(): Promise<{ | ||
| title: string; | ||
| run: () => Promise<void>; | ||
| }> { | ||
| protected async showRestorePrompt(): Promise< | ||
| | { | ||
| title: string; | ||
| run: () => Promise<void>; | ||
| } | ||
| | undefined | ||
| > { | ||
| return await vscode.window.showInformationMessage( | ||
| locConstants.Webview.webviewRestorePrompt(this._options.title), | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -110,7 +110,16 @@ export function azureAuthTypeToString(value: AzureAuthType): string { | |
| } | ||
|
|
||
| export function escapeClosingBrackets(str: string): string { | ||
| return str.replace("]", "]]"); | ||
| return str.replace(/\]/g, "]]"); | ||
| } | ||
|
|
||
| /** | ||
| * Escapes a SQL identifier by wrapping it in square brackets and escaping any | ||
| * closing brackets within the name. | ||
| * Example: `my]table` becomes `[my]]table]` | ||
| */ | ||
| export function bracketEscapeSqlIdentifier(name: string): string { | ||
| return `[${escapeClosingBrackets(name)}]`; | ||
| } | ||
|
Comment on lines
112
to
123
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe merge these two with a flag for whether to include surrounding brackets? |
||
|
|
||
| /** | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -100,6 +100,7 @@ export class SchemaDesignerWebviewController extends WebviewPanelController< | |
| private schemaDesignerCache: Map<string, SchemaDesigner.SchemaDesignerCacheItem>, | ||
| private treeNode?: TreeNodeInfo, | ||
| private connectionUri?: string, | ||
| isReadOnly: boolean = false, | ||
| ) { | ||
| super( | ||
| context, | ||
|
|
@@ -111,9 +112,14 @@ export class SchemaDesignerWebviewController extends WebviewPanelController< | |
| isCopilotChatInstalled: isCopilotChatInstalled(), | ||
| copilotChatDiscoveryDismissed: getCopilotChatDiscoveryDismissedState(context), | ||
| activeView: SchemaDesigner.SchemaDesignerActiveView.SchemaDesigner, | ||
| isReadOnly, | ||
| }, | ||
| { | ||
| title: `${LocConstants.SchemaDesigner.PanelTitle} - ${databaseName}`, | ||
| // Drop the "(Preview)" suffix when launched read-only from the | ||
| // Table Explorer's table-diagram entry point. | ||
| title: isReadOnly | ||
| ? `${LocConstants.SchemaDesigner.ReadOnlyPanelTitle} - ${databaseName}` | ||
| : `${LocConstants.SchemaDesigner.PanelTitle} - ${databaseName}`, | ||
|
Comment on lines
+118
to
+122
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's okay without stripping the "preview" suffix, since that'll go away soon anyway. Plus, even in "read-only" mode, I can still access the DAB functionality that's the bulk of the preview functionality.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment is outdated. The latest changes in main removed "(Preview)". |
||
| viewColumn: vscode.ViewColumn.One, | ||
| iconPath: { | ||
| light: vscode.Uri.joinPath( | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a comment with the parameter's name so we know what's getting set as undefined?