public override void OnDisconnecting(BrowserLinkConnection connection) { if (_connections.Contains(connection)) _connections.Remove(connection); base.OnDisconnecting(connection); }
public UnusedCssExtension(BrowserLinkConnection connection) { ExtensionByConnection[connection] = this; _uploadHelper = new UploadHelper(); _connection = connection; UnusedCssOptions.SettingsUpdated += InstallIgnorePatterns; }
public PixelPushingMode(BrowserLinkConnection connection) { ExtensionByConnection[connection] = this; _uploadHelper = new UploadHelper(); _connection = connection; Settings.BrowserLinkOptions.SettingsUpdated += (sender, args) => _ignoreList = null; }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { if (!WESettings.GetBoolean(WESettings.Keys.EnableBrowserLinkMenu)) return null; return new MenuBrowserLink(); }
public override void OnDisconnecting(BrowserLinkConnection connection) { if (_browserCapDictionary.ContainsKey(connection.ConnectionId)) _browserCapDictionary.Remove(connection.ConnectionId); base.OnDisconnecting(connection); }
public override void OnDisconnecting(BrowserLinkConnection connection) { lock (_operationsInProgress) { foreach (var opId in _operationsInProgress) { _uploadHelper.CancelOperation(opId); } } if (IsRecording) { var appBag = BrowserLocationContinuationActions.GetOrAdd(_connection.AppName, n => new ConcurrentDictionary <string, Action <UnusedCssExtension> >()); try { appBag.AddOrUpdate(_connection.Project.UniqueName, n => c => c.ToggleRecordingMode(), (n, a) => c => c.ToggleRecordingMode()); } catch (COMException) { return; } } UnusedCssExtension extension; ExtensionByConnection.TryRemove(connection, out extension); Settings.BrowserLinkOptions.SettingsUpdated -= InstallIgnorePatterns; }
public PixelPushingMode(BrowserLinkConnection connection) { ExtensionByConnection[connection] = this; _uploadHelper = new UploadHelper(); _connection = connection; Settings.BrowserLinkOptions.SettingsUpdated += (sender, args) => _ignoreList = null; }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { if (!WESettings.Instance.BrowserLink.EnableMenu) return null; return new MenuBrowserLink(); }
public override void OnConnected(BrowserLinkConnection connection) { if (connection.Project == _project) _connections.Add(connection); base.OnConnected(connection); }
public override void OnConnected(BrowserLinkConnection connection) { if (_showInCurrentVsSession) { Browsers.Client(connection).Invoke("showOverlay"); base.OnConnected(connection); } }
public UnusedCssExtension(BrowserLinkConnection connection) { ExtensionByConnection[connection] = this; _uploadHelper = new UploadHelper(); _connection = connection; Settings.BrowserLinkOptions.SettingsUpdated += InstallIgnorePatterns; }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { if (VSPackage.Options.ShowOverlay && VSPackage.Options.EnableNavigationHotkeys) { return(new OverlayExtension()); } return(null); }
public override void OnDisconnecting(BrowserLinkConnection connection) { if (_connections.Contains(connection)) { _connections.Remove(connection); } base.OnDisconnecting(connection); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { if (connection.Project == null || !VSPackage.Options.Enabled) { return(null); } return(CheckerExtension.Instance); }
public override void OnConnected(BrowserLinkConnection connection) { if (connection.Project == _project) { _connections.Add(connection); } base.OnConnected(connection); }
public override void OnDisconnecting(BrowserLinkConnection connection) { PixelPushingMode extension; ExtensionByConnection.TryRemove(connection, out extension); _isDisconnecting = true; base.OnDisconnecting(connection); }
public override void OnDisconnecting(BrowserLinkConnection connection) { if (_browserCapDictionary.ContainsKey(connection.ConnectionId)) { _browserCapDictionary.Remove(connection.ConnectionId); } base.OnDisconnecting(connection); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { if (!WESettings.Instance.BrowserLink.EnableMenu) { return(null); } return(new MenuBrowserLink()); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { // Instantiate the extension as a singleton if (_extension == null) { _extension = new CssSync(); } return(_extension); }
public override BrowserLinkExtension CreateInstance(BrowserLinkConnection connection) { // Instantiate the extension as a singleton if (_extension == null) { _extension = new BestPractices(); } return(_extension); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { // Instantiate the extension as a singleton if (_extension == null) { _extension = new CssSync(); } return _extension; }
public override void OnDisconnecting(BrowserLinkConnection connection) { if (_fsw != null) { _fsw.Changed -= RefreshStyles; _fsw.Created -= RefreshStyles; _fsw.Deleted -= RefreshStyles; _fsw.Dispose(); _fsw = null; } }
public override void OnDisconnecting(BrowserLinkConnection connection) { if (_fsw != null) { _fsw.Changed -= RefreshStyles; _fsw.Created -= RefreshStyles; _fsw.Deleted -= RefreshStyles; _fsw.Dispose(); _fsw = null; } }
public override void OnConnected(BrowserLinkConnection connection) { if (connection.Project == null) { return; } string project = connection.Project.Name; bool enabled = ScriptErrorPackage.Options.RunOnPageLoad; Browsers.Client(connection).Invoke("initialize", project, enabled); }
public override void OnConnected(BrowserLinkConnection connection) { IVsSolution solution = Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SVsSolution)) as IVsSolution; IVsHierarchy hierarchy1 =null; if (connection.Project != null) { int hr = solution.GetProjectOfUniqueName(connection.Project.UniqueName, out hierarchy1); } projectHierarchy = hierarchy1; connectionURL = connection.Url.ToString(); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { if (connection.Project == null) return null; // Create one extension per project if (!Extensions.ContainsKey(connection.Project)) { var extension = new ReloadExtension(connection.Project); Extensions.Add(connection.Project, extension); } return Extensions[connection.Project]; }
public override void OnConnected(BrowserLinkConnection connection) { IVsSolution solution = Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SVsSolution)) as IVsSolution; IVsHierarchy hierarchy1 = null; if (connection.Project != null) { int hr = solution.GetProjectOfUniqueName(connection.Project.UniqueName, out hierarchy1); } projectHierarchy = hierarchy1; connectionURL = connection.Url.ToString(); }
public override void OnConnected(BrowserLinkConnection connection) { if (_fsw == null) { string path = connection.Project.Properties.Item("FullPath").Value.ToString(); // Check if the FullPath is a file and if so, get the directory. This is for Website Project compat. if (File.Exists(path)) { path = Path.GetDirectoryName(path); } Watch(path); } }
public override void OnConnected(BrowserLinkConnection connection) { if (_fsw == null) { string path = connection.Project.Properties.Item("FullPath").Value.ToString(); // Check if the FullPath is a file and if so, get the directory. This is for Website Project compat. if (File.Exists(path)) { path = Path.GetDirectoryName(path); } Watch(path); } }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { if (connection.Project == null) { return(null); } // Create one extension per project if (!Extensions.ContainsKey(connection.Project)) { var extension = new ReloadExtension(connection.Project); Extensions.Add(connection.Project, extension); } return(Extensions[connection.Project]); }
private string GetOptions(BrowserLinkConnection connection) { var dir = new DirectoryInfo(connection.Project.GetRootFolder()); string folder = FindConfigFolder(dir); string file = Path.Combine(folder, Constants.ConfigFileName); string options = "{}"; if (File.Exists(file)) { string content = File.ReadAllText(file); var obj = JObject.Parse(content, new JsonLoadSettings { CommentHandling = CommentHandling.Ignore }); options = obj.ToString(); } return(options); }
public override void OnConnected(BrowserLinkConnection connection) { if (connection.Project == null) { return; } if (!_connections.Contains(connection)) { _connections.Add(connection); } if (VSPackage.Options.RunOnPageLoad) { CheckA11y(connection); } base.OnConnected(connection); }
public override void OnConnected(BrowserLinkConnection connection) { if (connection.Project == null) { return; } if (!_connections.Contains(connection)) { _connections.Add(connection); } Browsers.Client(connection).Invoke("initialize", GetOptions(connection), connection.Project.Name); if (VSPackage.Options.RunOnPageLoad) { CheckA11y(connection); } base.OnConnected(connection); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { return new MyExtension(); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { return new UnusedCssExtension(connection); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { return(new DesignMode()); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { return new InspectMode(); }
public override void OnConnected(BrowserLinkConnection connection) { _connection = connection; DisableInspectMode(); }
public override void OnDisconnecting(BrowserLinkConnection connection) { PixelPushingMode extension; ExtensionByConnection.TryRemove(connection, out extension); _isDisconnecting = true; base.OnDisconnecting(connection); }
public override void OnConnected(BrowserLinkConnection connection) { _current = connection; base.OnConnected(connection); }
public override void OnConnected(BrowserLinkConnection connection) { Browsers.Client(connection).Invoke("setVisibility", WESettings.GetBoolean(WESettings.Keys.BrowserLink_ShowMenu)); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { return new PixelPushingMode(connection); }
public override void OnConnected(BrowserLinkConnection connection) { Browsers.Client(connection).Invoke("greeting", "Hello from Visual Studio!"); }
public override BrowserLinkExtension CreateInstance(BrowserLinkConnection connection) { // Instantiate the extension as a singleton if (_extension == null) { _extension = new DesignMode(); } return _extension; }
public override void OnConnected(BrowserLinkConnection connection) { Browsers.Client(connection).Invoke("setVisibility", WESettings.Instance.BrowserLink.ShowMenu); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { return(new BrowserInfo()); }
public override void OnConnected(BrowserLinkConnection connection) { SetMode(); }
public override void OnConnected(BrowserLinkConnection connection) { _current = connection; base.OnConnected(connection); }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { return new $safeitemname$(); }
public CssSync(BrowserLinkConnection connection) { _connection = connection; Watch(); }
public override void OnDisconnecting(BrowserLinkConnection connection) { DisableInspectMode(); }
public override void OnConnected(BrowserLinkConnection connection) { SetMode(); }
public override void OnConnected(BrowserLinkConnection connection) { _connection = connection; }
public override BrowserLinkExtension CreateInstance(BrowserLinkConnection connection) { return(new CssSync(connection)); }
public override void OnConnected(BrowserLinkConnection connection) { _connection = connection; }
public override void OnConnected(BrowserLinkConnection connection) { Browsers.Client(connection).Invoke("setVisibility", WESettings.Instance.BrowserLink.ShowMenu); }
public PixelPushingMode(BrowserLinkConnection connection) { ExtensionByConnection[connection] = this; _uploadHelper = new UploadHelper(); _connection = connection; }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { return(new UnusedCssExtension(connection)); }
public override void OnDisconnecting(BrowserLinkConnection connection) { lock (_operationsInProgress) { foreach (var opId in _operationsInProgress) { _uploadHelper.CancelOperation(opId); } } if (IsRecording) { var appBag = BrowserLocationContinuationActions.GetOrAdd(_connection.AppName, n => new ConcurrentDictionary<string, Action<UnusedCssExtension>>()); try { appBag.AddOrUpdate(_connection.Project.UniqueName, n => c => c.ToggleRecordingMode(), (n, a) => c => c.ToggleRecordingMode()); } catch (COMException) { return; } } UnusedCssExtension extension; ExtensionByConnection.TryRemove(connection, out extension); BrowserLinkOptions.SettingsUpdated -= InstallIgnorePatterns; }
public BrowserLinkExtension CreateExtensionInstance(BrowserLinkConnection connection) { return new TenonAccessibilityBrowserExtension(); }