Skip to content

Commit

Permalink
feat: "deno.logFile" setting (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn authored Dec 8, 2023
1 parent 40bd148 commit 1f7f580
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const workspaceSettingsKeys: Array<keyof Settings> = [
"inlayHints",
"internalDebug",
"lint",
"logFile",
"path",
"suggest",
"testing",
Expand Down Expand Up @@ -177,6 +178,7 @@ function handleConfigurationChange(event: vscode.ConfigurationChangeEvent) {
event.affectsConfiguration("deno.enable") ||
event.affectsConfiguration("deno.disablePaths") ||
event.affectsConfiguration("deno.enablePaths") ||
event.affectsConfiguration("deno.logFile") ||
event.affectsConfiguration("deno.path") ||
event.affectsConfiguration("deno.maxTsServerMemory")
) {
Expand Down
1 change: 1 addition & 0 deletions client/src/shared_types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export interface Settings {
internalDebug: boolean;
/** Determine if the extension should be providing linting diagnostics. */
lint: boolean;
logFile: boolean;
/** Specify an explicit path to the `deno` binary. */
path: string | null;
// TODO(nayeemrmn): Deprecate the `Suggest` part of this in favour of
Expand Down
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,16 @@
false
]
},
"deno.logFile": {
"type": "boolean",
"default": false,
"markdownDescription": "Write logs to a file in a project-local directory.",
"scope": "window",
"examples": [
true,
false
]
},
"deno.defaultTaskCommand": {
"type": "string",
"enum": [
Expand Down
1 change: 1 addition & 0 deletions typescript-deno-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const defaultSettings: Settings = {
inlayHints: null,
internalDebug: false,
lint: false,
logFile: false,
path: null,
suggest: {
autoImports: true,
Expand Down

0 comments on commit 1f7f580

Please sign in to comment.