mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-22 04:40:30 -04:00
Merge from vscode a5cf1da01d5db3d2557132be8d30f89c38019f6c (#8525)
* Merge from vscode a5cf1da01d5db3d2557132be8d30f89c38019f6c * remove files we don't want * fix hygiene * update distro * update distro * fix hygiene * fix strict nulls * distro * distro * fix tests * fix tests * add another edit * fix viewlet icon * fix azure dialog * fix some padding * fix more padding issues
This commit is contained in:
@@ -17,6 +17,7 @@ import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
|
||||
import { EditorOption } from 'vs/editor/common/config/editorOptions';
|
||||
import { registerThemingParticipant, ITheme, ICssStyleCollector } from 'vs/platform/theme/common/themeService';
|
||||
import { editorLightBulbForeground, editorLightBulbAutoFixForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { Gesture } from 'vs/base/browser/touch';
|
||||
|
||||
namespace LightBulbState {
|
||||
|
||||
@@ -25,7 +26,7 @@ namespace LightBulbState {
|
||||
Showing,
|
||||
}
|
||||
|
||||
export const Hidden = new class { readonly type = Type.Hidden; };
|
||||
export const Hidden = { type: Type.Hidden } as const;
|
||||
|
||||
export class Showing {
|
||||
readonly type = Type.Showing;
|
||||
@@ -71,7 +72,9 @@ export class LightBulbWidget extends Disposable implements IContentWidget {
|
||||
this.hide();
|
||||
}
|
||||
}));
|
||||
this._register(dom.addStandardDisposableListener(this._domNode, 'mousedown', e => {
|
||||
|
||||
Gesture.ignoreTarget(this._domNode);
|
||||
this._register(dom.addStandardDisposableGenericMouseDownListner(this._domNode, e => {
|
||||
if (this.state.type !== LightBulbState.Type.Showing) {
|
||||
return;
|
||||
}
|
||||
@@ -137,7 +140,7 @@ export class LightBulbWidget extends Disposable implements IContentWidget {
|
||||
}
|
||||
|
||||
public update(actions: CodeActionSet, atPosition: IPosition) {
|
||||
if (actions.actions.length <= 0) {
|
||||
if (actions.validActions.length <= 0) {
|
||||
return this.hide();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user