Giter Club home page Giter Club logo

tcl_outline_vscode's Introduction

tcl-outline README

Show tcl procs and namespaces at the explorer's outline view

based on perl-outline extension

Dependencies

Must have Tcl language support to use

Features

For example if there is an image subfolder under your extension project workspace:

Example

Known Issues

  • Not showing under which symbols (proc/namespace) the curser is at. (shows only if the curser is on the symbol decleration)
  • Must have Tcl language support to use.
  • the proc block might ended if there is string of close curly brackets ("}}}}") in the proc.

Release Notes

[0.0.3]

  • improve regex to catch more procs types
  • start curly bracket block 1 char before (in previous version the block started one char after the start bracket, which cause issue in case of empty procs proc foo {args} {} )

If you encounter issues and bugs, please open issue in github, or write to me at

Dedicated to the great Tclers, Yoram and Ofer.

tcl_outline_vscode's People

Contributors

snirye avatar

Stargazers

Moshe Hamiel avatar Pedro Miranda avatar

Watchers

 avatar

tcl_outline_vscode's Issues

Tcl namespaces not showing in outline

Dear Mr Yehuda,

I am configuring my setup to write Tcl scripts with Visual Studio Code. I came across your extension which looks very nice!

I have already a Tcl language support extension installed. After installing tcl-vsc-outline, I can see the Tcl procs in the outline, but the namespaces are not showing. Below an example code (taken from the README here), and screenshot of how the Outline looks like.

ScreenShot

I suspect that maybe the language support that I installed is not 100% compatible. I tried a few others but had no success. Any idea of what could be going on? Would you recommend any specific Tcl language support extension to ensure compatibility with tcl-vsc-outline?

Thanks!
Xavi


Using:

  • macOS Catalina (Version 10.15.7)
  • Visual Studio Code for macOS (version 1.86)
  • tcl-vsc-outline (v0.0.4)

adding other Keywords

First of all thanks for this great extension!!!
Is there a way to define other keywords besides the keyword proc so that they are also displayed as a function in Outline? For example if functions are declared with Keyword.
Thank you for your response.

Feature: procedure fingerprint

Geat plugin, thanks for the effort.

How about this for a future feature?

Add the fingerprint of the procs and an indication of whether the proc returns a value.
e.g.

proc hello_world {planet {int_life false}} {
 if { $int_life == true } {
  set msg "Hi $planet, Take me to your leader!"
} else {
  set msg "Keep banging the rocks togther, guys. We will try again in 1000 years."
}
 return $msg
}

would outline as something like

[returns (1)] hello_world { planet { int_life false } } 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.