Skip to content

Intellisense breaks when using \' inside a string with single quotes #786

Closed

Description

@cheazy

Environment data

VS Code version: 1.20.0
Python Extension version: 2018.1.0
Python Version: 3.6.4
OS and version: Windows 10 Pro

Actual behavior

image

Expected behavior

image

Steps to reproduce:

copy and paste this inside a python file:

test = 'this \' will break'

this will also break:

test = "this \" will break"

Intellisense stops working for everything below it unless you are on the very last line of the file.

Of course the easy fix is to just use single or double quotes depending on what you need to escape. Or use triple quotes. 😋

Activity

  1. added
    bug
    area-intellisense
    on Feb 14, 2018
  2. locked as resolved and limited conversation to collaborators on Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-intellisensebug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions