Closed hsnopi closed 4 years ago
Hi @hsnopi thanks for your feedback! Did it work before and it suddenly stopped working or didn't it work at all for you? Is the issue only occurring with the snippets provided with this extension or all snippets? If it's the latter it might be an intellisense issue, maybe you can check out the following: https://stackoverflow.com/a/46574024.
Please make sure when you create a .yml file that the editor also displays that it's a YML filetype in the bottom right corner: https://stackoverflow.com/a/51652824
Will do, thanks for the feedback. It works on my work machine. I am using windows 10 at home. Lemme do as you suggest and test it out tonight. Thanks!
Ok, created a new file in a new workspace. saved as yml. irt says YAML at the bottom. No joy It DOES do suggestions for Python files.
Couple thing I've niticed. In settings your extension is not listed...
ans here is my current settings file { "telemetry.enableCrashReporter": false, "telemetry.enableTelemetry": false, "git.enableSmartCommit": true, "[yaml]": {}, "editor.tabCompletion": "on", "editor.snippetSuggestions": "top", "editor.suggest.shareSuggestSelections": true, "editor.suggest.snippetsPreventQuickSuggestions": false }
ok i just found this. https://code.visualstudio.com/docs/editor/userdefinedsnippets i hit ctrl+space and a list of snippets popped up. i then typed cfn and it bacame an option. so there is some auto thing that is turned off
playing with this now... https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions
ok none of that worked. I'm going to delete all my caches in vscode in appdata and see what happens
before i do. these are the cached settings.
no joy. i checked your extencions directory all the snippet files are there.
i found this in the global settings. It's the only cloud reference. i'm wondering if maybe I had an old cloud formatter that didn't clean up properly. contributes": { "languages": [ { "id": "yaml", "aliases": ["YAML", "yaml"], "extensions": [".yml", ".eyaml", ".eyml", ".yaml"], "firstLine": "^#cloud-config", "configuration": "./language-configuration.json" } ],
note the firstline: i might change that to cfn and see what happens. then again i forgot i'm looking at intellisense.
ok i uninstalled, deleted everything in appdata and reinstalled. no joy. gonna have to work on this later.
I had an issue where the menu was not populating after installing the extension and reloading the application. In my case, pressing ctrl+space opened the list of snippets from which cfn was available. Similarly I need to hit ctrl+space first before typing any resource names.
ok i uninstalled, deleted everything in appdata and reinstalled. no joy. gonna have to work on this later.
Could you try to create your own snippet: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets and check the behaviour of it. if the same issue occurs it might be an intellisense issue.
Many thanks to Mike for the Ctrl+Space tip.
Btw observed this issue with another extension as well: https://marketplace.visualstudio.com/items?itemName=aws-scripting-guy.cform
And surprisingly enough, the Ctrl+Space was needed only once, at the moment both extensions are working as expected(without Ctrl+Space). The only additional thing I did before was to delete the extension directory and reinstall the extension (%USERPROFILE%.vscode\extensions).
Suspecting some glitch with VS-Code itself (using v1.36).
Hello!| first off, thanks for the work. I use it on my work machine all the time. I'm setting it up on my home machine as well and I cannot get the editor to do anything when I type cfn or cfn-lite. I created a file, saved as .yml (I also repeated this process as a file with extension .yaml) types cfn nothing happened. i tried
I know the install is fairly straightforward so I don't know what I am missing.
What do you need from me to help troubleshoot?
I am running windows 10 64 bit. Output when launching [2019-05-02 18:29:02.609] [exthost] [info] extension host started [2019-05-02 18:29:02.642] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"activationEvent":""} [2019-05-02 18:29:02.642] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\hsnopi\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\debug-auto-launch\dist\extension [2019-05-02 18:29:02.649] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"activationEvent":""} [2019-05-02 18:29:02.649] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\hsnopi\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\emmet\dist\extension [2019-05-02 18:29:02.658] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"activationEvent":""} [2019-05-02 18:29:02.658] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\hsnopi\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main [2019-05-02 18:29:02.720] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"activationEvent":""} [2019-05-02 18:29:02.720] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\hsnopi\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\merge-conflict\dist\extension [2019-05-02 18:29:02.732] [exthost] [info] ExtensionService#_doActivateExtension oderwat.indent-rainbow {"startup":true,"activationEvent":""} [2019-05-02 18:29:02.732] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\hsnopi.vscode\extensions\oderwat.indent-rainbow-7.4.0\out\extension [2019-05-02 18:29:02.736] [exthost] [info] ExtensionService#_doActivateExtension SirTori.indenticator {"startup":true,"activationEvent":""} [2019-05-02 18:29:02.736] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\hsnopi.vscode\extensions\sirtori.indenticator-0.6.0\out\src\extension [2019-05-02 18:29:02.741] [exthost] [info] eager extensions activated
thanks! Jeff Cloudformation YAML snippets for VS Code 1.3.0
Version: 1.33.1 (user setup) Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8 Date: 2019-04-11T08:27:14.102Z Electron: 3.1.6 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.17134