Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: merge v3.7.0 #8

Merged
merged 58 commits into from
Aug 7, 2021
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
d5eebde
feat: code lens for references (#308)
kitsonk Jan 30, 2021
77d04ea
feat: disable most of builtin language service when deno enabled (#307)
kitsonk Jan 31, 2021
c89ccc6
0.0.8
lucacasonato Feb 1, 2021
b1a069b
feat: add applyCodeActionCommand command (#312)
kitsonk Feb 4, 2021
3ed17f7
fix: remove deno/applyCodeActionCommand (#315)
kitsonk Feb 4, 2021
abbe84a
New high-res logo (#274)
Kirlovon Feb 4, 2021
f30af80
feat: add implementations code lens configuration option (#319)
kitsonk Feb 8, 2021
adb043e
feat: add initialize workspace command (#316)
kitsonk Feb 8, 2021
34b7130
feat: support deno cache quick fix (#322)
kitsonk Feb 10, 2021
7b45392
chore: add screenshot to README (#323)
kitsonk Feb 11, 2021
b154235
0.0.9
lucacasonato Feb 13, 2021
903ed0a
0.0.10
lucacasonato Feb 13, 2021
da14e8a
fix: typo in init command (#327)
Liamolucko Feb 14, 2021
df0b20a
feat: add a welcome screen for extension (#329)
kitsonk Feb 18, 2021
504579e
feat: use preview instead of display for status (#330)
kitsonk Feb 18, 2021
1e354fe
chore: README improvements (#331)
kitsonk Feb 19, 2021
36a9257
Release 3.0.0, canary is now main (#332)
ry Feb 19, 2021
547f79c
3.0.1
lucacasonato Feb 19, 2021
c4e4542
Fix typo (#337)
jsejcksn Feb 20, 2021
8ae870c
chore: activate extension on command (#336)
lucacasonato Feb 20, 2021
b2c8048
docs: recommend import_map.json instead of import-map.json (#340)
Liamolucko Feb 20, 2021
a9480d4
chore: move Releases.md to CHANGELOG.md for better marketplace integr…
kitsonk Feb 23, 2021
b289be3
feat: add deno.path setting (#350)
kitsonk Mar 2, 2021
1c9cc2b
3.1.0
lucacasonato Mar 2, 2021
1371584
feat: read-add debug support (#351)
kitsonk Mar 10, 2021
9159ff5
feat: add settings to affect completions (#368)
kitsonk Mar 12, 2021
b306e9b
fix: manual `deno` command resolution on windows. (#367)
dsherret Mar 14, 2021
2d573fe
3.2.0
kitsonk Mar 15, 2021
04106ad
feat: support for relative path resolution (using workspaces) in deno…
hectormenendez Apr 6, 2021
bb4ef8b
feat: add version notification message (#383)
kitsonk Apr 6, 2021
76441b9
feat: add restart language server command (#385)
kitsonk Apr 7, 2021
6114435
feat: add support for import registry completions (#380)
kitsonk Apr 9, 2021
afcfdd7
3.3.0
lucacasonato Apr 13, 2021
8ed3af9
typo in ImportCompletions.md (#390)
fannheyward Apr 15, 2021
15cd747
fix: activate on reloadImportRegistries command (#407)
kitsonk Apr 30, 2021
366f5c0
feat: handle per resource configuration (#411)
kitsonk May 10, 2021
006a67b
feat: add internalDebug config flag (#406)
kitsonk May 11, 2021
1fe0271
3.4.0
kitsonk May 12, 2021
b0739b0
feat: recognise json(c) & markdown files (#404)
satyarohith May 20, 2021
9940544
3.5.0
kitsonk May 31, 2021
2397e58
docs: fix broken link in README (#426)
yaegassy Jun 1, 2021
dd009eb
feat: support registry auto discovery (#427)
kitsonk Jun 1, 2021
4c28e63
fix: bump semver of extension (#429)
kitsonk Jun 1, 2021
bb5f058
3.5.1
kitsonk Jun 2, 2021
007b5f3
feat: add support for tasks and test code lens (#436)
kitsonk Jun 7, 2021
6eafebf
3.6.0
kitsonk Jun 7, 2021
9ed6410
fix: update packaging and pin vsce version (#440)
kitsonk Jun 8, 2021
759d590
3.6.1
kitsonk Jun 8, 2021
4faee76
feat: add support for import map in test code lens (#446)
cvng Jun 8, 2021
9522a59
fix: activate extension on markdown / json / jsonc (#447)
lucacasonato Jun 10, 2021
8c10050
fix: setting then clearing "deno.path" config should not use empty st…
dsherret Jun 20, 2021
6bf0454
fix: better handling when language server fails to start (#454)
dsherret Jun 24, 2021
1e1232b
3.7.0
kitsonk Jul 4, 2021
34b426c
fix: remove trailing slash in example (#471)
jsejcksn Jul 20, 2021
2888c62
chore: remove test header from bug report issue template (#479)
dsherret Jul 27, 2021
98355ce
feat: add ability to set cache directory in settings (#477)
kitsonk Jul 27, 2021
3c2b7d5
fix: properly handle plugin configuration at startup (#474)
kitsonk Jul 28, 2021
f072e77
feat: merge upstream v3.7.0
LumaKernel Aug 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add version notification message (denoland#383)
kitsonk authored Apr 6, 2021
commit bb4ef8bed0bdac713ef11943504bf292c53d70ce
12 changes: 9 additions & 3 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -14,9 +14,11 @@
"vscode": "^1.53.0"
},
"dependencies": {
"semver": "7.3.5",
"vscode-languageclient": "^7.0.0"
},
"devDependencies": {
"@types/semver": "7.3.4",
"@types/vscode": "1.53.0",
"vscode-test": "^1.5.0"
}
19 changes: 18 additions & 1 deletion client/src/extension.ts
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ import { DenoDebugConfigurationProvider } from "./debug_config_provider";
import * as fs from "fs";
import * as os from "os";
import * as path from "path";
import * as semver from "semver";
import * as vscode from "vscode";
import {
Executable,
@@ -20,6 +21,8 @@ import {
ServerOptions,
} from "vscode-languageclient/node";

const SERVER_SEMVER = ">=1.9.0";

interface TsLanguageFeaturesApiV0 {
configurePlugin(
pluginId: string,
@@ -200,7 +203,14 @@ export async function activate(
getSettings(),
);

showWelcomePage(context);
if (
semver.valid(serverVersion) &&
!semver.satisfies(serverVersion, SERVER_SEMVER)
) {
notifyServerSemver(serverVersion);
} else {
showWelcomePage(context);
}
}

export function deactivate(): Thenable<void> | undefined {
@@ -212,6 +222,13 @@ export function deactivate(): Thenable<void> | undefined {
});
}

function notifyServerSemver(serverVersion: string) {
return vscode.window.showWarningMessage(
`The version of Deno language server ("${serverVersion}") does not meet the requirements of the extension ("${SERVER_SEMVER}"). Please update Deno and restart.`,
"OK",
);
}

function showWelcomePage(context: vscode.ExtensionContext) {
const welcomeShown = context.globalState.get<boolean>("deno.welcomeShown") ??
false;