mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
parent
a49e21c63b
commit
27903c28aa
|
@ -227,17 +227,4 @@ suite('markdown: Diagnostics', () => {
|
|||
const { diagnostics } = await manager.recomputeDiagnosticState(doc1, noopToken);
|
||||
assert.deepStrictEqual(diagnostics.length, 0);
|
||||
});
|
||||
|
||||
test('skipPaths should resolve relative to file', async () => {
|
||||
const doc1 = new InMemoryDocument(workspacePath('sub', 'doc1.md'), joinLines(
|
||||
`![i](images/aaa.png)`,
|
||||
`![i](images/sub/bbb.png)`,
|
||||
`![i](images/sub/sub2/ccc.png)`,
|
||||
`![i](/images/sub/sub2/ccc.png)`,
|
||||
));
|
||||
|
||||
const manager = createDiagnosticsManager(new InMemoryWorkspaceMarkdownDocuments([doc1]), new MemoryDiagnosticConfiguration(true, ['images/**/*.png']));
|
||||
const { diagnostics } = await manager.recomputeDiagnosticState(doc1, noopToken);
|
||||
assert.deepStrictEqual(diagnostics.length, 0);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue