Comments (8)
We could actually keep that issue open for the time being so that we don't forget.
If you need any support with the implementation, just ask here. Me or somebody else (e.g. @GianOrtiz) will help you if we can.
As a first idea, the bug is located in https://github.com/mre/vscode-snippet/blob/master/src/extension.ts#L51 where we try to access the languageId
even if we don't have a document.
from vscode-snippet.
Hey @pankaj-kvhld,
just tested it on a vanilla visual studio code installation and it works for me.
Does it immediately print an error or only when hitting "enter" to find a snippet?
Do you run any special query?
from vscode-snippet.
@pankaj-kvhld is this still an issue for you? It's tricky to debug from my side.
from vscode-snippet.
Apologies for late response. I realized that this only happens when no project folder is open. In an open project it works like a charm.
Is it supposed to behave like this? If yes, then I will close the issue. Thanks for making this lovely plugin.
from vscode-snippet.
Ah that's a bug that we should fix.
Feel free to give it a shot if you like.
Otherwise I'll try to squeeze it in as soon as I find the time.
from vscode-snippet.
WOW, I have never contributed to open source, but want to. I don't think I know enough programming, but will give a shot. Thanks for the opportunity.
from vscode-snippet.
Adding this https://github.com/mre/vscode-snippet/blob/master/src/extension.ts#L106-L110 to the find command should solve the problem, @pankaj-kvhld, @mre.
Or we could add a user preferred language config option, so whenever someone tries to use a command without an open editor the extension uses this language as default.
from vscode-snippet.
Agree. As a third option, we could show another input box for the language.
I think I would go with the config option for now and maybe add support for the input box (if no default is set) later.
from vscode-snippet.
Related Issues (20)
- Certificate expired on Find site HOT 12
- request: add to OpenVSX HOT 7
- Link Checker Report
- Link Checker Report
- Link Checker Report
- Link Checker Report
- Link Checker Report
- Vscode CI warning: Bundle extension
- [Feature request] Visual Studio IDE's ToolBox alternative for VSCode HOT 15
- Handle cht.sh 404 better HOT 3
- Update open-vsx.org release
- How to quickly retrieve code snippets created by oneself using a keyboard? HOT 7
- Error running HOT 5
- backup and local file HOT 2
- Export, import HOT 1
- Lost my snippets data during syncing. HOT 2
- Link Checker Report HOT 1
- Link Checker Report
- Link Checker Report
- Link Checker Report HOT 1
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-snippet.