pajoma / vscode-journal

Lightweight journal and simple notes support for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=pajoma.vscode-journal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local VS Remote Hosting

geoff-va opened this issue · comments

commented

Is it possible to always host this application in the local environment as opposed to the remote host? I frequently work on many remote systems and in the current case there are new journals created in each remote as opposed to a single one on my local server that I can access all the time. This means always having a dedicated, local window open only to access my notes. Thanks!

I totally agree, and I actually thought that this is the case already.

Let's say you have a local machine "DEV" and a remote "SERVER". You open vscode on DEV (with a journal base defined in its user settings). You open a remote workspace on SERVER (without journal base defined in workspace settings). In this case, vscode should always use the base defined in the local user settings (pointing to DEV). If you define journal.base in the workspace.settings in SERVER, it will create files on the remote machine (not on your local node).

commented

Confirmed I do not have journal.base defined in either the User or Workspace settings on my dev or remote machine.

When I try and create a new entry for Today, on the remote machine (ubuntu) I see the path of the file as:

/home/<username>/Journal/...

And on my local machine (Osx) it shows:

/Users/<username/Journal/...

Should the extension/viewer extension not be installed on the remote? I think I have both installed on the remote by default.

Thanks!

Is this perhaps controlled by the extensionKind property in the extension's manifest (package.json) file? https://code.visualstudio.com/api/advanced-topics/extension-host#preferred-extension-location