Skip to content

Commit

Permalink
Add code-completion for ${CURDIR}. Fixes #313
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Apr 14, 2021
1 parent c40c822 commit dfa3711
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion robotframework-ls/.settings/org.python.pydev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MULTI_BLOCK_COMMENT_CHAR: '='
MULTI_BLOCK_COMMENT_SHOW_ONLY_CLASS_NAME: true
MULTI_BLOCK_COMMENT_SHOW_ONLY_FUNCTION_NAME: true
PYDEV_TEST_RUNNER: '2'
PYDEV_TEST_RUNNER_DEFAULT_PARAMETERS: --capture=no -W ignore::DeprecationWarning -n auto --tb=native -vv --force-regen
PYDEV_TEST_RUNNER_DEFAULT_PARAMETERS: --capture=no -W ignore::DeprecationWarning -n 0 --tb=native -vv --force-regen
PYDEV_USE_PYUNIT_VIEW: true
SAVE_ACTIONS_ONLY_ON_WORKSPACE_FILES: true
SINGLE_BLOCK_COMMENT_ALIGN_RIGHT: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
BUILTIN_VARIABLES = [
("${TEMPDIR}", "abspath(tempfile.gettempdir())"),
("${EXECDIR}", "abspath('.')"),
("${CURDIR}", "abspath('.')"),
("${/}", "os.sep"),
("${:}", "os.pathsep"),
("${\\n}", "os.linesep"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,23 @@ result:
start:
character: 22
line: 9
- deprecated: false
documentation: abspath('.')
documentationFormat: plaintext
insertText: ${CURDIR}
insertTextFormat: 2
kind: 6
label: ${CURDIR}
preselect: false
textEdit:
newText: \${CURDIR}
range:
end:
character: 24
line: 9
start:
character: 22
line: 9
- deprecated: false
documentation: os.sep
documentationFormat: plaintext
Expand Down

0 comments on commit dfa3711

Please sign in to comment.