Skip to content

Selecting text is slow, switching tabs to a file with selected text is also very slow (seconds) #146237

@jisuo

Description

@jisuo

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.65.2
  • OS Version: Mac OS Monterey 12.3

Steps to Reproduce:

  1. Select text in one tab, the more you select the slower it gets.
  2. Go to another tab and then click the tab with selected text again, the more text selected the longer delay (seconds)

The Performance profiler I did was 33MB so cannot include it here, but just a screenshot after selecting 30 lines of code and switching tabs (about 600ms to switch tab):

image

Edit for more information:

I opened a new VS Code window, pasted this code snippet into two different tabs without saving (it doesn't matter what it is):

import React from "react";
import PropTypes from "prop-types";
import "./Button.css";

export default class Button extends React.Component {
  static propTypes = {
    name: PropTypes.string,
    orange: PropTypes.bool,
    wide: PropTypes.bool,
    clickHandler: PropTypes.func,
  };

  handleClick = () => {
    this.props.clickHandler(this.props.name);
  };

  render() {
    const className = [
      "component-button",
      this.props.orange ? "orange" : "",
      this.props.wide ? "wide" : "",
    ];

    return (
      <div className={className.join(" ").trim()}>
        <button onClick={this.handleClick}>{this.props.name}</button>
      </div>
    );
  }
}

Metadata

Metadata

Assignees

Labels

chromiumIssues and items related to Chromiumfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesupstream-issue-linkedThis is an upstream issue that has been reported upstream

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions