dbankier / vscode-instant-markdown

vscode extension for instant markdown previews
53 stars 23 forks source link

Not starting when running in a seocnd code window #22

Open HankB opened 7 years ago

HankB commented 7 years ago

1) I opened a new VS code window () and drug README.md from the original window to the new window. 2) Close README.md in original window. (Browser view nowe closed.) 3) Editing README.md in new window - no browsaer preview. :( 4) Close and reopen the README.md file in new window - no change. (There are no Markdown files open in the original window.) 5) Some time later I open Preferences->Settings (settings.json) for an unrelated issue. When I save and switch back to the README.md, the preview appears. :)

Thanks!

Edit: instant markdown 1.1.0, I see that 1.2.0 is in Github. I've installed via the Extensions in VS code. I wonder if most recent version might fix this and if I should work outside VS code to update. (Title: s/seocnd/second/)

dbankier commented 7 years ago

Yep that is it the issue. The new implementation is running the server from within the plugin, so it a "port already in use" issue. I'll think of the best way around this...

HankB commented 7 years ago

Without knowing anything about the code (but familiar with 'port already in use') would incrementing the port number when that error occurs work?