Skip to content

Commit

Permalink
[INTERNAL] cleanup code and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GehDoc committed Nov 24, 2023
1 parent 8babc44 commit 07bb38f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/languageFeatures/documentLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export class TextileLinkComputer {
...inlineLinks,
// Disabled for Textile : ...this.getReferenceLinks(document, noLinkRanges.concatInline(inlineLinks.map(x => x.source.range))),
...this.getLinkDefinitions(document, noLinkRanges),
// FIXME for Textile : ...this.getAutoLinks(document, noLinkRanges),
// Disabled for Textile : ...this.getAutoLinks(document, noLinkRanges),
]);
const definitionSet = new LinkDefinitionSet(allLinks);
return allLinks.map((link) => this.toReferenceLink(link, definitionSet));
Expand Down
4 changes: 2 additions & 2 deletions src/languageFeatures/pathCompletions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ enum CompletionContextKind {
Link,

/** `[...][|]` */
ReferenceLink,
ReferenceLink, // Not relevant for Textile

/** `[]: |` */
LinkDefinition, // TODO: not implemented
LinkDefinition,
}

interface AnchorContext {
Expand Down
5 changes: 0 additions & 5 deletions src/test/pathCompletion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ function assertCompletionsEqual(actual: readonly vscode.CompletionItem[], expect
suite('Textile: Path completions', () => {

// -- Begin : changed for textile
setup(async () => {
// These tests assume that the textile completion provider is already registered
await vscode.extensions.getExtension('gehdoc.vscode-textile-preview')!.activate();
});

test('Should not return anything when triggered in empty doc', async () => {
const completions = await getCompletionsAtCursor(workspacePath('new.textile'), `${CURSOR}`);
assertCompletionsEqual(completions, []);
Expand Down

0 comments on commit 07bb38f

Please sign in to comment.