[VSCode] Perforce 外掛出現 command ‘perforce.login’ not found?

[VSCode] Perforce 外掛出現 command ‘perforce.login’ not found?

最近在用 VSCode 的 Perforce 外掛時,

偶爾會遇到奇怪的問題…

像是我執行 Perforce: Log in to Perforce:

 

結果就出現莫名其妙的 command ‘perforce.login’ not found:

 

這種狀況在重新啟動 VSCode 之後,有時候會好,

有時候又不會好,有點困擾…

 

上網查到一個很久以前 Perforce 外掛的問題,

理論上現在應該已經修掉了,不過死馬當活馬醫,

把別人提出來的 workaround 來試試看吧~

 

網友是說可能 Perforce 外掛自動偵測的功能有問題,

因此到 VSCode > Preferences > Settings > Perforce: Activation Mode,

把預設的 autodetect 改成 always,

這樣 Perforce 外掛就會每次都啟動,避開偵測失敗就不啟動的問題:

 

當然,這會造成用 VSCode 開一個完全不是 Perforce 管轄範圍的專案時,

也會啟動 Perforce 外掛…

不過目前來說,似乎還不算是個問題,

因此就先這樣解決、觀察看看囉~

 

參考資料:command ‘perforce.edit’ not found

 

(本頁面已被瀏覽過 702 次)

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料