Skip to content

support working with remote static files (html, js, css, CSP, etc...) #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mariosanchez23 opened this issue Mar 22, 2019 · 11 comments
Closed

Comments

@mariosanchez23
Copy link

I think this is not possible yet. It would be great if you could work with remote static files.
When the server is remote, you can't work with static files unless you do OS mappings, etc...

It would be great if in the server explorer tab we could also see static files and edit html, js, csp, etc...

@daimor
Copy link
Member

daimor commented Mar 22, 2019

I don't really like a way when you can edit files remotely, it does not make any sense in an editor like VSCode. Editable files should be always local.

But I think I can add CSP files on Explorer tab. And export them, to get it locally.

@mariosanchez23
Copy link
Author

mariosanchez23 commented Mar 22, 2019 via email

@mariosanchez23
Copy link
Author

Yeah!! it is in the todo list! thanks!
Once this is completed I will be able to work fully with vscode!

@daimor daimor transferred this issue from daimor/vscode-objectscript-fork Jun 12, 2019
@klauws
Copy link

klauws commented Jun 19, 2019

This would be great.

@grongierisc
Copy link
Contributor

BTW, great work daimor !

any plan to add this feature in a release ?

@daimor
Copy link
Member

daimor commented Nov 26, 2019

I have not planed it yet, not sure when I will manage to do it.

@daimor
Copy link
Member

daimor commented Jan 13, 2020

@mariosanchez23, @grongierisc look at my the latest beta release, where I've added support for remote editing CSP files. How to configure, you can find here, could you try and give some feedback.

@grongierisc
Copy link
Contributor

Hi Dmitriy,

I try your implementation on the 0.8.1 beta and it doesn't work for me.
I can't edit or create new files with this configuration :

{
"folders": [
{
"name": "main",
"path": "."
},
{
"name": "Backend",
"path": "Backend"
},{
"uri": "isfs://main/csp/user?csp",
"name": "CSP-Backend",
},
],
"extensions": {
"recommendations": [
"daimor.vscode-objectscript"
]
},
"settings": {
"files.exclude": {
"Backend": true
},
}
}

vscode settings on main :

{
"objectscript.conn": {
"active": false,
"host": "localhost",
"port": 52773,
"username": "_SYSTEM",
"password": "SYS",
"ns": "USER",
"https": false,
"docker-compose": {}
}
}

image

@daimor
Copy link
Member

daimor commented Jan 27, 2020

Hi Guillaume,

I see, that you got an error when creating a file, unfortunately I did not finish this part yet, but I'll add it quite soon.
While editing files should work.
Do you have any errors when edit existing files?
Does it show any errors?
Sometimes it can show error for an existing file but open it correctly when opening it a second time.

@grongierisc
Copy link
Contributor

grongierisc commented Jan 27, 2020

I can see and delete files
But, i can't edit files, the error in the output is : ERROR #5005: Cannot open file '/usr/irissys/csp/backend/gEju412NjdfbOw.csp' when editing chat.csp

@daimor
Copy link
Member

daimor commented Jan 27, 2020

Look at wiki
you need this setting as well

"objectscript.serverSideEditing": true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants