live-share icon indicating copy to clipboard operation
live-share copied to clipboard

Problems with snippets and with python

Open Francesco-2003 opened this issue 2 years ago • 0 comments

Describe what happened: the problem I found while working on a LateX project or python project using the live share screen is that the snippets don't work (the extension is Hypersnips of Draivin). Every time I use a snippet, it gives me twice what I try to type, or it types the snippet just when the one who has shared the screen is working on the project, it doesn't allow the one who is working on the project to use his snippets or the ones of the owner.

What was your system configuration? Product and Version [VS/VSCode]: OS Version[macOS/Windows]: macOS Monterey 12.5.1 Live Share Extension Version: Target Platform or Language [e.g. Node.js]:

Steps to Reproduce / Scenario:

  1. Install "Hypersnips" of Draivin.
  2. Open a file on VSCode and save it as "python.hsnips" (in this way the snippet will work just on python).
  3. copy and paste in the "python.hsnips" file these lines of code:

snippet print "print on Python" wA print("$1") $0 endsnippet

  1. Save it (as python.hsnips), and then open command palette and write "Hypersnips: open snippet directory" and save the new file in there.
  2. once saved, open command palette and type "Hypersnips: reload snippets" in these way you can use the new file in python space.
  3. open another file in vscode and save it as a python file.
  4. type "print", it should return you "print("")" and you should be positioned between the $1 position, so in the print.
  5. Now, here is the problem, if you type "print" it should return you just once the print, instead, while you are using the live share, it returns you twice what you have written in the snippet, and you want it to return it just once. (it can appear this bug or not, sometimes you find it and some other times not).
  6. another bug I found is that the new user, on his laptop, cannot use the snippets, as it doesn't work for him, it works just on the laptop of the one who has set the snippets, and this things is not good, or you allow the new user to use his snippets or you make the code to allow the new user to use your snippets.

I hope to have been cleared, best regards, solve the problem.

Francesco-2003 avatar Aug 31 '22 17:08 Francesco-2003