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

Add full support for Diagnostic.code #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add full support for Diagnostic.code #2

wants to merge 1 commit into from

Conversation

EstFoisy
Copy link
Owner

@EstFoisy EstFoisy commented Sep 20, 2022

What it does

Add full support to Diagnostic.code according to the VS Code API.

closes eclipse-theia#11659

How to test

CI should pass

Review checklist

Reminder for reviewers

@@ -23,6 +23,7 @@ import { MarkdownString } from './markdown-string';
import { MarkdownString as MarkdownStringInterface } from '@theia/core/lib/common/markdown-rendering';
import { TaskDto } from '../common/plugin-api-rpc';
import { TaskGroup } from './types-impl';
import { expect } from 'chai';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this import is necessary, we can write our tests with assert instead like the rest of the file.

packages/plugin-ext/src/plugin/type-converters.spec.ts Outdated Show resolved Hide resolved
packages/plugin-ext/src/plugin/type-converters.spec.ts Outdated Show resolved Hide resolved
packages/plugin-ext/src/plugin/type-converters.spec.ts Outdated Show resolved Hide resolved
packages/plugin-ext/src/plugin/type-converters.spec.ts Outdated Show resolved Hide resolved
packages/plugin-ext/src/plugin/type-converters.spec.ts Outdated Show resolved Hide resolved
packages/plugin-ext/src/plugin/type-converters.spec.ts Outdated Show resolved Hide resolved
@@ -332,12 +332,16 @@ export function convertDiagnosticToMarkerData(diagnostic: theia.Diagnostic): mod
};
}

function convertCode(code: string | number | undefined): string | undefined {
export function convertCode(code: string | number | { value: string | number; target: theia.Uri } | undefined): string | undefined {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: unnecessary newline.

@EstFoisy EstFoisy force-pushed the ef/11659 branch 4 times, most recently from c047833 to 3794302 Compare October 13, 2022 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vscode: add full support for Diagnostic.code
3 participants