Skip to content

Commit 4542e0a

Browse files
authored
3.49.0 (#1357)
1 parent 35d6e14 commit 4542e0a

File tree

15 files changed

+72
-50
lines changed

15 files changed

+72
-50
lines changed

.github/CONTRIBUTING.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Contributions
32

43
Thank you, we appreciate your help!
@@ -8,56 +7,54 @@ Thank you, we appreciate your help!
87

98
## Prerequisites
109

11-
Most changes & feature enhancements don't require the extension to be
12-
modified, as the majority of the data used in the extension is supplied by
10+
Most changes & feature enhancements don't require the extension to be
11+
modified, as the majority of the data used in the extension is supplied by
1312
the **Deno Language Server** which is integrated into the **[Deno CLI]**.
1413

1514
<br>
1615

17-
If you already have this VSCode extension installed from the Marketplace,
18-
note that there is no need to uninstall it for development as it is automatically
16+
If you already have this VSCode extension installed from the Marketplace,
17+
note that there is no need to uninstall it for development as it is
18+
automatically
1919
replaced when the `Launch Client` instance is running.
2020

21-
2221
<br>
2322
<br>
2423

2524
## Development Setup
2625

27-
1. Clone this repository
26+
1. Clone this repository
2827

29-
2. Open the project in VSCode
28+
2. Open the project in VSCode
3029

31-
3. Install the dependencies
30+
3. Install the dependencies
3231

33-
```sh
34-
npm install
35-
```
32+
```sh
33+
npm install
34+
```
3635

37-
4. In the **VSCode Debug Menu**
38-
start the `Launch Client` task
36+
4. In the **VSCode Debug Menu**
37+
start the `Launch Client` task
3938

40-
5. In the **VSCode Debug Menu**
41-
use the restart button after you
42-
have made changes to reload
39+
5. In the **VSCode Debug Menu**
40+
use the restart button after you
41+
have made changes to reload
4342

4443
<br>
4544
<br>
4645

4746
## Pull Requests
4847

49-
Once you are ready to open a ( draft ) pull request, give it a 𝗧𝗶𝘁𝗹𝗲 and
50-
𝗗𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻 that help people - that don't know of your changes - to
48+
Once you are ready to open a ( draft ) pull request, give it a 𝗧𝗶𝘁𝗹𝗲 and
49+
𝗗𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻 that help people - that don't know of your changes - to
5150
understand what, how and why you did what you did.
5251

53-
*It's helpful to link related [𝗜𝘀𝘀𝘂𝗲𝘀] & [𝗗𝗶𝘀𝗰𝘂𝘀𝘀𝗶𝗼𝗻𝘀] !*
54-
52+
_It's helpful to link related [𝗜𝘀𝘀𝘂𝗲𝘀] & [𝗗𝗶𝘀𝗰𝘂𝘀𝘀𝗶𝗼𝗻𝘀] !_
5553

5654
<br>
5755

5856
<!----------------------------------------------------------------------------->
5957

6058
[𝗗𝗶𝘀𝗰𝘂𝘀𝘀𝗶𝗼𝗻𝘀]: https://github.com/denoland/vscode_deno/discussions
6159
[𝗜𝘀𝘀𝘂𝗲𝘀]: https://github.com/denoland/vscode_deno/issues
62-
6360
[Deno CLI]: https://github.com/denoland/deno

CHANGELOG.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Releases of the extension can be downloaded from
44
[Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno).
55

6+
### [3.49.0](https://github.com/denoland/vscode_deno/compare/3.48.0...3.49.0) / 2026.01.22
7+
8+
- feat: prompt for custom workspace `"deno.path"` setting
9+
610
### [3.48.0](https://github.com/denoland/vscode_deno/compare/3.47.0...3.48.0) / 2026.01.14
711

812
- feat: "deno.forcePushBasedDiagnostics" setting (#1354)
@@ -30,7 +34,8 @@ Releases of the extension can be downloaded from
3034

3135
### [3.45.0](https://github.com/denoland/vscode_deno/compare/3.44.2...3.45.0) / 2025.07.16
3236

33-
- feat: show task description from deno.json in tasks view and command palette (#1304)
37+
- feat: show task description from deno.json in tasks view and command palette
38+
(#1304)
3439
- fix: enable colored output in tests (#1298)
3540
- chore: remove tsconfig helper prompt (#1315)
3641

@@ -50,7 +55,8 @@ Releases of the extension can be downloaded from
5055

5156
### [3.43.6](https://github.com/denoland/vscode_deno/compare/3.43.5...3.43.6) / 2025.03.12
5257

53-
- fix(client): set `{ shell: true }` in server options for "deno.{bat,cmd}" (#1273)
58+
- fix(client): set `{ shell: true }` in server options for "deno.{bat,cmd}"
59+
(#1273)
5460
- docs: `deno.codeLens.test` is not deprecated (#1268)
5561

5662
### [3.43.5](https://github.com/denoland/vscode_deno/compare/3.43.4...3.43.5) / 2025.02.26
@@ -219,15 +225,17 @@ Releases of the extension can be downloaded from
219225
### [3.24.0](https://github.com/denoland/vscode_deno/compare/3.23.1...3.24.0) / 2023.09.25
220226

221227
- fix: regression when caching via the command palette (#930)
222-
- feat: include "javascript" and "typescript" settings in LSP init options (#929)
228+
- feat: include "javascript" and "typescript" settings in LSP init options
229+
(#929)
223230

224231
### [3.23.1](https://github.com/denoland/vscode_deno/compare/3.23.0...3.23.1) / 2023.09.19
225232

226233
- fix: provide args to deno.cache on cache-on-save (#924)
227234

228235
### [3.23.0](https://github.com/denoland/vscode_deno/compare/3.22.0...3.23.0) / 2023.09.19
229236

230-
- fix: getCompilerOptionsDiagnostics and getNavigateToItems fixed when "deno.enable" is false (#915)
237+
- fix: getCompilerOptionsDiagnostics and getNavigateToItems fixed when
238+
"deno.enable" is false (#915)
231239
- feat: Restore "deno.enable" null default for deno.json auto-detection (#921)
232240
- feat: feat: "deno.disablePaths" setting (#919)
233241

client/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Deno Land Inc.",
55
"license": "MIT",
66
"private": true,
7-
"version": "3.48.0",
7+
"version": "3.49.0",
88
"publisher": "deno-land",
99
"repository": {
1010
"type": "git",

client/src/commands.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ export function test(
464464
};
465465

466466
assert(workspaceFolder);
467-
const denoCommand = await getDenoCommandName(extensionContext.approvedPaths);
467+
const denoCommand = await getDenoCommandName(
468+
extensionContext.approvedPaths,
469+
);
468470
const task = tasks.buildDenoTask(
469471
workspaceFolder,
470472
denoCommand,

client/src/config_paths.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ export function getDenoPathInfo(): DenoPathInfo | undefined {
1919
// check if path is set in workspace or folder settings (not global/user)
2020
const workspaceValue = inspection?.workspaceValue;
2121
const folderValue = inspection?.workspaceFolderValue;
22-
const isFromWorkspace = (typeof workspaceValue === "string" && workspaceValue.trim().length > 0)
23-
|| (typeof folderValue === "string" && folderValue.trim().length > 0);
22+
const isFromWorkspace = (typeof workspaceValue === "string" &&
23+
workspaceValue.trim().length > 0) ||
24+
(typeof folderValue === "string" && folderValue.trim().length > 0);
2425
return {
2526
path: rawPath.trim(),
2627
isFromWorkspace,
@@ -55,12 +56,17 @@ export class ApprovedConfigPaths {
5556
const approvedPaths = this.#getApprovedPaths();
5657
if (!approvedPaths.includes(path)) {
5758
approvedPaths.push(path);
58-
await this.#context.workspaceState.update(APPROVED_PATHS_KEY, approvedPaths);
59+
await this.#context.workspaceState.update(
60+
APPROVED_PATHS_KEY,
61+
approvedPaths,
62+
);
5963
}
6064
}
6165

6266
/** Prompts the user for approval if the path hasn't been approved yet. */
63-
async promptForApproval(pathInfo: DenoPathInfo | undefined): Promise<boolean> {
67+
async promptForApproval(
68+
pathInfo: DenoPathInfo | undefined,
69+
): Promise<boolean> {
6470
// null and global paths don't need approval
6571
if (pathInfo == null || !pathInfo.isFromWorkspace) {
6672
return true;

client/src/debug_config_provider.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ export class DenoDebugConfigurationProvider
6262
program: "${workspaceFolder}/main.ts",
6363
cwd: "${workspaceFolder}",
6464
env: this.#getEnv(),
65-
runtimeExecutable: await getDenoCommandName(this.#extensionContext.approvedPaths),
65+
runtimeExecutable: await getDenoCommandName(
66+
this.#extensionContext.approvedPaths,
67+
),
6668
runtimeArgs: [
6769
"run",
6870
...this.#getAdditionalRuntimeArgs(),
@@ -99,7 +101,9 @@ export class DenoDebugConfigurationProvider
99101
type: "node",
100102
program: "${file}",
101103
env: this.#getEnv(),
102-
runtimeExecutable: await getDenoCommandName(this.#extensionContext.approvedPaths),
104+
runtimeExecutable: await getDenoCommandName(
105+
this.#extensionContext.approvedPaths,
106+
),
103107
runtimeArgs: [
104108
"run",
105109
...this.#getAdditionalRuntimeArgs(),

client/src/lsp_extensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ interface TestOutput {
216216

217217
interface TestRunRestart {
218218
type: "restart";
219-
enqueued: EnqueuedTestModule[]
219+
enqueued: EnqueuedTestModule[];
220220
}
221221

222222
interface TestEnd {

client/src/tasks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ class DenoTaskProvider implements vscode.TaskProvider {
132132

133133
const tasks: vscode.Task[] = [];
134134

135-
const process = await getDenoCommandName(this.#extensionContext.approvedPaths);
135+
const process = await getDenoCommandName(
136+
this.#extensionContext.approvedPaths,
137+
);
136138
for (const workspaceFolder of vscode.workspace.workspaceFolders ?? []) {
137139
for (const { command, group, problemMatchers } of defs) {
138140
const task = buildDenoTask(

client/src/tasks_sidebar.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ class DenoTaskProvider implements TaskProvider {
122122
}
123123

124124
async provideTasks(): Promise<Task[]> {
125-
const process = await getDenoCommandName(this.#extensionContext.approvedPaths);
125+
const process = await getDenoCommandName(
126+
this.#extensionContext.approvedPaths,
127+
);
126128
const client = this.#extensionContext.client;
127129
const supportsConfigTasks = this.#extensionContext.serverCapabilities
128130
?.experimental?.denoConfigTasks;
@@ -254,7 +256,9 @@ export class DenoTasksTreeDataProvider implements TreeDataProvider<TreeItem> {
254256
}
255257

256258
async #debugTask(task: DenoTask) {
257-
const command = `${await getDenoCommandName(this.#extensionContext.approvedPaths)} task ${task.task.name}`;
259+
const command = `${await getDenoCommandName(
260+
this.#extensionContext.approvedPaths,
261+
)} task ${task.task.name}`;
258262
commands.executeCommand(
259263
"extension.js-debug.createDebuggerTerminal",
260264
command,

0 commit comments

Comments
 (0)