title: Find and replace in Visual Studio code in a selection
body: <p>I have the following line in a file I'm editing in VSCode:</p>
  
  <p><code>...............111.........111.............111..</code></p>
  
  <p>I want to replace all <code>.</code>s with <code>0</code>s. However, when I highlight the line and do a find/replace for <code>.</code>s, <em>all</em> the <code>.</code>s in the document are replaced, not just the ones in the line I've select, even when I toggle the "Find in selection" button. Is this a bug? In other editors, if I select a chunk of text and then do a find/replace, it will only find/replace matches within the selected block.</p>
  
  <p>Below is a snippet that you should be able to reproduce the issue with. The <code>...............111.........111.............111..</code> line is inside the <code>test_unicode</code> function.</p>
  
  <pre><code>def test_simple2(self):
          """Simple CSV transduction test with empty fields, more complex idx, different pack_size.
  
          100011000001000 -&gt;
          ..........111....................111..........11111..........111..
          """
          field_width_stream = pablo.BitStream(int('1000110001000001000', 2))
          idx_marker_stream = pablo.BitStream(int('11101', 2))
          pack_size = 4
          target_format = TransductionTarget.JSON
          csv_column_names = ["col1", "col2", "col3", "col4", "col5"]
  
          pdep_marker_stream = pablo.BitStream(generate_pdep_stream(field_width_stream,
                                                                    idx_marker_stream,
                                                                    pack_size, target_format,
                                                                    csv_column_names))
          self.assertEqual(pdep_marker_stream.value, 63050402300395548)
  
      def test_unicode(self):
          """Non-ascii column names.
  
          Using UTF8. Hard coded SON boilerplate byte size should remain the same, column name
          boilerplate bytes should expand.
  
          100010010000000 -&gt;
          2 + 4 + 9     2 + 4 + 6     2 + 4 + 7
          ...............111.........111.............111..
          """
          field_width_stream = pablo.BitStream(int('100010001000', 2))
          idx_marker_stream = pablo.BitStream(1)
          pack_size = 64
          target_format = TransductionTarget.JSON
          csv_column_names = ["한국어", "中文", "English"]
  
          pdep_marker_stream = pablo.BitStream(generate_pdep_stream(field_width_stream,
                                                                    idx_marker_stream,
                                                                    pack_size, target_format,
                                                                    csv_column_names))
          self.assertEqual(pdep_marker_stream.value, 1879277596)
  </code></pre>
  
  <p>I'm using VSCode 1.12.2 in Ubuntu 16.04.</p>