-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Inline ghost-text autocompletion Added optional ghost-text preview to popup-based autocompletion (disabled by default) New external inline-autocompletion widget which supports ghost-text only autocompletion * Autocomplete bugfixes Added the inline autocompletion to the kitchen sink demo Added kitchen sink demo option to enable inline preview for popup-based autocomplete Inline completion and command bar tooltip are changed to be editor scoped * Update src/ext/inline_autocomplete.js Co-authored-by: André Oliveira <[email protected]> * Fix styling and add cross-editor tests * Fix for popup display positioning for autocompletion * Add popup display unit tests --------- Co-authored-by: André Oliveira <[email protected]>
- Loading branch information
1 parent
a5cc588
commit eb834a1
Showing
18 changed files
with
2,195 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>ACE Inline Autocompletion demo</title> | ||
<style type="text/css" media="screen"> | ||
body { | ||
overflow: hidden; | ||
} | ||
|
||
#editor { | ||
margin: 0; | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<pre id="editor"></pre> | ||
|
||
<script src="kitchen-sink/require.js"></script> | ||
<script> | ||
// setup paths | ||
require.config({paths: { "ace" : "../src"}}); | ||
// load ace and extensions | ||
require(["ace/ace", "ace/mode/javascript", "ace/ext/language_tools", "ace/ext/inline_autocomplete"], function(ace, codeLens) { | ||
var editor = ace.edit("editor"); | ||
editor.session.setMode("ace/mode/javascript"); | ||
editor.setTheme("ace/theme/tomorrow"); | ||
// enable inline autocompletion | ||
editor.setOptions({ | ||
enableBasicAutocompletion: false, | ||
enableInlineAutocompletion: true, | ||
enableSnippets: true, | ||
enableLiveAutocompletion: false | ||
}); | ||
|
||
window.editor = editor; | ||
}); | ||
</script> | ||
|
||
<script src="./show_own_source.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.