mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
Merge from vscode e558dc6ea73a75bd69d7a0b485f0e7e4194c66bf (#6864)
This commit is contained in:
@@ -32,6 +32,27 @@ export class HideWebViewEditorFindCommand extends Command {
|
||||
}
|
||||
}
|
||||
|
||||
export class WebViewEditorFindNextCommand extends Command {
|
||||
public static readonly ID = 'editor.action.webvieweditor.findNext';
|
||||
|
||||
public runCommand(accessor: ServicesAccessor, args: any): void {
|
||||
const webViewEditor = getActiveWebviewEditor(accessor);
|
||||
if (webViewEditor) {
|
||||
webViewEditor.find(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class WebViewEditorFindPreviousCommand extends Command {
|
||||
public static readonly ID = 'editor.action.webvieweditor.findPrevious';
|
||||
|
||||
public runCommand(accessor: ServicesAccessor, args: any): void {
|
||||
const webViewEditor = getActiveWebviewEditor(accessor);
|
||||
if (webViewEditor) {
|
||||
webViewEditor.find(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
export class ReloadWebviewAction extends Action {
|
||||
static readonly ID = 'workbench.action.webview.reloadWebviewAction';
|
||||
static readonly LABEL = nls.localize('refreshWebviewLabel', "Reload Webviews");
|
||||
@@ -62,4 +83,4 @@ function getActiveWebviewEditor(accessor: ServicesAccessor): WebviewEditor | nul
|
||||
const editorService = accessor.get(IEditorService);
|
||||
const activeControl = editorService.activeControl as WebviewEditor;
|
||||
return activeControl.isWebviewEditor ? activeControl : null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user