Skip to content

Commit

Permalink
explain ts-ignore usage in positron-python
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcphers committed Apr 4, 2024
1 parent d53f682 commit 1aeb773
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class JediLanguageServerProxy implements ILanguageServerProxy {

private lsVersion: string | undefined;

constructor(private readonly factory: ILanguageClientFactory) {}
constructor(private readonly factory: ILanguageClientFactory) { }

private static versionTelemetryProps(instance: JediLanguageServerProxy) {
return {
Expand All @@ -41,7 +41,7 @@ export class JediLanguageServerProxy implements ILanguageServerProxy {
undefined,
true,
undefined,
// @ts-ignore
// @ts-ignore Flagged by Typescript 5.5-dev
JediLanguageServerProxy.versionTelemetryProps,
)
public async start(
Expand Down Expand Up @@ -104,7 +104,7 @@ export class JediLanguageServerProxy implements ILanguageServerProxy {
undefined,
true,
undefined,
// @ts-ignore
// @ts-ignore Flagged by Typescript 5.5-dev
JediLanguageServerProxy.versionTelemetryProps,
)
private registerHandlers(client: LanguageClient) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class JediLanguageServerManager implements ILanguageServerManager {
undefined,
true,
undefined,
// @ts-ignore
// @ts-ignore Flagged by Typescript 5.5-dev
JediLanguageServerManager.versionTelemetryProps,
)
@traceDecoratorVerbose('Starting language server')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class NodeLanguageServerProxy implements ILanguageServerProxy {
private readonly environmentService: IEnvironmentVariablesProvider,
private readonly workspace: IWorkspaceService,
private readonly extensions: IExtensions,
) {}
) { }

private static versionTelemetryProps(instance: NodeLanguageServerProxy) {
return {
Expand All @@ -86,7 +86,7 @@ export class NodeLanguageServerProxy implements ILanguageServerProxy {
undefined,
true,
undefined,
// @ts-ignore
// @ts-ignore Flagged by Typescript 5.5-dev
NodeLanguageServerProxy.versionTelemetryProps,
)
public async start(
Expand Down Expand Up @@ -162,7 +162,7 @@ export class NodeLanguageServerProxy implements ILanguageServerProxy {
undefined,
true,
undefined,
// @ts-ignore
// @ts-ignore Flagged by Typescript 5.5-dev
NodeLanguageServerProxy.versionTelemetryProps,
)
private registerHandlers(client: LanguageClient, _resource: Resource) {
Expand Down

0 comments on commit 1aeb773

Please sign in to comment.