Skip to content

Commit

Permalink
fix: send all workspace settings during initialisation (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk authored Mar 12, 2022
1 parent 0ef2ffa commit 8ed6a99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ const LANGUAGES = [
/** These are keys of settings that have a scope of window or machine. */
const workspaceSettingsKeys: Array<keyof Settings> = [
"cache",
"certificateStores",
"codeLens",
"config",
"enable",
"importMap",
"internalDebug",
"lint",
"path",
"suggest",
"tlsCertificate",
"unsafelyIgnoreCertificateErrors",
"unstable",
];

Expand Down
4 changes: 4 additions & 0 deletions client/src/shared_types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import type { ConfigurationScope } from "vscode";
/** When `vscode.WorkspaceSettings` get serialized, they keys of the
* configuration are available. This interface should mirror the configuration
* contributions made by the extension.
*
* **WARNING** please ensure that the `workspaceSettingsKeys` contains all the
* top level keys of this, as they need to be sent to the server on
* initialization.
*/
export interface Settings {
/** Specify an explicit path to the `deno` cache instead of using DENO_DIR
Expand Down

0 comments on commit 8ed6a99

Please sign in to comment.