对于我正在开发的扩展,我们的最终用户更喜欢默认情况下启用自动换行等选项。我们希望能够在没有用户直接参与的情况下在语言级别进行设置(仅针对我们的扩展程序所针对的语言)。我知道每种语言的设置。我的目标是设置如下设置:
"[xml]": {
"editor.wordWrap": "on",
"editor.tabSize": 4
},
Run Code Online (Sandbox Code Playgroud)
无需用户在自己的用户设置中这样做。有没有办法通过扩展 API做到这一点?我没有看到任何明显的方法来这样做。
PS LanguageConfiguration 对象似乎与设置自动换行等内容无关。
当ssh失去与服务器的连接时,我在riak-shell中.重新连接后,我执行以下操作:
sudo riak-shell
Run Code Online (Sandbox Code Playgroud)
得到:
An instance of riak-shell is already running
Run Code Online (Sandbox Code Playgroud)
所以,我重新启动了有问题的riak节点.这似乎没有解决问题.我没有看到任何使用ps -aux杀人的东西.根据文档,一次只能运行一个实例.这是有道理的,但是当我从另一个节点运行riak-shell并尝试连接到任何节点时,我现在得到以下内容:
Error: invalid function call : connection_EXT:connect ["riak@<<<ip_address_elided>>>"]
You can connect to a specific node (whether in your riak_shell.config
or not) by typing 'connect "dev1@127.0.0.1";' substituting your
node name for dev1.
You may need to change the Erlang cookie to do this.
See also the 'reconnect' command.
Unhandled message received is {#Ref<0.0.0.135>,disconnected}
riak-shell(3)>
Run Code Online (Sandbox Code Playgroud)
我没有在这个过程中更改cookie,并且cookie看起来是相同的(至少在/etc/riak/riak_shell.config).(我在AWS上运行Riak TS AMI.)