|
17 | 17 | "untrustedWorkspaces": {
|
18 | 18 | "supported": false,
|
19 | 19 | "description": "This extension requires workspace trust because it needs to execute ngcc from the node_modules in the workspace."
|
| 20 | + }, |
| 21 | + "virtualWorkspaces": { |
| 22 | + "supported": "limited", |
| 23 | + "description": "The Language Server Protocol does not support remote file systems. Functionality is limited to syntax highlighting only." |
20 | 24 | }
|
21 | 25 | },
|
22 | 26 | "categories": [
|
|
59 | 63 | "commandPalette": [
|
60 | 64 | {
|
61 | 65 | "command": "angular.goToComponentWithTemplateFile",
|
62 |
| - "when": "editorLangId == html" |
| 66 | + "when": "editorLangId == html && !virtualWorkspace" |
63 | 67 | },
|
64 | 68 | {
|
65 | 69 | "command": "angular.goToTemplateForComponent",
|
66 |
| - "when": "editorLangId == typescript" |
| 70 | + "when": "editorLangId == typescript && !virtualWorkspace" |
| 71 | + }, |
| 72 | + { |
| 73 | + "command": "angular.runNgcc", |
| 74 | + "when": "!virtualWorkspace" |
| 75 | + }, |
| 76 | + { |
| 77 | + "command": "angular.getTemplateTcb", |
| 78 | + "when": "!virtualWorkspace" |
67 | 79 | }
|
68 | 80 | ],
|
69 | 81 | "editor/context": [
|
70 | 82 | {
|
71 |
| - "when": "resourceLangId == html || resourceLangId == typescript", |
| 83 | + "when": "(resourceLangId == html || resourceLangId == typescript) && !virtualWorkspace", |
72 | 84 | "command": "angular.getTemplateTcb",
|
73 | 85 | "group": "angular"
|
74 | 86 | },
|
75 | 87 | {
|
76 |
| - "when": "resourceLangId == html", |
| 88 | + "when": "resourceLangId == html && !virtualWorkspace", |
77 | 89 | "command": "angular.goToComponentWithTemplateFile",
|
78 | 90 | "group": "angular"
|
79 | 91 | },
|
80 | 92 | {
|
81 |
| - "when": "resourceLangId == typescript", |
| 93 | + "when": "resourceLangId == typescript && !virtualWorkspace", |
82 | 94 | "command": "angular.goToTemplateForComponent",
|
83 | 95 | "group": "angular"
|
84 | 96 | }
|
|
0 commit comments