Comments (12)
Yeah, that sounds good to me also since it will just look for README.md in the root folder. I tried it with my large project and workspaceContains:README.md performs well unlike the previous *.md event.
from vscode-markdown.
Thanks for your feedback. It is a known issue if you only open a single Markdown file.
It is a critical bug and I will resolve it soon.
from vscode-markdown.
Please try v0.7.6
from vscode-markdown.
Please try v0.7.6
Same issue; VS Code handles md
files as if the extension wasn't installed.
from vscode-markdown.
That's really strange π€.
Could you please describe how you open a md
file? For example, do you
- With no vscode instance running, right click
md
file and select "open with vscode"? Or - Use "open file" with existing vscode instance?
If possible, can you upload your md
file (or a sample file for test).
from vscode-markdown.
Okay, finally I decide to go back to legacy activation events. There should be no problem now.
from vscode-markdown.
I was also going to suggest just switching to a simple "onLanguage:markdown" activation event. It seems like this is the best event to use to activate the extension since it doesn't perform any expensive file scans over the project and it is possible to enable the extension even when creating a new markdown file that has not been saved yet. Another benefit is that the extension will be activated regardless what extension the user chooses for the markdown files.
It seems like the "onLanguage:markdown" event may be the only event that is needed. I'm not sure if the "workspaceContains:README.md" event is necessary since the "onLanguage:markdown" event should occur whenever the README.md file (or any other markdown file) is opened.
from vscode-markdown.
@rbolsius Thanks a lot for your suggestions! You are really nice β€
... just switching to a simple "onLanguage:markdown" activation event ... it is possible to enable the extension even when creating a new markdown file that has not been saved yet.
Yes. Totally agree. And that's why I finally gave up writing my own activation events π .
I'm not sure if the"workspaceContains:README.md"event is necessary
From the perspective of usage, I think it's not necessary.
But there is a (slightly?) noticeable delay when user open a Markdown file for the first time.
I use README.md
because I would like to provide the best experience.
And adding an additional README.md
won't hurt the performance because it only scans the depth 1 (but *.md
will #12). So I think README.md
is the icing on the cake. What is your opinion?
from vscode-markdown.
@gpresland Hope you like this solution.
from vscode-markdown.
Appears to be working now π
from vscode-markdown.
This seems to be a problem for me. I'm not using README.md. Looking for the onLanguage:markdown activation setting.
from vscode-markdown.
@JackHowa onLanguage:markdown
is already one of the activation events. See https://github.com/neilsustc/vscode-markdown/blob/master/package.json#L26-L29
So there might be some other reasons if you find it not working. Could you please navigate to "menubar>help>toggle developer tools" and see whether there are something related.
from vscode-markdown.
Related Issues (20)
- Request for CSS compatibility in markdown preview feature HOT 2
- π¨ Formatter: Auto add hard line breaks HOT 2
- Auto print to html when css file is changed.
- Add side navigation barοΌJump from anywhere to anywhere while editing
- Use link reference to css file instead of embedded style option? HOT 2
- sluggish editting HOT 2
- Online Shop Product Manager
- Prefix to section headers HOT 3
- Path completion can't handle `(...)` parentheses in folder name - doesn't show suggestions inside such folders
- [Bug]: Open preview doesnt work properly
- [Question] How to achieve Quote Effects in Markdown Preview
- slowing down
- Reduce and/or add setting for `renderLink` icon size
- markdown.extension.print.onFileSave: false is ignored
- "Toggle strikethrough" command doesn't recognize lists
- `tab` to indent the whole `<li>` list item block.
- Slowness in typing HOT 2
- Causes scm.experimental.showHistoryGraph to not show file diffs HOT 1
- Unordered list marker completion after multi-line list element
- Clicking on the markdown links, if they are valid, should open local files in the IDE and folders in the local operating system's file manager.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-markdown.