Skip to content

Update dependency typescript to v5 #1042

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

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
149 changes: 84 additions & 65 deletions vscode-testextension/package-lock.json

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

2 changes: 1 addition & 1 deletion vscode-testextension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"devDependencies": {
"@types/mocha": "10.0.2",
"@types/node": "18.17.19",
"typescript": "3.9.10",
"typescript": "5.2.2",
"vscode": "1.1.37"
},
"dependencies": {
Expand Down
18 changes: 10 additions & 8 deletions vscode-testextension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ import {
InitializeParams,
StreamInfo,
createServerPipeTransport,
Trace
} from "vscode-languageclient/node";
import { Trace, createClientPipeTransport } from "vscode-jsonrpc/node";
import { createConnection } from "net";

export function activate(context: ExtensionContext) {
let client: LanguageClient;

export async function activate(context: ExtensionContext) {
// The server is implemented in node
let serverExe = "dotnet";

Expand Down Expand Up @@ -81,12 +83,12 @@ export function activate(context: ExtensionContext) {
};

// Create the language client and start the client.
const client = new LanguageClient("languageServerExample", "Language Server Example", serverOptions, clientOptions);
client = new LanguageClient("languageServerExample", "Language Server Example", serverOptions, clientOptions);
client.registerProposedFeatures();
client.trace = Trace.Verbose;
let disposable = client.start();
client.setTrace(Trace.Verbose);
await client.start();
}

// Push the disposable to the context's subscriptions so that the
// client can be deactivated on extension deactivation
context.subscriptions.push(disposable);
export function deactivate() {
return client.stop();
}