|
1 | 1 | ---
|
2 | 2 | # DO NOT TOUCH — Managed by doc writer
|
3 | 3 | ContentId: 9c48dfbf-e49d-4f33-aadc-5ebf06d5dde0
|
4 |
| -<<<<<<< HEAD |
5 |
| -<<<<<<< HEAD |
6 |
| -<<<<<<< HEAD |
7 |
| -<<<<<<< HEAD |
8 |
| -<<<<<<< HEAD |
9 |
| -<<<<<<< HEAD |
10 |
| -<<<<<<< HEAD |
11 |
| -<<<<<<< HEAD |
12 |
| -DateApproved: 10/03/2024 |
13 |
| -======= |
14 | 4 | DateApproved: 10/29/2024
|
15 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
16 |
| -======= |
17 |
| -DateApproved: 10/29/2024 |
18 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
19 |
| -======= |
20 |
| -DateApproved: 10/29/2024 |
21 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
22 |
| -======= |
23 |
| -DateApproved: 10/29/2024 |
24 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
25 |
| -======= |
26 |
| -DateApproved: 10/29/2024 |
27 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
28 |
| -======= |
29 |
| -DateApproved: 10/29/2024 |
30 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
31 |
| -======= |
32 |
| -DateApproved: 10/29/2024 |
33 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
34 |
| -======= |
35 |
| -DateApproved: 10/29/2024 |
36 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
37 | 5 |
|
38 | 6 | # Summarize the whole topic in less than 300 characters for SEO purpose
|
39 | 7 | MetaDescription: Common capabilities that Visual Studio Code extensions (plug-ins) can take advantage of
|
@@ -68,76 +36,13 @@ An extension can register custom Context Menu items that will be displayed in di
|
68 | 36 |
|
69 | 37 | ## Data Storage
|
70 | 38 |
|
71 |
| -<<<<<<< HEAD |
72 |
| -<<<<<<< HEAD |
73 |
| -<<<<<<< HEAD |
74 |
| -<<<<<<< HEAD |
75 |
| -<<<<<<< HEAD |
76 |
| -<<<<<<< HEAD |
77 |
| -<<<<<<< HEAD |
78 |
| -<<<<<<< HEAD |
79 |
| -There are four options for storing data: |
80 |
| -======= |
81 |
| -There are five options for storing data: |
82 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
83 |
| -======= |
84 |
| -There are five options for storing data: |
85 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
86 |
| -======= |
87 |
| -There are five options for storing data: |
88 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
89 |
| -======= |
90 |
| -There are five options for storing data: |
91 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
92 |
| -======= |
93 | 39 | There are five options for storing data:
|
94 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
95 |
| -======= |
96 |
| -There are five options for storing data: |
97 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
98 |
| -======= |
99 |
| -There are five options for storing data: |
100 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
101 |
| -======= |
102 |
| -There are five options for storing data: |
103 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
104 | 40 |
|
105 | 41 | - [`ExtensionContext.workspaceState`](/api/references/vscode-api#ExtensionContext.workspaceState): A workspace storage where you can write key/value pairs. VS Code manages the storage and will restore it when the same workspace is opened again.
|
106 | 42 | - [`ExtensionContext.globalState`](/api/references/vscode-api#ExtensionContext.globalState): A global storage where you can write key/value pairs. VS Code manages the storage and will restore it for each extension activation. You can selectively synchronize key/value pairs in global storage by setting the keys for sync using `setKeysForSync` method on `globalState`.
|
107 | 43 | - [`ExtensionContext.storageUri`](/api/references/vscode-api#ExtensionContext.storageUri): A workspace specific storage URI pointing to a local directory where your extension has read/write access. This is a good option if you need to store large files that are accessible only from the current workspace.
|
108 | 44 | - [`ExtensionContext.globalStorageUri`](/api/references/vscode-api#ExtensionContext.globalStorageUri): A global storage URI pointing to a local directory where your extension has read/write access. This is a good option if you need to store large files that are accessible from all workspaces.
|
109 |
| -<<<<<<< HEAD |
110 |
| -<<<<<<< HEAD |
111 |
| -<<<<<<< HEAD |
112 |
| -<<<<<<< HEAD |
113 |
| -<<<<<<< HEAD |
114 |
| -<<<<<<< HEAD |
115 |
| -<<<<<<< HEAD |
116 |
| -<<<<<<< HEAD |
117 |
| -======= |
118 |
| -- [`ExtensionContext.secrets`](/api/references/vscode-api#ExtensionContext.secrets): A global storage for secrets (or any information that is sensitive) that will be encrypted. These are not synced across machines. For VS Code desktop, this leverages Electron's [safeStorage API](https://www.electronjs.org/docs/latest/api/safe-storage). For VS Code for the Web, this uses a Double Key Encryption (DKE) implementation. |
119 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
120 |
| -======= |
121 |
| -- [`ExtensionContext.secrets`](/api/references/vscode-api#ExtensionContext.secrets): A global storage for secrets (or any information that is sensitive) that will be encrypted. These are not synced across machines. For VS Code desktop, this leverages Electron's [safeStorage API](https://www.electronjs.org/docs/latest/api/safe-storage). For VS Code for the Web, this uses a Double Key Encryption (DKE) implementation. |
122 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
123 |
| -======= |
124 |
| -- [`ExtensionContext.secrets`](/api/references/vscode-api#ExtensionContext.secrets): A global storage for secrets (or any information that is sensitive) that will be encrypted. These are not synced across machines. For VS Code desktop, this leverages Electron's [safeStorage API](https://www.electronjs.org/docs/latest/api/safe-storage). For VS Code for the Web, this uses a Double Key Encryption (DKE) implementation. |
125 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
126 |
| -======= |
127 |
| -- [`ExtensionContext.secrets`](/api/references/vscode-api#ExtensionContext.secrets): A global storage for secrets (or any information that is sensitive) that will be encrypted. These are not synced across machines. For VS Code desktop, this leverages Electron's [safeStorage API](https://www.electronjs.org/docs/latest/api/safe-storage). For VS Code for the Web, this uses a Double Key Encryption (DKE) implementation. |
128 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
129 |
| -======= |
130 |
| -- [`ExtensionContext.secrets`](/api/references/vscode-api#ExtensionContext.secrets): A global storage for secrets (or any information that is sensitive) that will be encrypted. These are not synced across machines. For VS Code desktop, this leverages Electron's [safeStorage API](https://www.electronjs.org/docs/latest/api/safe-storage). For VS Code for the Web, this uses a Double Key Encryption (DKE) implementation. |
131 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
132 |
| -======= |
133 |
| -- [`ExtensionContext.secrets`](/api/references/vscode-api#ExtensionContext.secrets): A global storage for secrets (or any information that is sensitive) that will be encrypted. These are not synced across machines. For VS Code desktop, this leverages Electron's [safeStorage API](https://www.electronjs.org/docs/latest/api/safe-storage). For VS Code for the Web, this uses a Double Key Encryption (DKE) implementation. |
134 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
135 |
| -======= |
136 |
| -- [`ExtensionContext.secrets`](/api/references/vscode-api#ExtensionContext.secrets): A global storage for secrets (or any information that is sensitive) that will be encrypted. These are not synced across machines. For VS Code desktop, this leverages Electron's [safeStorage API](https://www.electronjs.org/docs/latest/api/safe-storage). For VS Code for the Web, this uses a Double Key Encryption (DKE) implementation. |
137 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
138 |
| -======= |
139 | 45 | - [`ExtensionContext.secrets`](/api/references/vscode-api#ExtensionContext.secrets): A global storage for secrets (or any information that is sensitive) that will be encrypted. These are not synced across machines. For VS Code desktop, this leverages Electron's [safeStorage API](https://www.electronjs.org/docs/latest/api/safe-storage). For VS Code for the Web, this uses a Double Key Encryption (DKE) implementation.
|
140 |
| ->>>>>>> 27e6951b86c69326ee8ff76ba46694a60b72ec65 |
141 | 46 |
|
142 | 47 | The extension context is available to the `activate` function in the [Extension Entry File](/api/get-started/extension-anatomy#extension-entry-file).
|
143 | 48 |
|
|
0 commit comments