Skip to content

TutorialKit extension's intellisense kicks off in non-tutorialkit projects #237

@sulco

Description

@sulco

Describe the bug

When TutorialKit extension is active, it seems to work on all files with frontmatter, even if it's not a tutorialkit project (e.g. an Astro blog), leading to false warnings and autocompletions:

image

Link to a StackBlitz project which shows the error

No response

Steps to reproduce

  1. Create a new folder, with a markdown file inside
  2. Open the folder in vscode with the tutorialkit extension active
  3. Add some frontmatter into the markdown file
---
slug: 1
---
Hello
  1. See tutorialkit-relevant warnings
image

Expected behavior

The warnings and completions should not appear in the non-tutorialkit projects.

Screenshots

No response

Platform

  • TutorialKit extension version: 0.1.1
  • Visual Studio Code version: 1.92.0

Additional context

Looks like the isTutorialKitWorkspace (in extensions/vscode/src/utils/isTutorialKit.ts) function might be handy here:)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingextensionIssus related to TutorialKit VS Code extension

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions